Skip to content

Commit cec8ede

Browse files
committed
update readme
1 parent 1df7846 commit cec8ede

File tree

3 files changed

+49
-48
lines changed

3 files changed

+49
-48
lines changed
Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,42 @@
1-
<Window
1+
<dx:ThemedWindow x:Class="SpreadsheetControl_WPF_API_Part02.MainWindow" dx:ThemeManager.ThemeName="MetropolisLight" Title="MainWindow" Height="800" Width="1024"
2+
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
23
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
34
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
45
xmlns:dxnt="http://schemas.devexpress.com/winfx/2008/xaml/navbar/themekeys"
5-
xmlns:dxsps="http://schemas.devexpress.com/winfx/2008/xaml/spreadsheet"
6-
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
7-
xmlns:dxn="http://schemas.devexpress.com/winfx/2008/xaml/navbar"
8-
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
9-
x:Class="SpreadsheetControl_WPF_API_Part02.MainWindow"
10-
dx:ThemeManager.ThemeName="MetropolisLight"
11-
Title="MainWindow" Height="800" Width="1024">
6+
xmlns:dxsps="http://schemas.devexpress.com/winfx/2008/xaml/spreadsheet"
7+
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
8+
xmlns:dxn="http://schemas.devexpress.com/winfx/2008/xaml/navbar">
129

13-
<Window.Resources>
10+
<dx:ThemedWindow.Resources>
1411
<Style TargetType="dxn:NavBarGroup">
15-
<Setter Property="Header" Value="{Binding Header}"/>
16-
<Setter Property="ItemsSource" Value="{Binding Items}"/>
12+
<Setter Property="Header" Value="{Binding Header}" />
13+
<Setter Property="ItemsSource" Value="{Binding Items}" />
1714
</Style>
1815
<Style TargetType="dxn:NavBarItem">
1916
<!--<Setter Property="Content" Value="{Binding}"/>-->
2017
<Setter Property="Template">
2118
<Setter.Value>
2219
<DataTemplate>
23-
<TextBlock Name ="textblock" Text="{Binding Path=Header}" />
20+
<TextBlock Name="textblock" Text="{Binding Path=Header}" />
2421
</DataTemplate>
2522
</Setter.Value>
2623
</Setter>
2724
</Style>
28-
</Window.Resources>
25+
</dx:ThemedWindow.Resources>
2926

3027
<Grid>
3128
<Grid.RowDefinitions>
32-
<RowDefinition Height="30"/>
33-
<RowDefinition Height="542*"/>
29+
<RowDefinition Height="30" />
30+
<RowDefinition Height="542*" />
3431
</Grid.RowDefinitions>
3532
<Grid.ColumnDefinitions>
3633
<ColumnDefinition Width="180" />
3734
<ColumnDefinition />
3835
</Grid.ColumnDefinitions>
39-
<Label Content="Double-click the action name on the left to run the example" FontSize="18" Grid.ColumnSpan="2" Grid.Row="0"/>
40-
<dxn:NavBarControl Name="navBarControl1" Grid.Column="0" Grid.Row="1" ItemsSource="{Binding}" >
36+
<Label Content="Double-click the action name on the left to run the example" FontSize="18" Grid.ColumnSpan="2" Grid.Row="0" />
37+
<dxn:NavBarControl Name="navBarControl1" Grid.Column="0" Grid.Row="1" ItemsSource="{Binding}">
4138
<dxn:NavBarControl.View>
42-
<dxn:NavigationPaneView MouseDoubleClick="NavigationPaneView_MouseDoubleClick" MaxVisibleGroupCount="10" />
39+
<dxn:NavigationPaneView MouseDoubleClick="NavigationPaneView_MouseDoubleClick" MaxVisibleGroupCount="10" />
4340
</dxn:NavBarControl.View>
4441
</dxn:NavBarControl>
4542

@@ -48,4 +45,4 @@
4845
</Grid>
4946

5047

51-
</Window>
48+
</dx:ThemedWindow>

