DateTimeEditBox Checkbox AutomationId

Editors for WPF Forum

Posted 6 years ago by Lindsey Isaak
Version: 13.1.0581
Avatar

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

Comments (1)

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

Hi Lindsey,

All PartEditBox-based controls have this in their Style:

<Setter Property="CheckBoxTemplate">
	<Setter.Value>
		<DataTemplate>
			<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}}" />
		</DataTemplate>
	</Setter.Value>
</Setter>

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


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.