This tutorial looks at a sample application and showcases WPF features like borderless windows, transparency, animations and the 3D layers that are part of WPF.
- [Instructor] I want to show you an example of a WPF application that showcases some of the features of WPF, and shows you some things that are different in this desktop application tool. To do that, I'll run this application here in my Exercise file folder called LoginApp.exe. I'm not suggesting that you build an application that uses these principles, but this is a demonstration app that lets me show you some interesting things about WPF. For one, you can see that this window is transparent, I can see through this. This was something that was very difficult to do in Windows Forms.
I've got some drop shadows here behind the Login text. You'll also notice that the text boxes are transparent, too. Let's watch it again, you probably saw the animation, but keep your eye on it. You'll know it's coming this time. I'll rerun the application, keep your eye on the animation. There's two animations. I move these circles into the upper corner, and there was a flipping animation here. Now, let's try to log in by clicking on this button. And you'll see that I made an error, and there's a flip that happens there where it shows you the error.
And if I click on this OK button to try again, it'll flip back and let me fill it out. Still not entering the right information. Another principle is notice that there is no chrome, so if you want to you can remove the chrome, and I've basically created a transparent area here around the outside edge, and you can also see there's a drop shadow underneath this form. So these are just some of the interesting things that you can do because WPF uses the DirectX rendering engine for its rendering pipeline.
- Recognize the pluses of choosing Windows Presentation Foundations over other Microsoft UI frameworks.
- Evaluate the different options available with Windows Presentation Foundation project types.
- Devise a Windows Presentation Foundation project in Visual Studio.
- Break down the assemblies and parts of Windows Presentation Foundations.
- Use XAML editor and editor settings.
- Selecting data binding to present data.
- Compiling interaction code for an application.
- Use control templates, 3D parts, and effects in Windows Presentation Foundations.