Review of Control Templates

Keyboard Shortcuts

Control templates are an astounding feature of WPF. They allow you to dramatically change the UI rendered for the control, while retaining every bit of the controls original properties, methods and events.

- [Narrator] Control templates are…an astounding feature of WPF.…They allow you to dramatically change the UI…rendered for a control while retaining every bit…of the control's original properties and events.…In this video, I'll show you how custom templates change…the appearance of the controls.…Later, in another video, I'll show you some sample zamel…so you can see how to add your own simple template.…The first example, I'll click on this section.…What you see here are three sliders.…The purpose of a slider is to allow the user…to enter a numeric data while you as the developer get…to retain some control over the range of those numbers.…

The user grabs the slider thumb's rectangle,…and they slide it to the left or right,…and that changes the numeric value.…And when I'm changing the numeric value here,…I've got some code that's running that's changing…the ellipse width based on the number…it's getting from the slider.…Further this way we go, the wider the ellipse.…Go all the way to the other end, it's a narrow ellipse.…

Resume Transcript Auto-Scroll

Author

Released

6/16/2017

Windows Presentation Foundation (WPF) in Visual Studio 2015 provides developers with a unified programming model for building modern line-of-business desktop applications on Windows. This course covers how to work with the essential WPF controls and classes to create interactivity. Join Walt Ritscher as he takes you through how to leverage fundamental code families. Walt uses a custom app shell to show the examples and demonstrate the code in each chapter. Get ready to explore the broad world of interaction and control options that you can leverage by learning about the types of classes that support user interaction and the definitions of the features found in UI elements.