View Single Post
  #2 (permalink)  
Old May 16th, 2016, 06:21 AM
lifeguru02 lifeguru02 is offline
Registered User
 
Join Date: May 2016
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re. head group panel wpf grid

Quote:
Originally Posted by alexandarx5 View Post
how do you create a panel with column used for content grouping.
I use dapfor and this code underneath work perfectly for the question you asked.
XAML
<!--Header group panel brushes-->
<SolidColorBrush x:Key="GroupPanelForegroundBrush" Color="#ffdae0e7"/>
<LinearGradientBrush x:Key="GroupPanelBackgroundBrush" StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="#00ffffff" Offset="0" />
<GradientStop Color="#20ffffff" Offset="0.2" />
<GradientStop Color="#00ffffff" Offset="0.3" />
<GradientStop Color="#40ffffff" Offset="0.4" />
<GradientStop Color="#00ffffff" Offset="0.5" />
<GradientStop Color="#20ffffff" Offset="0.6" />
<GradientStop Color="#40ffffff" Offset="0.7" />
<GradientStop Color="#00ffffff" Offset="0.8" />
<GradientStop Color="#20ffffff" Offset="0.9" />
<GradientStop Color="#00ffffff" Offset="1" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="GroupPanelBorderBrush" EndPoint="0,1" StartPoint="0,0">
<GradientStop Color="#40ffffff" Offset="0" />
<GradientStop Color="#35000000" Offset="1" />
</LinearGradientBrush>

<!--GridControl-->
<Style TargetType="{x:Type controls:GridControl}">
<Setter Property="AppearanceHeaderGroupPanelBackground" Value="{StaticResource GroupPanelBackgroundBrush}"/>
<Setter Property="AppearanceHeaderGroupPanelForeground" Value="{StaticResource GroupPanelForegroundBrush}"/>
<Setter Property="AppearanceHeaderGroupPanelBorder" Value="{StaticResource GroupPanelBorderBrush}"/>
<Setter Property="AppearanceHeaderGroupPanelBorderThicknes s" Value="1"/>
</Style>
Reply With Quote