mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Restore ResultsMVisualStateTrigger
This commit is contained in:
parent
73609aadf0
commit
7556e84504
2 changed files with 6 additions and 5 deletions
|
@ -907,7 +907,7 @@
|
||||||
<VisualStateGroup>
|
<VisualStateGroup>
|
||||||
<VisualState x:Name="ResultsL">
|
<VisualState x:Name="ResultsL">
|
||||||
<VisualState.StateTriggers>
|
<VisualState.StateTriggers>
|
||||||
<AdaptiveTrigger MinWindowHeight="800" />
|
<AdaptiveTrigger x:Name="ResultsMVisualStateTrigger" MinWindowHeight="800" />
|
||||||
</VisualState.StateTriggers>
|
</VisualState.StateTriggers>
|
||||||
<Storyboard />
|
<Storyboard />
|
||||||
</VisualState>
|
</VisualState>
|
||||||
|
|
|
@ -228,21 +228,21 @@ namespace CalculatorApp
|
||||||
state = "Programmer";
|
state = "Programmer";
|
||||||
Model.IsDecimalEnabled = false;
|
Model.IsDecimalEnabled = false;
|
||||||
// UNO TODO
|
// UNO TODO
|
||||||
// ResultsMVisualStateTrigger.MinWindowHeight = 640;
|
ResultsMVisualStateTrigger.MinWindowHeight = 640;
|
||||||
}
|
}
|
||||||
else if (IsScientific)
|
else if (IsScientific)
|
||||||
{
|
{
|
||||||
state = "Scientific";
|
state = "Scientific";
|
||||||
Model.IsDecimalEnabled = true;
|
Model.IsDecimalEnabled = true;
|
||||||
// UNO TODO
|
// UNO TODO
|
||||||
// ResultsMVisualStateTrigger.MinWindowHeight = 544;
|
ResultsMVisualStateTrigger.MinWindowHeight = 544;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
state = "Standard";
|
state = "Standard";
|
||||||
Model.IsDecimalEnabled = true;
|
Model.IsDecimalEnabled = true;
|
||||||
// UNO TODO
|
// UNO TODO
|
||||||
// ResultsMVisualStateTrigger.MinWindowHeight = 1;
|
ResultsMVisualStateTrigger.MinWindowHeight = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
CloseHistoryFlyout();
|
CloseHistoryFlyout();
|
||||||
|
@ -376,7 +376,8 @@ namespace CalculatorApp
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
AnimateWithoutResult.Begin();
|
/* UNO TODO */
|
||||||
|
AnimateWithoutResult?.Begin();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue