
Hi,
I want to create a DoubleEditBox control template and inside to have on the left a TextBlock and on the right the actual DoubleEditBox.
I created something somilar with a TextBox:
<ControlTemplate x:Key="LabelledTextBoxControlTemplate"
TargetType="{x:Type TextBox}">
<Border Background="{TemplateBinding Background}"
Margin="{TemplateBinding Margin}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0"
Style="{StaticResource TextBlockStyle}"
Text="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"
Background="{TemplateBinding Background}"
Padding="{TemplateBinding Padding}"/>
<ScrollViewer x:Name="PART_ContentHost"
Grid.Column="1"
VerticalAlignment="{TemplateBinding VerticalAlignment}"
HorizontalAlignment="{TemplateBinding HorizontalAlignment}"/>
</Grid>
</Border>
</ControlTemplate>
Where can I find the Style for the DoubleEditBox to see the parts of this control.
Kind regards,
Daniel
[Modified 4 years ago]