CS/SpreadsheetControl_WPF_API_Part02/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace SpreadsheetControl_WPF_API_Part02
99
/// <summary>
1010
/// Interaction logic for MainWindow.xaml
1111
/// </summary>
12-
public partial class MainWindow : Window
12+
public partial class MainWindow : DevExpress.Xpf.Core.ThemedWindow
1313
{
1414
IWorkbook workbook;
1515

Readme.md

Lines changed: 32 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,36 +3,40 @@
33
[![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/E4944)
44
[![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183)
55
<!-- default badges end -->
6-
<!-- default file list -->
7-
*Files to look at*:
8-
9-
* [BusinessObjects.cs](./CS/SpreadsheetControl_WPF_API_Part02/BusinessObjects.cs) (VB: [BusinessObjects.vb](./VB/SpreadsheetControl_WPF_API_Part02/BusinessObjects.vb))
10-
* [Groups.cs](./CS/SpreadsheetControl_WPF_API_Part02/Groups.cs) (VB: [Groups.vb](./VB/SpreadsheetControl_WPF_API_Part02/Groups.vb))
11-
* [MainWindow.xaml](./CS/SpreadsheetControl_WPF_API_Part02/MainWindow.xaml) (VB: [MainWindow.xaml](./VB/SpreadsheetControl_WPF_API_Part02/MainWindow.xaml))
12-
* [MainWindow.xaml.cs](./CS/SpreadsheetControl_WPF_API_Part02/MainWindow.xaml.cs) (VB: [MainWindow.xaml.vb](./VB/SpreadsheetControl_WPF_API_Part02/MainWindow.xaml.vb))
13-
* [AutoFilterActions.cs](./CS/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/AutoFilterActions.cs) (VB: [AutoFilterActions.vb](./VB/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/AutoFilterActions.vb))
14-
* [CustomFunctionActions.cs](./CS/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/CustomFunctionActions.cs) (VB: [CustomFunctionActions.vb](./VB/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/CustomFunctionActions.vb))
15-
* [DocumentPropertiesActions.cs](./CS/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/DocumentPropertiesActions.cs) (VB: [DocumentPropertiesActions.vb](./VB/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/DocumentPropertiesActions.vb))
16-
* [ExportActions.cs](./CS/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/ExportActions.cs) (VB: [ExportActions.vb](./VB/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/ExportActions.vb))
17-
* [GroupAndOutlineActions.cs](./CS/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/GroupAndOutlineActions.cs) (VB: [GroupAndOutlineActions.vb](./VB/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/GroupAndOutlineActions.vb))
18-
* [ProtectionActions.cs](./CS/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/ProtectionActions.cs) (VB: [ProtectionActions.vb](./VB/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/ProtectionActions.vb))
19-
* [SearchActions.cs](./CS/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/SearchActions.cs) (VB: [SearchActions.vb](./VB/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/SearchActions.vb))
20-
* [ShapeActions.cs](./CS/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/ShapeActions.cs) (VB: [ShapeActions.vb](./VB/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/ShapeActions.vb))
21-
* [SortActions.cs](./CS/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/SortActions.cs) (VB: [SortActions.vb](./VB/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/SortActions.vb))
22-
* [TableActions.cs](./CS/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/TableActions.cs) (VB: [TableActions.vb](./VB/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions/TableActions.vb))
23-
* [Utils.cs](./CS/SpreadsheetControl_WPF_API_Part02/Utils.cs) (VB: [Utils.vb](./VB/SpreadsheetControl_WPF_API_Part02/Utils.vb))
24-
<!-- default file list end -->
6+
257
# WPF SpreadsheetControl API - Part 2
268

9+
This example is the second part of the SpreadsheetControl API set of examples that demonstrates how to use the SpreadsheetControl API to manage spreadsheet documents in code, without the need for Microsoft Excel to be installed.
10+
11+
This sample introduces API properties and methods used to perform the following operations:
12+
13+
* Insert, delete and modify pictures
14+
* Add a hyperlink to a picture
15+
* Add custom functions to the spreadsheet
16+
* Create and format a table
17+
* Protect a workbook
18+
* Protect a worksheet
19+
* Apply user-specific permissions to a range in a protected worksheet
20+
* Sort a range in descending and ascending orders
21+
* Sort using a custom comparer
22+
* Sort by multiple columns
23+
* Simple search
24+
* Search with options
25+
* Export to HTML
26+
* Group and outline data
27+
* Insert subtotals
28+
* Filter the data by a list of values
29+
* Apply a number filter
30+
* Apply a dynamic filter
31+
* Sort filtered data
32+
* Specify the built-in document properties
33+
* Specify the custom document properties
34+
35+
## Files to Review
2736

28-
<p>This example is the second part of the SpreadsheetControl API set of examples that demonstrates how to use the SpreadsheetControl API to programmatically manage spreadsheet documents, without the need for Microsoft Excel to be installed.</p>
29-
<p>This sample introduces API properties and methods used to perform the following operations:</p>
30-
<p>- Insert, delete and modify pictures<br> - Add a hyperlink to a picture<br> - Add custom functions to the spreadsheet<br> - Create and format a table<br><br></p>
31-
<p>Starting from v2014 vol.1:</p>
32-
<p>- Protect a workbook<br>- Protect a worksheet<br>- Apply user-specific permissions to a range in a protected worksheet<br>- Sort a range in descending and ascending orders<br>- Sort using a custom comparer<br>- Sort by multiple columns<br>- Simple search<br>- Search with options<br>- Export to HTML<br><br></p>
33-
<p>Starting from v2014 vol.2:</p>
34-
<p>- Group and outline data<br>- Insert subtotals<br>- Filter the data by a list of values<br>- Apply a number filter<br>- Apply a dynamic filter<br>- Sort the filtered data<br>- Specify the built-in document properties<br>- Specify the custom document properties<br><br>See also:<br><a href="https://www.devexpress.com/Support/Center/p/E4938">WPF SpreadsheetControl API - Part 1</a></p>
35-
<a href="https://github.com/DevExpress-Examples/wpf-spreadsheetcontrol-api-part-3-t289419">WPF SpreadsheetControl API - Part 3</a></p>
36-
<br/>
37+
* [SpreadsheetActions](./CS/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions) (VB: [SpreadsheetActions](./VB/SpreadsheetControl_WPF_API_Part02/SpreadsheetActions))
3738

39+
## More Examples
3840

41+
* [WPF SpreadsheetControl API - Part 1](https://github.com/DevExpress-Examples/wpf-spreadsheetcontrol-api-part-1)
42+
* [WPF SpreadsheetControl API - Part 3](https://github.com/DevExpress-Examples/wpf-spreadsheetcontrol-api-part-3)

0 commit comments

Comments
 (0)