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

  1. Margins and Padding
  2. Alignment
  3. Layout logic overview
  4. Height and Width
  5. Transforms
    1. RotateTransform
    2. ScaleTransform
    3. SkewTransform
    4. TranslateTransform
  6. RenderTransform vs LayoutTransform
  7. LAB10 - Adding Interactions with Triggers
  8. Dependency Properties Explained
  9. Attached Properties Explained
  10. Layout Panels
    1. StackPanel
    2. Grid
    3. UniformGrid
    4. DockPanel
    5. Canvas
    6. WrapPanel
  11. Stretching - Bible
  12. Z-Order
  13. 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.