Skip to content

Commit 4485552

Browse files
ES-975464 - Resolve the ReadMe file length issue in this sample repository
1 parent f7e60be commit 4485552

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
1-
# how-to-load-spreadsheet-control-inside-the-stack-panel-
2-
This example demonstrates how to load the spreadsheet control inside the stack panel
1+
# How to load WPF Spreadsheet control inside the stackpanel
2+
3+
This example demonstrates how to load the [WPF Spreadsheet](https://www.syncfusion.com/wpf-controls/spreadsheet) (SfSpreadsheet) control inside the stack panel.
4+
5+
`StackPanel` is a type of container which can keep on growing as many as children. We added into it and provide equal space for each of its children. So, the `ScrollViewer` require height and width to define the space limit of `Spreadsheet` control.
6+
7+
``` xml
8+
<StackPanel>
9+
<Grid Height="750" Width="1000">
10+
<Grid.RowDefinitions>
11+
<RowDefinition Height="70"/>
12+
<RowDefinition Height="auto"/>
13+
<RowDefinition Height="*"/>
14+
</Grid.RowDefinitions>
15+
<Button Content="Load" Grid.Row="0" VerticalAlignment="Top" Width="100"
16+
Click="Button_Click" HorizontalAlignment="Left" Margin="10"/>
17+
<syncfusion:SfSpreadsheetRibbon Grid.Row="1"
18+
syncfusion:SkinStorage.VisualStyle="office2010lBlue"/>
19+
<syncfusion:SfSpreadsheet Name="spreadsheet" Grid.Row="2" Visibility="Hidden"/>
20+
</Grid>
21+
</StackPanel>
22+
```
23+
24+
![How to load WPF Spreadsheet control inside the stackpanel](https://www.syncfusion.com/uploads/user/kb/wpf/wpf-45404/wpf-45404_img1.png)

0 commit comments

Comments
 (0)