or
<telerik:RadDocking PaneStateChange="Dock_PaneStateChanged"/>private void Dock_PaneStateChanged(object sender, Telerik.Windows.RadRoutedEventArgs e){ RadPane pane = e.OriginalSource as RadPane; if(pane == null) return; RadPaneGroup pGroup = pane.ParentOfType<RadPaneGroup>(); pGroup.Background = pane.IsFloating? Brushes.DarkMagenta : Brushes.Transparent;}<Window xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" x:Class="WpfApplication1.MainWindow" x:Name="TheWindow" Title="MainWindow" Width="640" Height="480"> <Window.Resources> <Style x:Key="GridViewHeaderCellStyle1" TargetType="{x:Type telerik:GridViewHeaderCell}"> <!-- Auto-generated template content removed for sake of brevity --> <Setter Property="Background"> <Setter.Value> <!-- Note the colors here, they are the office black theme colors that have been hard coded into the template. Remnants of the office black theme are found throughout the auto-generated template --> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FF5B5B5B" Offset="1"/> <GradientStop Color="#FF868686"/> <GradientStop Color="#FF4F4F4F" Offset="0.42"/> <GradientStop Color="#FF0E0E0E" Offset="0.43"/> </LinearGradientBrush> </Setter.Value> </Setter> <Setter Property="BorderBrush" Value="#FF848484"/> <Setter Property="BorderThickness" Value="0,0,1,1"/> <Setter Property="VerticalContentAlignment" Value="Center"/> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> <Setter Property="Padding" Value="5,0,3,0"/> <Setter Property="DropIndicatorBrush" Value="White"/> <Setter Property="DropIndicatorThickness" Value="2"/> <Setter Property="Foreground" Value="White"/> <Setter Property="SnapsToDevicePixels" Value="True"/> </Style> </Window.Resources> <Grid> <!-- GridViewHeaderCell used for editing template --> <telerik:GridViewHeaderCell telerik:StyleManager.Theme="Windows7" Style="{DynamicResource GridViewHeaderCellStyle1}" /> <telerik:RadGridView AutoGenerateColumns="False"> <telerik:StyleManager.Theme> <telerik:Windows7Theme/> </telerik:StyleManager.Theme> <telerik:RadGridView.Columns> <telerik:GridViewDataColumn Header="ID3" HeaderCellStyle="{DynamicResource GridViewHeaderCellStyle1}" /> </telerik:RadGridView.Columns> </telerik:RadGridView> </Grid></Window>