Skip to content

Commit c92c015

Browse files
committed
Modify Sample project
1 parent d18ae84 commit c92c015

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

Sample/BasicSample.Wpf/MainWindow.xaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@
77
xmlns:ge="clr-namespace:SourceChord.GridExtra;assembly=GridExtra.Wpf"
88
mc:Ignorable="d"
99
Title="MainWindow" Height="350" Width="525">
10-
<Grid x:Name="grid" ge:GridEx.ColumnDefinition="*, *, *, *"
10+
<Grid x:Name="grid"
1111
ge:GridEx.TemplateArea="
12-
Header Header Header &#10;
13-
Menu Content SubMenu &#10;
14-
Footer Footer Footer &#10;
12+
Header Header Header/
13+
Menu Content SubMenu/
14+
Footer Footer Footer/
1515
">
16-
<Button Content="Button" Margin="5" ge:GridEx.AreaName="Header" />
17-
<Button Content="Menu" Margin="5" ge:GridEx.AreaName="Menu"/>
18-
<Button Content="Content" Margin="5" Click="Button_Click" ge:GridEx.Area="1,1,2,2"/>
16+
<Button Content="Header" Margin="5" ge:GridEx.AreaName="Header" />
17+
<Button Content="Menu" Margin="5" ge:GridEx.AreaName="Menu" />
18+
<Button Content="SubMenu" Margin="5" ge:GridEx.AreaName="SubMenu" />
19+
<Button Content="Content" Margin="5" ge:GridEx.AreaName="Content" Click="Button_Click" />
20+
<Button Content="Footer" Margin="5" ge:GridEx.AreaName="Footer" />
1921
</Grid>
2022
</Window>

Sample/BasicSample.Wpf/MainWindow.xaml.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ public MainWindow()
2828
private void Button_Click(object sender, RoutedEventArgs e)
2929
{
3030
var temp = @"
31-
Header Header SubMenu
32-
Menu Content SubMenu
33-
Footer Footer Footer
31+
Header Header
32+
Menu SubMenu
33+
Content Content
34+
Footer Footer
3435
";
3536
SourceChord.GridExtra.GridEx.SetTemplateArea(grid, temp);
3637
}

0 commit comments

Comments
 (0)