or
<UserControl x:Class="MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> <Grid> <Grid x:Name="LayoutRoot" Background="White"> <telerik:RadRibbonView> <telerik:RadRibbonView.QuickAccessToolBar> <telerik:QuickAccessToolBar> <telerik:RadRibbonButton Text="Save" Foreground="White"/> </telerik:QuickAccessToolBar> </telerik:RadRibbonView.QuickAccessToolBar> </telerik:RadRibbonView> </Grid> </Grid></UserControl>
RadRibbonWindow.IsWindowsThemeEnabled = false;
and setting a theme to make the ribbonwindow theme aware. I want exactly the documentation example. But I didn't find any such property in Q2 release of 2011 edition. Can you please correct me if was wrong there?
<DataTemplate x:Key="Group_GridCellTemplate"> <Grid> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <style:CRowJoiner Template="{StaticResource MM_RJI}"> <style:CRowJoiner.DataContext> <MultiBinding Converter="{StaticResource RJ}"> <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}" Path="Column" /> <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}" Path="ParentRow" /> <Binding RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}" Path="Value" /> </MultiBinding> </style:CRowJoiner.DataContext> </style:CRowJoiner> <ContentControl Grid.Column="1" Content="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewCell}}, Path=Value}" ContentTemplateSelector="{StaticResource GCTS}" /> </Grid> </Grid> </DataTemplate><Window x:Class="DarDataFormTest.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:local="clr-namespace:DarDataFormTest" Title="MainWindow" Height="350" Width="525"> <Window.Resources> <RoutedCommand x:Key="CommitCommand"/> <RoutedCommand x:Key="CancelCommand"/> <local:Converter x:Key="conv"/> </Window.Resources> <Grid> <telerik:RadDocking x:Name="radDocking1" BorderThickness="0" Padding="0"> <!--DocumentHost--> <telerik:RadDocking.DocumentHost> <telerik:RadSplitContainer> <telerik:RadPaneGroup> <telerik:RadDocumentPane Title="Description"> <telerik:RadDocumentPane.HeaderTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <TextBlock Text="aaaa" /> <Button Margin="2">Butt</Button> </StackPanel> </DataTemplate> </telerik:RadDocumentPane.HeaderTemplate> <telerik:RadDocumentPane.Content> <TextBlock TextWrapping="Wrap" Text="test text" /> </telerik:RadDocumentPane.Content> </telerik:RadDocumentPane> </telerik:RadPaneGroup> </telerik:RadSplitContainer> </telerik:RadDocking.DocumentHost> </telerik:RadDocking> </Grid></Window><telerik:OrientedTimeRulerItemStyleSelector x:Key="TimeRulerItemStyleSelector" MonthViewGroupStyle="{StaticResource timeRulerMonthViewGroupItemStyle}"> <telerik:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle> <Style TargetType="local:TimeRulerMonthViewItem"> <Setter Property="Background" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateColorConverter}}" /> <Setter Property="Visibility" Value="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateCollapsedConverter}}" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="local:TimeRulerMonthViewItem"> <Border Background="{TemplateBinding Background}" BorderBrush="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=currentDateCalendarDateColorConverter}}" BorderThickness="2" > <Grid Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=calendarDateColorConverter}}"> <telerik:RadButton Padding="0" VerticalAlignment="Top" Height="22" Command="local:RadScheduleViewCommands.SetDayViewMode" CommandParameter="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date}" Background="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content.DateTime.Date, Converter={StaticResource ResourceKey=plainCalendarDateColorConverter}}" Style="{StaticResource ResourceKey=GoToDayButtonStyle}"> <ContentPresenter Margin="{TemplateBinding Padding}" /> </telerik:RadButton> <telerik:RadToggleButton Visibility="{Binding ExpandButtonVisibility}" IsChecked="{Binding IsExpanded, Mode=TwoWay}" HorizontalAlignment="Right" VerticalAlignment="Bottom" Content="More..." FontSize="9" /> </Grid> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style> </telerik:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle> </telerik:OrientedTimeRulerItemStyleSelector>