Skip to content

Commit 08775df

Browse files
authored
[WPF] Reduced opacity of disabled buttons (#23)
1 parent fadcec6 commit 08775df

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Esri.Calcite.Wpf/Controls/Buttons.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
<Setter TargetName="bg" Property="Padding" Value="0" />
8383
</Trigger>
8484
<Trigger Property="IsEnabled" Value="False">
85-
<Setter TargetName="bg" Property="Opacity" Value="0.8" />
85+
<Setter TargetName="bg" Property="Opacity" Value="0.5" />
8686
</Trigger>
8787
<Trigger Property="IsEnabled" Value="True">
8888
<Setter TargetName="bg" Property="Opacity" Value="1" />
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
<Button xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">Test Passed</Button>
1+
<StackPanel xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<Button xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Margin="0,0,0,5">Default Enabled</Button>
3+
<Button xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" IsEnabled="False">Default Disabled</Button>
4+
</StackPanel>

0 commit comments

Comments
 (0)