Quantcast
Channel: Avalon
Viewing all articles
Browse latest Browse all 20

Expose Inner Control of WPF Control

$
0
0
I have a WPF control (derived from System.Windows.Controls.Control) that I
am creating, it will be used to apply a common look and feel to a form.
I have defined the XAML (in Generic.xaml) as follows...

<Style TargetType="{x:Type local:Dialog}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type local:Dialog}">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">...

Read more

Viewing all articles
Browse latest Browse all 20

Trending Articles