Skip to content

Commit 02a3c89

Browse files
authored
Disable buttons when units are not loaded (microsoft#1805)
1 parent 39d24ab commit 02a3c89

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Calculator/Views/UnitConverter.xaml

+3
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,9 @@
499499
<Setter Target="Value1Container.Visibility" Value="Collapsed"/>
500500
<Setter Target="Units2.Visibility" Value="Collapsed"/>
501501
<Setter Target="Value2Container.Visibility" Value="Collapsed"/>
502+
<Setter Target="NumberPad.IsEnabled" Value="False"/>
503+
<Setter Target="ClearEntryButtonPos0.IsEnabled" Value="False"/>
504+
<Setter Target="BackSpaceButtonSmall.IsEnabled" Value="False"/>
502505
</VisualState.Setters>
503506
</VisualState>
504507
<VisualState x:Name="UnitLoadedState"/>

0 commit comments

Comments
 (0)