Skip to content

Commit

Permalink
Fix validation checkmark always visible
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperJMN committed Jun 19, 2024
1 parent 5ec5af5 commit a06381b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
4 changes: 3 additions & 1 deletion WalletWasabi.Fluent/Controls/TextBox.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,13 @@
</ScrollViewer>
</DockPanel>
<StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="10">
<PathIcon Classes="checkMark checkMarkDataValidation" VerticalAlignment="Center">
<Panel x:Name="CheckmarkHost">
<PathIcon Classes="checkMark" VerticalAlignment="Center">
<Interaction.Behaviors>
<CheckMarkVisibilityBehavior />
</Interaction.Behaviors>
</PathIcon>
</Panel>
<ContentPresenter Content="{TemplateBinding InnerRightContent}" />
</StackPanel>
</Grid>
Expand Down
12 changes: 2 additions & 10 deletions WalletWasabi.Fluent/Styles/TextBox.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,11 @@
<Setter Property="Theme" Value="{DynamicResource TextBoxTheme}" />
</Style>

<Style Selector="TextBox:not(.hasCheckMark) /template/ PathIcon.checkMark.checkMarkDataValidation">
<Style Selector="TextBox:not(.hasCheckMark) /template/ Panel#CheckmarkHost">
<Setter Property="IsVisible" Value="False" />
</Style>

<Style Selector="TextBox.hasCheckMark /template/ PathIcon.checkMark.checkMarkDataValidation">
<Setter Property="IsVisible" Value="True" />
</Style>

<Style Selector="TextBox:not(.hasCheckMarkBoolean) /template/ PathIcon.checkMark.checkMarkBoolean">
<Setter Property="IsVisible" Value="False" />
</Style>

<Style Selector="TextBox.hasCheckMarkBoolean /template/ PathIcon.checkMark.checkMarkBoolean">
<Style Selector="TextBox.hasCheckMark /template/ Panel#CheckmarkHost">
<Setter Property="IsVisible" Value="True" />
</Style>

Expand Down

0 comments on commit a06381b

Please sign in to comment.