Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

New Post: CheckComboBox - ItemTemplate

$
0
0
Hello,

I want to use a global style for th checkbox.

If i run:
<ControlTemplate TargetType="{x:Type xctk:SelectorItem}">
                    <Border x:Name="_background" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <CheckBox Content="{TemplateBinding Content}" />
                    </Border>
...
The checkBox only is display, but if i run :
<ControlTemplate TargetType="{x:Type xctk:SelectorItem}">
                    <Border x:Name="_background" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
                        <CheckBox Content=kjhdslkjf" />
                    </Border>
...
I can see the text and the checkbox

What's happened ?

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>