Styling Windows Apps explains XAML shapes and geometry elements, dives into styles, and control templates, gives you information on creating animations, and explains how you can use the Visual State Manager with your XAML-based applications.
The sample code for this chapter contains this solution:
- Shapes (Canvas, Ellipse, Path)
- Geometries (PathGeometry, GeometryGroup, PathFigure, Path, BezierSegment...)
- Transformations (ScaleTransform, TranslateTransform, RotateTransform, SkewTransform, TransformGroup, MatrixTransform)
- Brushes (SolidColorBrush, LinearGradientBrush, ImageBrush, AcrylicBrush, ButtonRevealStyle)
- StylesAndResources (Style, StaticResource, Themes)
- Templates (Control templates, container styles)
- Animation (Timeline, easing functions)
- Transitions (EntranceThemeTransition, RepositionThemeTransition..)
- VisualStates (VisualStateManager)
See WinUI what you need to install and develop WinUI applications.
Announcing: WinUI 3 - Windows App SDK 0.8
- Brushes sample: the
BackgroundSource
property of theAcrylicBrush
has been removed, but it is planned to be added back with version 1.1 (see WinUI Roadmap)
See the gif files for the sample animations:
For code comments and issues please check Professional C#'s GitHub Repository
Please check my blog csharp.christiannagel.com for additional information for topics covered in the book.
Thank you!