mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-14 21:26:34 +08:00
fix: ClearButton shouble not be focusable.
This commit is contained in:
@@ -239,7 +239,8 @@
|
|||||||
Margin="0,0,9,0"
|
Margin="0,0,9,0"
|
||||||
Command="{Binding $parent[DatePicker].Clear}"
|
Command="{Binding $parent[DatePicker].Clear}"
|
||||||
Content="{DynamicResource IconButtonClearData}"
|
Content="{DynamicResource IconButtonClearData}"
|
||||||
IsVisible="False" />
|
IsVisible="False"
|
||||||
|
Focusable="False" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataValidationErrors>
|
</DataValidationErrors>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
|
|||||||
@@ -107,6 +107,7 @@
|
|||||||
Command="{Binding $parent[TextBox].Clear}"
|
Command="{Binding $parent[TextBox].Clear}"
|
||||||
Content="{DynamicResource IconButtonClearData}"
|
Content="{DynamicResource IconButtonClearData}"
|
||||||
IsVisible="False"
|
IsVisible="False"
|
||||||
|
Focusable="False"
|
||||||
Theme="{StaticResource InnerIconButton}" />
|
Theme="{StaticResource InnerIconButton}" />
|
||||||
<ToggleButton
|
<ToggleButton
|
||||||
Name="PART_RevealButton"
|
Name="PART_RevealButton"
|
||||||
@@ -339,6 +340,7 @@
|
|||||||
Command="{Binding $parent[TextBox].Clear}"
|
Command="{Binding $parent[TextBox].Clear}"
|
||||||
Content="{DynamicResource IconButtonClearData}"
|
Content="{DynamicResource IconButtonClearData}"
|
||||||
IsVisible="False"
|
IsVisible="False"
|
||||||
|
Focusable="False"
|
||||||
Theme="{StaticResource InnerIconButton}" />
|
Theme="{StaticResource InnerIconButton}" />
|
||||||
<ToggleButton
|
<ToggleButton
|
||||||
Name="PART_RevealButton"
|
Name="PART_RevealButton"
|
||||||
|
|||||||
@@ -305,7 +305,8 @@
|
|||||||
Margin="0,0,9,0"
|
Margin="0,0,9,0"
|
||||||
Command="{Binding $parent[TimePicker].Clear}"
|
Command="{Binding $parent[TimePicker].Clear}"
|
||||||
Content="{DynamicResource IconButtonClearData}"
|
Content="{DynamicResource IconButtonClearData}"
|
||||||
IsVisible="False" />
|
IsVisible="False"
|
||||||
|
Focusable="False" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataValidationErrors>
|
</DataValidationErrors>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
|
|||||||
Reference in New Issue
Block a user