Implementing support of own child/children in WPF control.(rredcat.blogspot.com)
submitted by
RredCat(299) 3 years ago
The best way for use child/children in WPF is customize any control with property for child/children that inherit from Control (for example ContentControl or ItemsControl). Control has wide possibility of customizing through ControlTemplate. But sometime we want to have specific behaviour of child/children (for example if we want to implement MDI container any other specific container). What should you do for implementing this behaviour? I will show major steps in sample of simple custom panel that is inherited from FrameworkElement.
|category: Windows Presentation Foundation
|Views: 21
tags:
Inherit Net.Framework 3.5 WPF xaml another
Everyones tags:
Your Tags: