Skip to content

Commit 72fd666

Browse files
ES-857662 - Folder renamed.
1 parent f3dcb9b commit 72fd666

21 files changed

Lines changed: 2850 additions & 484 deletions
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
2-
<configuration>
3-
<startup>
4-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
5-
</startup>
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
5+
</startup>
66
</configuration>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<Application x:Class="DisplayRowIndexInGridRowHeaderCell.App"
2-
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
xmlns:local="clr-namespace:DisplayRowIndexInGridRowHeaderCell"
5-
StartupUri="MainWindow.xaml">
6-
<Application.Resources>
7-
8-
</Application.Resources>
9-
</Application>
1+
<Application x:Class="DisplayRowIndexInGridRowHeaderCell.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:local="clr-namespace:DisplayRowIndexInGridRowHeaderCell"
5+
StartupUri="MainWindow.xaml">
6+
<Application.Resources>
7+
8+
</Application.Resources>
9+
</Application>
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Configuration;
4-
using System.Data;
5-
using System.Linq;
6-
using System.Threading.Tasks;
7-
using System.Windows;
8-
9-
namespace DisplayRowIndexInGridRowHeaderCell
10-
{
11-
/// <summary>
12-
/// Interaction logic for App.xaml
13-
/// </summary>
14-
public partial class App : Application
15-
{
16-
}
17-
}
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Threading.Tasks;
7+
using System.Windows;
8+
9+
namespace DisplayRowIndexInGridRowHeaderCell
10+
{
11+
/// <summary>
12+
/// Interaction logic for App.xaml
13+
/// </summary>
14+
public partial class App : Application
15+
{
16+
}
17+
}

DisplayRowIndexinRowheadercell/Behavior/WindowBehavior.cs renamed to DisplayRowIndexInGridRowHeaderCell/Behavior/WindowBehavior.cs

File renamed without changes.

DisplayRowIndexinRowheadercell/Converter/RowIndexConverter.cs renamed to DisplayRowIndexInGridRowHeaderCell/Converter/RowIndexConverter.cs

File renamed without changes.

DisplayRowIndexinRowheadercell/DisplayRowIndexInGridRowHeaderCell.csproj renamed to DisplayRowIndexInGridRowHeaderCell/DisplayRowIndexInGridRowHeaderCell.csproj

File renamed without changes.

DisplayRowIndexinRowheadercell/DisplayRowIndexInGridRowHeaderCell.sln renamed to DisplayRowIndexInGridRowHeaderCell/DisplayRowIndexInGridRowHeaderCell.sln

File renamed without changes.
Lines changed: 84 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,84 @@
1-
<Window x:Class="DisplayRowIndexInGridRowHeaderCell.MainWindow"
2-
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5-
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
6-
xmlns:datapager="clr-namespace:Syncfusion.UI.Xaml.Controls.DataPager;assembly=Syncfusion.SfGrid.WPF"
7-
xmlns:interactivity="http://schemas.microsoft.com/xaml/behaviors"
8-
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9-
xmlns:local="clr-namespace:DisplayRowIndexInGridRowHeaderCell"
10-
mc:Ignorable="d"
11-
Title="MainWindow" Height="450" Width="800">
12-
13-
14-
15-
<Window.DataContext>
16-
<local:ViewModel/>
17-
</Window.DataContext>
18-
19-
<Window.Resources>
20-
<local:RowIndexConverter x:Key="rowIndexConverter"/>
21-
</Window.Resources>
22-
23-
<Grid x:Name="Root_Grid">
24-
<Grid.RowDefinitions>
25-
<RowDefinition Height="auto" />
26-
<RowDefinition Height="Auto" />
27-
</Grid.RowDefinitions>
28-
<syncfusion:SfDataGrid x:Name="dataGrid"
29-
AllowFiltering="True"
30-
Margin="10"
31-
ColumnSizer="Star"
32-
AutoGenerateColumns="False"
33-
ItemsSource="{Binding ElementName=dataPager,Path=PagedSource}"
34-
ShowRowHeader="True">
35-
<syncfusion:SfDataGrid.Columns>
36-
<syncfusion:GridNumericColumn HeaderText="Order ID" MappingName="OrderID" NumberDecimalDigits="0"/>
37-
<syncfusion:GridTextColumn HeaderText="Customer ID" MappingName="CustomerID"/>
38-
<syncfusion:GridTextColumn HeaderText="Customer Name" MappingName="CustomerName"/>
39-
<syncfusion:GridTextColumn MappingName="Country"/>
40-
</syncfusion:SfDataGrid.Columns>
41-
42-
<syncfusion:SfDataGrid.Resources>
43-
<Style TargetType="syncfusion:GridRowHeaderCell">
44-
<Setter Property="Template">
45-
<Setter.Value>
46-
<ControlTemplate TargetType="syncfusion:GridRowHeaderCell">
47-
<Border x:Name="PART_RowHeaderCellBorder"
48-
Background="Blue"
49-
BorderBrush="{TemplateBinding BorderBrush}"
50-
BorderThickness="{TemplateBinding BorderThickness}">
51-
<Grid>
52-
<!--//RowIndex is displayed here-->
53-
<TextBlock HorizontalAlignment="Center"
54-
VerticalAlignment="Center"
55-
Foreground="White"
56-
TextAlignment="Center" >
57-
<TextBlock.Text>
58-
<MultiBinding Converter="{StaticResource rowIndexConverter}" >
59-
<Binding Path="RowIndex" RelativeSource="{RelativeSource TemplatedParent}"/>
60-
<Binding ElementName="dataGrid" />
61-
<Binding ElementName="dataPager" />
62-
</MultiBinding>
63-
</TextBlock.Text>
64-
</TextBlock>
65-
</Grid>
66-
</Border>
67-
</ControlTemplate>
68-
</Setter.Value>
69-
</Setter>
70-
</Style>
71-
</syncfusion:SfDataGrid.Resources>
72-
</syncfusion:SfDataGrid>
73-
74-
<datapager:SfDataPager x:Name="dataPager"
75-
Grid.Row="1"
76-
NumericButtonCount="10"
77-
PageSize="10"
78-
Source="{Binding Orders}" />
79-
80-
</Grid>
81-
<interactivity:Interaction.Behaviors>
82-
<local:WindowBehavior/>
83-
</interactivity:Interaction.Behaviors>
84-
</Window>
1+
<Window x:Class="DisplayRowIndexInGridRowHeaderCell.MainWindow"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5+
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
6+
xmlns:datapager="clr-namespace:Syncfusion.UI.Xaml.Controls.DataPager;assembly=Syncfusion.SfGrid.WPF"
7+
xmlns:interactivity="http://schemas.microsoft.com/xaml/behaviors"
8+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9+
xmlns:local="clr-namespace:DisplayRowIndexInGridRowHeaderCell"
10+
mc:Ignorable="d"
11+
Title="MainWindow" Height="450" Width="800">
12+
13+
14+
15+
<Window.DataContext>
16+
<local:ViewModel/>
17+
</Window.DataContext>
18+
19+
<Window.Resources>
20+
<local:RowIndexConverter x:Key="rowIndexConverter"/>
21+
</Window.Resources>
22+
23+
<Grid x:Name="Root_Grid">
24+
<Grid.RowDefinitions>
25+
<RowDefinition Height="auto" />
26+
<RowDefinition Height="Auto" />
27+
</Grid.RowDefinitions>
28+
<syncfusion:SfDataGrid x:Name="dataGrid"
29+
AllowFiltering="True"
30+
Margin="10"
31+
ColumnSizer="Star"
32+
AutoGenerateColumns="False"
33+
ItemsSource="{Binding ElementName=dataPager,Path=PagedSource}"
34+
ShowRowHeader="True">
35+
<syncfusion:SfDataGrid.Columns>
36+
<syncfusion:GridNumericColumn HeaderText="Order ID" MappingName="OrderID" NumberDecimalDigits="0"/>
37+
<syncfusion:GridTextColumn HeaderText="Customer ID" MappingName="CustomerID"/>
38+
<syncfusion:GridTextColumn HeaderText="Customer Name" MappingName="CustomerName"/>
39+
<syncfusion:GridTextColumn MappingName="Country"/>
40+
</syncfusion:SfDataGrid.Columns>
41+
42+
<syncfusion:SfDataGrid.Resources>
43+
<Style TargetType="syncfusion:GridRowHeaderCell">
44+
<Setter Property="Template">
45+
<Setter.Value>
46+
<ControlTemplate TargetType="syncfusion:GridRowHeaderCell">
47+
<Border x:Name="PART_RowHeaderCellBorder"
48+
Background="Blue"
49+
BorderBrush="{TemplateBinding BorderBrush}"
50+
BorderThickness="{TemplateBinding BorderThickness}">
51+
<Grid>
52+
<!--//RowIndex is displayed here-->
53+
<TextBlock HorizontalAlignment="Center"
54+
VerticalAlignment="Center"
55+
Foreground="White"
56+
TextAlignment="Center" >
57+
<TextBlock.Text>
58+
<MultiBinding Converter="{StaticResource rowIndexConverter}" >
59+
<Binding Path="RowIndex" RelativeSource="{RelativeSource TemplatedParent}"/>
60+
<Binding ElementName="dataGrid" />
61+
<Binding ElementName="dataPager" />
62+
</MultiBinding>
63+
</TextBlock.Text>
64+
</TextBlock>
65+
</Grid>
66+
</Border>
67+
</ControlTemplate>
68+
</Setter.Value>
69+
</Setter>
70+
</Style>
71+
</syncfusion:SfDataGrid.Resources>
72+
</syncfusion:SfDataGrid>
73+
74+
<datapager:SfDataPager x:Name="dataPager"
75+
Grid.Row="1"
76+
NumericButtonCount="10"
77+
PageSize="10"
78+
Source="{Binding Orders}" />
79+
80+
</Grid>
81+
<interactivity:Interaction.Behaviors>
82+
<local:WindowBehavior/>
83+
</interactivity:Interaction.Behaviors>
84+
</Window>
Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
using Syncfusion.UI.Xaml.Controls.DataPager;
2-
using Syncfusion.UI.Xaml.Grid;
3-
using System;
4-
using System.Collections.Generic;
5-
using System.Globalization;
6-
using System.Linq;
7-
using System.Text;
8-
using System.Threading.Tasks;
9-
using System.Windows;
10-
using System.Windows.Controls;
11-
using System.Windows.Data;
12-
using System.Windows.Documents;
13-
using System.Windows.Input;
14-
using System.Windows.Media;
15-
using System.Windows.Media.Imaging;
16-
using System.Windows.Navigation;
17-
using System.Windows.Shapes;
18-
19-
namespace DisplayRowIndexInGridRowHeaderCell
20-
{
21-
/// <summary>
22-
/// Interaction logic for MainWindow.xaml
23-
/// </summary>
24-
public partial class MainWindow : Window
25-
{
26-
public MainWindow()
27-
{
28-
InitializeComponent();
29-
30-
}
31-
}
32-
}
1+
using Syncfusion.UI.Xaml.Controls.DataPager;
2+
using Syncfusion.UI.Xaml.Grid;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Globalization;
6+
using System.Linq;
7+
using System.Text;
8+
using System.Threading.Tasks;
9+
using System.Windows;
10+
using System.Windows.Controls;
11+
using System.Windows.Data;
12+
using System.Windows.Documents;
13+
using System.Windows.Input;
14+
using System.Windows.Media;
15+
using System.Windows.Media.Imaging;
16+
using System.Windows.Navigation;
17+
using System.Windows.Shapes;
18+
19+
namespace DisplayRowIndexInGridRowHeaderCell
20+
{
21+
/// <summary>
22+
/// Interaction logic for MainWindow.xaml
23+
/// </summary>
24+
public partial class MainWindow : Window
25+
{
26+
public MainWindow()
27+
{
28+
InitializeComponent();
29+
30+
}
31+
}
32+
}

0 commit comments

Comments
 (0)