Originally published on my old Charteris blog
This is part 5 of the training course originally described here with parts 2,3 and 4 available here, here and here respectively. So far we have covered WPF fundamentals, XAML, brushes, shapes, controls, styling and resources.
Again if anyone wants to contact me for clarifications or to talk over part of the course just use a Comment or the Contact link at the top of the page. Good luck!
The details of part 5 are below, the labs and any associated code are in the download package. LAB 11 is fairly important to get right and to understand why it is right. You may get something that looks close but it could be light years away from the correct solution, therefore I am going to include a completed solution as well. You don't have to use it but it is worth referring to when you have finished. Before starting Part5 I strongly suggest looking at parts 1 - 4 as this part really does draw on all the previous ones. If you think you know it all already at least review the contents of each part that I put in the blog post. If you are happy that you know the pre-reqs then great let's go!
Part5
- Margins and Padding
- Alignment
- Layout logic overview
- Height and Width
- Transforms
- RotateTransform
- ScaleTransform
- SkewTransform
- TranslateTransform
- RenderTransform vs LayoutTransform
- LAB10 - Adding Interactions with Triggers
- Dependency Properties Explained
- Attached Properties Explained
- Layout Panels
- StackPanel
- Grid
- UniformGrid
- DockPanel
- Canvas
- WrapPanel
- Stretching - Bible
- Z-Order
- LAB11 - Run dialog (LAB 11 is fairly important to get right and to understand why it is right. You may get something that looks close but it could be light years away from the correct solution, therefore I am going to include a completed solution in the download as well.)
Download Part5.zip which includes a slide deck and the 2 labs. Code to get you started with the labs is included.