Mini Kabibi Habibi
<local:PivotGridDemoModule x:Class="PivotGridDemo.PivotGrid.FilterPopup"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:collections="clr-namespace:System.Collections;assembly=mscorlib"
xmlns:local="clr-namespace:PivotGridDemo.PivotGrid"
xmlns:dxpg="http://schemas.devexpress.com/winfx/2008/xaml/pivotgrid"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxdb="http://schemas.devexpress.com/winfx/2008/xaml/demobase"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core">
<dxdb:DemoModuleControl>
<dxdb:DemoModuleControl.OptionsContent>
<StackPanel Orientation="Vertical">
<dx:GroupFrame Header="Filter Popup Options">
<StackPanel Orientation="Vertical">
<dxe:CheckEdit IsChecked="{Binding Path=IsFilterPopupMenuEnabled, ElementName=pivotGrid, Mode=TwoWay}" Content="Enable Filter Popup Menu" Margin="0,0,6,4" />
<dxe:CheckEdit IsChecked="{Binding Path=ShowOnlyAvailableFilterItems, ElementName=pivotGrid, Mode=TwoWay}" Content="Show Only Available Filter Items" Margin="0,0,6,4" />
<StackPanel Orientation="Horizontal" Margin="0,1,0,0">
<TextBlock Text="Group Filter Mode:" Margin="0,2,0,4" />
<dxe:ComboBoxEdit SelectedItem="{Binding Path=GroupFilterMode, ElementName=pivotGrid, Mode=TwoWay}" Width="52" IsTextEditable="False" Margin="6,0,6,4">
<dxe:ComboBoxEdit.Items>
<dxpg:GroupFilterMode>Tree</dxpg:GroupFilterMode>
<dxpg:GroupFilterMode>List</dxpg:GroupFilterMode>
</dxe:ComboBoxEdit.Items>
</dxe:ComboBoxEdit>
</StackPanel>
</StackPanel>
</dx:GroupFrame>
</StackPanel>
</dxdb:DemoModuleControl.OptionsContent>
<dxpg:PivotGridControl x:Name="pivotGrid" local:FieldAreaHelper.FixAreas="True"
RowTreeWidth="180" Loaded="OnPivotGridLoaded" ShowBorder="False"
ShowOnlyAvailableFilterItems="True">
<dxpg:PivotGridControl.Fields>
<dxpg:PivotGridField x:Name="fieldCategory" FieldName="CategoryName" Area="RowArea" Width="100"
Caption="Category" Group="{Binding ElementName=PivotGridGroup1}" />
<dxpg:PivotGridField x:Name="fieldProduct" FieldName="ProductName" Area="RowArea" Width="200" Caption="Product"
Group="{Binding ElementName=PivotGridGroup1}" />
<dxpg:PivotGridField x:Name="fieldYear" FieldName="OrderDate" Area="ColumnArea" GroupInterval="DateYear" Caption="Year"
Width="80" Group="{Binding ElementName=PivotGridGroup2}" />
<dxpg:PivotGridField x:Name="fieldQuarter" FieldName="OrderDate" Area="ColumnArea" GroupInterval="DateQuarter" Caption="Quarter"
ExpandedInFieldsGroup="False" Width="80" ValueFormat="Quarter {0}" Group="{Binding ElementName=PivotGridGroup2}" />
<dxpg:PivotGridField x:Name="fieldMonth" FieldName="OrderDate" Area="ColumnArea" GroupInterval="DateMonth" Caption="Month"
Width="80" Group="{Binding ElementName=PivotGridGroup2}" />
<dxpg:PivotGridField x:Name="fieldExtendedPrice" FieldName="Extended Price" Area="DataArea" Width="100"
Caption="Order Amount"
ExpandedInFieldsGroup="False" />
</dxpg:PivotGridControl.Fields>
<dxpg:PivotGridControl.Groups>
<dxpg:PivotGridGroup x:Name="PivotGridGroup1" />
<dxpg:PivotGridGroup x:Name="PivotGridGroup2" />
</dxpg:PivotGridControl.Groups>
</dxpg:PivotGridControl>
</dxdb:DemoModuleControl>
</local:PivotGridDemoModule>