Xceed DataGrid for WPF v7.3 Documentation
In This Topic
    In This Topic
    The following example demonstrates how to provide, through a style, a new GroupHeaderControl template.
    "<?XML:NAMESPACE PREFIX = Grid xmlns /><Grid xmlns:xcdg="http: datagrid" xaml wpf schemas.xceed.com><CRLF>  <GRID.RESOURCES><CRLF><CRLF>    <?XML:NAMESPACE PREFIX = Style TargetType="{x /><Style TargetType="{x:Type xcdg:GroupHeaderControl}"><CRLF>      <SETTER PROPERTY=&QUOT;TEMPLATE&QUOT;><CRLF>        <SETTER.VALUE><CRLF>          <?XML:NAMESPACE PREFIX = ControlTemplate TargetType="{x /><ControlTemplate TargetType="{x:Type xcdg:GroupHeaderControl}"><CRLF>            <BORDER BACKGROUND=&QUOT;ORANGE&QUOT; BORDERTHICKNESS=&QUOT;2&QUOT;><CRLF>              <STACKPANEL ORIENTATION=&QUOT;HORIZONTAL&QUOT;><CRLF>                <CHECKBOX ISCHECKED=&QUOT;{BINDING RELATIVESOURCE={RELATIVESOURCE<CRLF>                                      TemplatedParent}, Path=Group.IsExpanded}"/&gt;<CRLF><CRLF>                <CONTENTPRESENTER /><CRLF>              </STACKPANEL><CRLF>            </BORDER><CRLF><CRLF>          </CONTROLTEMPLATE><CRLF>        </SETTER.VALUE><CRLF>      </SETTER><CRLF>    </STYLE><CRLF>    <?xml:namespace prefix = xcdg /><xcdg:DataGridCollectionViewSource x:Key="cvs_orders"
                                         Source="{Binding Source={x:Static Application.Current},<CRLF>                                                      Path=Orders}"&gt;<CRLF>      <xcdg:DataGridCollectionViewSource.GroupDescriptions><CRLF>        <xcdg:DataGridGroupDescription PropertyName="ShipCountry"></xcdg:DataGridGroupDescription PropertyName="ShipCountry"><CRLF>      </xcdg:DataGridCollectionViewSource.GroupDescriptions><CRLF>    </xcdg:DataGridCollectionViewSource x:Key="cvs_orders"
    <CRLF>  </GRID.RESOURCES><CRLF>  <xcdg:DataGridControl x:Name="OrdersGrid"
                            ItemsSource="{Binding Source={StaticResource cvs_orders}}"/&gt;<CRLF></GRID>", Language="XAML", InLine="True"</xcdg:DataGridControl x:Name="OrdersGrid"
    </ControlTemplate TargetType="{x:Type xcdg:GroupHeaderControl}"></Style TargetType="{x:Type xcdg:GroupHeaderControl}"></Grid xmlns:xcdg="http:>