DoubleEditBox with a TextBlock label

Editors for WPF Forum

Posted 29 days ago by Daniel Constantin
Version: 19.1.0695


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}">
        <ColumnDefinition Width="Auto"/>
        <ColumnDefinition Width="*"/>
      <TextBlock Grid.Column="0"
                 Style="{StaticResource TextBlockStyle}"
                 Text="{Binding Tag, RelativeSource={RelativeSource TemplatedParent}}"
                 Background="{TemplateBinding Background}"
                 Padding="{TemplateBinding Padding}"/>
      <ScrollViewer x:Name="PART_ContentHost"
                    VerticalAlignment="{TemplateBinding VerticalAlignment}"
                    HorizontalAlignment="{TemplateBinding HorizontalAlignment}"/>

Where can I find the Style for the DoubleEditBox to see the parts of this control.

Kind regards,


[Modified 29 days ago]

Comments (2)

Posted 29 days ago by Actipro Software Support - Cleveland, OH, USA

Hi Daniel,

I don't see your user account tied to an organization, but I believe someone in your organization has WPF Studio licenses.  They can download the default styles/templates for the WPF controls from the "Purchases and Licenses" section of their organization account page.

Note that edit boxes have a more complex template than TextBox.  You might be better off just wrapping the edit box with a UserControl that has the TextBlock and DoubleEditBox inside it so that you don't have to retemplate the DoubleEditBox.

Actipro Software Support

Posted 28 days ago by Daniel Constantin


Yes, we have license but my account is not tied to the organisation for now.

I ended up rewriting the control templates for the DoubleEditBox and also for the EmbededTextBox to achieve what I wanted :)

Kind regards,


The latest build of this product (v2020.1.1) was released 7 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.