Skip to content

Commit a90f73e

Browse files
authored
Merge pull request #370 from GID0317/Gallery-Fix-InfoBarPage
Gallery-Fix: InfoBar width gets increased when changing severity on InfoBarPage
2 parents 078c666 + 37533f3 commit a90f73e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

source/iNKORE.UI.WPF.Modern.Gallery/Pages/Controls/Windows/InfoBarPage.xaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<ui:Page
1+
<ui:Page
22
x:Class="iNKORE.UI.WPF.Modern.Gallery.Pages.Controls.Windows.InfoBarPage"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -30,14 +30,15 @@
3030

3131
</local:ControlExample.Example>
3232
<local:ControlExample.Options>
33-
<StackPanel>
33+
<StackPanel Width="150">
3434
<CheckBox
3535
x:Name="IsOpenCheckBox1"
3636
Content="Is Open"
3737
IsChecked="{Binding IsOpen, ElementName=TestInfoBar1, Mode=TwoWay}"
3838
Click="CheckBox_Click"/>
3939
<ComboBox
4040
x:Name="SeverityComboBox"
41+
HorizontalAlignment="Stretch"
4142
ui:ControlHelper.Header="Severity"
4243
SelectedValue="Informational"
4344
SelectionChanged="SeverityComboBox_SelectionChanged">
@@ -67,7 +68,7 @@
6768
IsOpen="True" />
6869
</local:ControlExample.Example>
6970
<local:ControlExample.Options>
70-
<StackPanel>
71+
<StackPanel Width="150">
7172
<CheckBox
7273
x:Name="IsOpenCheckBox2"
7374
Content="Is Open"
@@ -76,6 +77,7 @@
7677

7778
<ComboBox
7879
x:Name="MessageComboBox"
80+
HorizontalAlignment="Stretch"
7981
ui:ControlHelper.Header="Message Length"
8082
SelectedIndex="1"
8183
SelectionChanged="MessageComboBox_SelectionChanged">
@@ -84,6 +86,7 @@
8486
</ComboBox>
8587
<ComboBox
8688
x:Name="ActionButtonComboBox"
89+
HorizontalAlignment="Stretch"
8790
ui:ControlHelper.Header="Action Button"
8891
SelectedIndex="0"
8992
SelectionChanged="ActionButtonComboBox_SelectionChanged">
@@ -115,7 +118,7 @@
115118
Message="Essential app message for your users to be informed of, acknowledge, or take action on." />
116119
</local:ControlExample.Example>
117120
<local:ControlExample.Options>
118-
<StackPanel>
121+
<StackPanel Width="150">
119122
<CheckBox
120123
x:Name="IsOpenCheckBox3"
121124
Content="Is Open"

0 commit comments

Comments
 (0)