I want to create a container usercontrol with design time support in WPF ? How can I do ?
相关问题
- VNC control for WPF application
- How to account for clock offsets in a distributed
- WPF Binding from System.Windows.SystemParameters.P
- XAML: Applying styles to nested controls
- How can I add a horizontal line (“goal line”) for
Declare the following in your UserControl at the top:
Required NameSpaces:
If you want to have a container user control with design time support, you can create a ContentControl http://msdn.microsoft.com/en-us/library/system.windows.controls.contentcontrol.aspx to host other user controls inside your container control.
You can expose the content control as a public property and then assign any other user controls you create to this property to display within the ContentControl. You would have the design time support of the parent control or any child user controls by default since they would all just be user controls.