SlideShare a Scribd company logo
NewXAMLComponents
forWindows Developers
Jiri Danihelka
Why build a custom panel?
Do you really need a custom panel?
What about this?
Derive from Panel
• Derive from Panel (or a more specific panel such as Grid)
• Inherits
– Children
– Background, ChildrenTransitions and ItemsHost
• Typically unchanged
• Override and implement (most work here)
– MeasureOverride - not override Measure()
– ArrangeOverride - not override Arrange()
Children
• UIElementCollection (IList<T>)
• Stores contained child elements
• Children.Count may be useful in your layout algorithm
Layout Methods
There are two panel phases:
1. Measure
2. Arrange Measure
Arrange
Measure Phase
• Implemented in MeasureOverride
• Query each child for DesiredSize
– By calling their Measure method
• Determine your DesiredSize
– This is a product of your unique layout
• Do not call base.MeasureOverride();
– It has not native implementation
Page calls
Panel.Measure –
passing available size
Panel calls each
Child.Measure
(recursively) – passing
available size
Child returns to Panel its
Desired Size
Panel calculates layout –
resulting in Desired Size
Panel returns to Page its
Desired Size
Panel.MeasureOverride(Size)
Arrange Phase
• Implemented in ArrangeOverride
• Determine each child’s location (x, y)
• Calls child’s Arrange method
– This ensures the child is rendered
• Do not call base.ArrangeOverride()
• Notes:
– Your panel may have to force size
restrictions on children
– Children may need to be clipped
Page calls
Panel.Arrange
– passing final
size and
location
Panel calculates
layout using Final
Size
Panel calls each
Child.Arrange
(recursively) –
passing final size
and location
Panel.ArrangeOverride(Size)
protected override Size ArrangeOverride(Size finalSize)
{
var height =0d;
foreach (var child in Children)
{
if ((height +child.DesiredSize.Height) > finalSize.Height)
break;
child.Arrange(new Rect(new Point(0, height), child.DesiredSize));
height += child.DesiredSize.Height;
}
return new Size(finalsize.Width, height);
}
• Active Canvas
• Master/Details
• Tabs and Pivots
• Nav Panel
Module Overview
Master / Detail
https://msdn.microsoft.com/en-us/library/windows/apps/dn997765.aspx
New Xaml components for Windows developers
Tabs and Pivot
https://msdn.microsoft.com/en-us/library/windows/apps/dn997788.aspxs
New Xaml components for Windows developers
Nav Pane
https://msdn.microsoft.com/en-us/library/windows/apps/dn997766.aspx
New Xaml components for Windows developers
Recommended Resources
• https://dev.windows.com/
• MSDN Windows 10 XAML Overview
– https://msdn.microsoft.com/en-
us/library/windows/apps/mt185595.aspx

More Related Content

PPTX
WPF Line of Business Application XAML Layouts Presentation
PPTX
Designing Windows apps with Xaml
PDF
Designing XAML apps using Blend for Visual Studio 2013
PPT
2 Day - WPF Training by Adil Mughal
PDF
Distributed Mobile Graphics
PPTX
Mixed reality for Windows 10
PPTX
MVVM Windows UWP apps with Template 10
PPTX
An introduction to development of universal applications
WPF Line of Business Application XAML Layouts Presentation
Designing Windows apps with Xaml
Designing XAML apps using Blend for Visual Studio 2013
2 Day - WPF Training by Adil Mughal
Distributed Mobile Graphics
Mixed reality for Windows 10
MVVM Windows UWP apps with Template 10
An introduction to development of universal applications

More from Jiri Danihelka (20)

PPTX
Windows game development with Unity 5
PPTX
Creating great Unity games for Windows 10 - Part 2
PPTX
Creating great Unity games for Windows 10 - Part 1
PPTX
Prism library and MVVM
PPTX
UWP apps development - Part 3
PPTX
UWP apps development - Part 2
PPTX
UWP apps development - Part 1
PPTX
Advanced MVVM Windows UWP apps with Template 10
PPTX
Windows UX
PPTX
Blend for Visual Studio 2015
PPTX
Security misconfiguration
PPTX
Windows 10 Mobile and Distributed Graphics
PPTX
Security hardening and drown attack prevention for mobile backend developers
PPTX
Top 10 security risks for mobile backend developers
PPTX
Programování Windows 8
PPTX
Vývoj pro Microsoft Surface a HoloLens
PPTX
Interaktivní 3D služby v cloudu
PPTX
Distributed Mobile Graphics for Windows 10 Mobile
PPTX
Tvorba virtuálních měst
PPTX
HyCloud: A system for device-to-device content distribution controlled by the...
Windows game development with Unity 5
Creating great Unity games for Windows 10 - Part 2
Creating great Unity games for Windows 10 - Part 1
Prism library and MVVM
UWP apps development - Part 3
UWP apps development - Part 2
UWP apps development - Part 1
Advanced MVVM Windows UWP apps with Template 10
Windows UX
Blend for Visual Studio 2015
Security misconfiguration
Windows 10 Mobile and Distributed Graphics
Security hardening and drown attack prevention for mobile backend developers
Top 10 security risks for mobile backend developers
Programování Windows 8
Vývoj pro Microsoft Surface a HoloLens
Interaktivní 3D služby v cloudu
Distributed Mobile Graphics for Windows 10 Mobile
Tvorba virtuálních měst
HyCloud: A system for device-to-device content distribution controlled by the...
Ad

Recently uploaded (20)

PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
System and Network Administration Chapter 2
PPTX
Online Work Permit System for Fast Permit Processing
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PDF
PTS Company Brochure 2025 (1).pdf.......
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
medical staffing services at VALiNTRY
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
ai tools demonstartion for schools and inter college
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Digital Strategies for Manufacturing Companies
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
System and Network Administration Chapter 2
Online Work Permit System for Fast Permit Processing
Understanding Forklifts - TECH EHS Solution
CHAPTER 12 - CYBER SECURITY AND FUTURE SKILLS (1) (1).pptx
PTS Company Brochure 2025 (1).pdf.......
ManageIQ - Sprint 268 Review - Slide Deck
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
medical staffing services at VALiNTRY
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Which alternative to Crystal Reports is best for small or large businesses.pdf
How to Choose the Right IT Partner for Your Business in Malaysia
2025 Textile ERP Trends: SAP, Odoo & Oracle
Odoo Companies in India – Driving Business Transformation.pdf
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
ai tools demonstartion for schools and inter college
Design an Analysis of Algorithms II-SECS-1021-03
Digital Strategies for Manufacturing Companies
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Ad

New Xaml components for Windows developers

Editor's Notes

  • #3: SIGNAURE LAYOUT OR EXPERIENCE
  • #5: SIGNAURE LAYOUT OR EXPERIENCE / bring up Radial
  • #14: Side by side viewing of a list of items and content - mail Collapses to a drill down on small screens Great for hierarchal navigation Other things -
  • #16: Tabs and pivots are used for navigating frequently accessed, distinct content categories
  • #18: Great for multi-level navigation Uses SplitView (aka Hamburger Menu) Lots of different menu styles