Skip to content

Commit 0380525

Browse files
authored
Fix ControlExamples not stretching properly on multiple pages (#1857)
## Description Adjusted the layout of `ControlExamples` on `FlipViewPage`, `FlyoutPage`, `TeachingTipPage`, `RelativePanelPage`, and `NumberBoxPage` to ensure proper stretching and alignment with the design of other pages. ## Motivation and Context - Fixes #1855 ## How Has This Been Tested? Manually tested. ## Screenshots: ![image](https://github.com/user-attachments/assets/d63443ec-4688-44fd-9e17-c30ff3266dc8) ## Types of changes - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change)
1 parent 2d50615 commit 0380525

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

WinUIGallery/Samples/ControlPages/FlipViewPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
xmlns:controls="using:WinUIGallery.Controls"
1717
xmlns:models="using:WinUIGallery.Models"
1818
xmlns:pages="using:WinUIGallery.Pages">
19-
<StackPanel HorizontalAlignment="Left">
19+
<StackPanel>
2020
<controls:ControlExample
2121
x:Name="Example1"
2222
ExampleHeight="Auto"

WinUIGallery/Samples/ControlPages/FlyoutPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</StackPanel>
2525
</Flyout>
2626
</Page.Resources>
27-
<StackPanel HorizontalAlignment="Left">
27+
<StackPanel>
2828
<controls:ControlExample HeaderText="A button with a flyout">
2929
<controls:ControlExample.Example>
3030
<Button x:Name="Control1" Content="Empty cart">

WinUIGallery/Samples/ControlPages/NumberBoxPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
1919
mc:Ignorable="d">
2020

21-
<StackPanel HorizontalAlignment="Left">
21+
<StackPanel>
2222
<controls:ControlExample HeaderText="A NumberBox that evaluates expressions." XamlSource="NumberBox/NumberBoxSample1_xaml.txt">
2323
<controls:ControlExample.Example>
2424
<NumberBox

WinUIGallery/Samples/ControlPages/RelativePanelPage.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
mc:Ignorable="d">
2020

2121
<controls:ControlExample
22-
HorizontalAlignment="Left"
2322
VerticalAlignment="Top"
2423
ExampleHeight="Auto"
2524
HeaderText="A RelativePanel control.">

WinUIGallery/Samples/ControlPages/TeachingTipPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
1818
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
1919
mc:Ignorable="d">
20-
<StackPanel HorizontalAlignment="Left">
20+
<StackPanel>
2121
<controls:ControlExample
2222
CSharpSource="TeachingTip/TeachingTipSample1_cs.txt"
2323
HeaderText="Show a targeted TeachingTip on a button."

0 commit comments

Comments
 (0)