User controls provide to build reusable composite UI. They are often used to refactor UI parts into separate components. This video shows how to add custom user controls to the project.
- [Instructor] As you start building your user interface…in your application, it'll get larger over time.…One thing you don't want to do is put all your UI…in a single file this modelithic main window.…You want to split it into parts.…There's a couple of approaches we could take.…One, instead of having these tabs like I have here,…I could have a single UI, the main window.…Then, I could create three separate windows:…a detail window, a weekly calendar window,…and a tour stops window.…Then, I could have some sort of navigation codes…that when you open up the main window and click on a button…or menu item, I would move over to the other windows.…
That works, but it's a bit awkward.…It's also hard to pass state between windows.…In WPF, there's some alternate approaches.…One approach is to to use what's called a page.…The other approach is to use a user control.…They're similar basically because they allow you…to build a composite UI in a page.…Then, you can use a navigation scheme…and something called a frame to move between pages.…
Author
Released
11/10/2016- Why choose Windows Presentation Foundation?
- Exploring the project types
- Creating a WPF project in Visual Studio
- Exploring assemblies and parts
- Using the XAML editor
- Creating the UI, including tabs, details, and controls
- Using data binding
- Adding styles
- Writing interaction code
- Using control templates, 3D parts, and effects
Skill Level Intermediate
Duration
Views
Related Courses
-
C# & .NET: Programming
with Alexander Zanfir1h 14m Intermediate -
Learning Visual Studio Team Services
with Jose Miguel Rady Allende1h 17m Intermediate
-
Introduction
-
Welcome58s
-
-
1. Concepts
-
Showcase some WPF features1m 44s
-
Overview of XAML3m 34s
-
2. Create a WPF Application
-
Use the XAML editor9m 50s
-
Optimal XAML editor settings6m 39s
-
3. Create the UI
-
Create the basic tab layout10m 13s
-
Add assets to project3m 26s
-
Change Windows properties4m 40s
-
Add the Details UI9m 10s
-
Add styles to elements4m 30s
-
UI summary2m 4s
-
-
4. Examples and Concepts
-
Examples of WPF applications7m 46s
-
The 3D parts of WPF4m 5s
-
Use effects for exotic UI3m 34s
-
-
Conclusion
-
Next steps1m 37s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Build UI from user controls