Skip to content

Commit 3330176

Browse files
committed
Remove the hardcoded size for the compact overlay
1 parent 90a4cdf commit 3330176

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Samples/Islands/WpfCalculator/CalculatorDemo/MainWindow.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,6 @@ void SetCompactView(bool useCompactView)
481481

482482
// The AppWindow's CompactOverlay mode will make it always-on-top.
483483
_appWindow.SetPresenter(AppWindowPresenterKind.CompactOverlay);
484-
_appWindow.ResizeClient(new Windows.Graphics.SizeInt32(300, 80));
485484
}
486485
else
487486
{

Samples/Islands/WpfCalculator/CalculatorDemo/MainWindow.xaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,13 @@
147147

148148
<!-- This is what's shown when we enter the compat view mode-->
149149
<DockPanel Name="CompactPanel" Visibility="Collapsed">
150-
<Button Name="ExitCompactViewButton" Click="ExitCompactViewButton_Click" DockPanel.Dock="Top">Exit Compact View</Button>
151-
<TextBlock Margin="3" Name="CompactViewText" FontSize="22" />
150+
<DockPanel DockPanel.Dock="Top">
151+
<Button Name="ExitCompactViewButton" Click="ExitCompactViewButton_Click" DockPanel.Dock="Right">Restore</Button>
152+
<TextBlock Margin="3" Name="CompactViewText" FontSize="22" />
153+
154+
</DockPanel>
155+
<Border x:Name="CompactAreaBorder">
156+
</Border>
152157
</DockPanel>
153158
</Grid>
154159
</Window>

0 commit comments

Comments
 (0)