mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Fix Standard buttons showing through on other pages
Bind Visibility of buttons, this works around limitation on Uno of x:Load not being bindable (nor de-settable after first materialize).
This commit is contained in:
parent
00ecbbf090
commit
135a19e440
1 changed files with 3 additions and 1 deletions
|
@ -9,9 +9,11 @@
|
|||
UseLayoutRounding="False"
|
||||
mc:Ignorable="">
|
||||
<Grid>
|
||||
<!--Bind visibility as a workaround for nventive/Uno#925-->
|
||||
<local:CalculatorStandardOperators x:Name="StandardOperators"
|
||||
x:Load="{x:Bind Model.IsStandard, Mode=OneWay}"
|
||||
IsEnabled="{x:Bind Model.IsStandard, Mode=OneWay}"
|
||||
Visibility="{x:Bind Model.IsStandard, Mode=OneWay}"
|
||||
TabIndex="17" />
|
||||
|
||||
<local:CalculatorScientificOperators x:Name="ScientificOperators"
|
||||
|
@ -31,4 +33,4 @@
|
|||
TabIndex="16"
|
||||
Visibility="{x:Bind Model.IsProgrammer, Mode=OneWay}" />
|
||||
</Grid>
|
||||
</UserControl>
|
||||
</UserControl>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue