DateTimeEditBox Checkbox AutomationId

Editors for WPF Forum

Posted 9 years ago by Lindsey Isaak
Version: 13.1.0581

Is there a way to assign an Automation ID to the checkbox for the DateTimeEditBox?

Comments (1)

Answer - Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Lindsey,

All PartEditBox-based controls have this in their Style:

<Setter Property="CheckBoxTemplate">
			<CheckBox VerticalAlignment="Center" Margin="0,0,0,1" Padding="0" Style="{DynamicResource {x:Static themes:SharedResourceKeys.CheckBoxStyleKey}}"
					IsChecked="{Binding IsChecked, RelativeSource={x:Static editors:PartEditBox.RelativeSource}}"
					IsEnabled="{Binding IsReadOnly, RelativeSource={x:Static editors:PartEditBox.RelativeSource}, Converter={StaticResource BooleanNotConverter}}" />

You could update that and include an automation ID if you'd like. 

Actipro Software Support

The latest build of this product (v22.1.3) was released 18 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.