<
Style x:Key="Win" TargetType="telerikDockingControls:RadPane">
<Setter Property="AllowsTransparency" Value="False"/>
</Style>
but I get the error message -
property was not found in RadePane.
could you tell me how to disable AllowsTransparency please?
public class SiteOrderHeader{ public int SiteOrderId { get; set; } public List<MachineSpeed> MachineSpeeds { get; set; }}public class MachineSpeed{ public string Type { get; set; } public int Speed { get; set; }}SiteOrderHeader siteOrderHeader = new SiteOrderHeader();siteOrderHeader.SiteOrderId = 1;siteOrderHeader.MachineSpeeds.Add(new MachineSpeed() { Type = "Type1", Speed = 10000 });siteOrderHeader.MachineSpeeds.Add(new MachineSpeed() { Type = "Type2", Speed = 6000 });siteOrderHeader.MachineSpeeds.Add(new MachineSpeed() { Type = "Type3", Speed = 12000 });| SiteOrderId | Type1 | Type2 | Type3 |
| 1 | 10000 | 6000 | 12000 |


Hi everyone,
I am glad to announce the first public build of the upcoming RadDocking Q2 2011, which is intended to address the performance issues in the control under Windows XP and/or high resolutions (WPF). The changes we have made in both the Silverlight and the WPF versions are fairly large and we would like to get as much feedback as possible, so please try the attached assemblies and drop us a line. We are willing to fix all reported bugs by the upcoming official beta release next month and we will not hesitate to give you Telerik points.
What's changed:
- we replaced the base class of ToolWindow, so now the tool windows are not displayed in a large transparent window (the cause of the performance problems), but each of them has a small native window.
- we fixed a frequently reported memory leak.
What's new:
- the tool windows now support the Windows 7 gestures for maximize, minimize, etc.
- ActivePane
- Ability to customize the drag-drop
- Bugfixes
What's coming for the beta
- fixes for a lot of bugs, logged in the PITS, so now is a good time to vote for them.
What does not work now:
- we are aware of several minor bugs and glitches, but please let us know if you find something, as we might have missed it.
The attached assemblies are built against Q1 2011 SP1, so you should be able to test the control in your existing application. We can provide assemblies built against the latest internal builds on demand.
<Window.Resources> <example:ExampleViewModel x:Key="ViewModel" /> <Style x:Key="CustomLegendItemStyle" TargetType="telerik:ChartLegendItem"> <Setter Property="Foreground" Value="Black" /> <Setter Property="Template" > <Setter.Value> <ControlTemplate TargetType="telerik:ChartLegendItem"> <Grid x:Name="PART_MainContainer" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0,0,5,0"> <Path x:Name="PART_LegendItemMarker" Height="20" Width="*" Style="{TemplateBinding ItemStyle}" Stretch="Fill"> <Path.Data> <PathGeometry x:Name="PART_ItemMarkerGeometry" /> </Path.Data> </Path> <CheckBox IsChecked="True" VerticalAlignment="Center" Margin="2,0" Content="{TemplateBinding Label}" Foreground="{TemplateBinding Foreground}" Command="{Binding Path=ChangeSeriesVisibilityCommand, Source={StaticResource ViewModel}}" CommandParameter="{TemplateBinding Label}" /> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> </Window.Resources> <Grid> <Grid.RowDefinitions> <RowDefinition Height="*" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <telerik:RadChart x:Name="RadChart1"> <telerik:RadChart.DefaultView> <telerik:ChartDefaultView ChartLegendPosition="Top"> <telerik:ChartDefaultView.ChartLegend> <telerik:ChartLegend x:Name="PrimaryLegend" Header="Click on country to hide/show:" LegendItemMarkerShape="Square" LegendItemStyle="{StaticResource CustomLegendItemStyle}" Foreground="Black" HeaderFontWeight="Normal" FontFamily="Segoe UI" /> </telerik:ChartDefaultView.ChartLegend> <telerik:ChartDefaultView.ChartArea> <telerik:ChartArea Padding="5,10,20,5" LabelFormatBehavior="None" LegendName="PrimaryLegend" /> </telerik:ChartDefaultView> </telerik:RadChart.DefaultView> </telerik:RadChart> <TextBlock Grid.Row="1" x:Name="sourceText" TextAlignment="Right" Text="Source: Eurostat" FontSize="10" Foreground="{Binding Source={StaticResource ViewModel}, Path=ApplicationThemeAwareForeground}" /> </Grid> </Window>Random rnd = new Random(); public Example() { this.InitializeComponent(); var ds = new DataSeries(); for (var x = 1; x <= 14; ++x) { ds.Definition = new LineSeriesDefinition(); ds.Definition.ItemLabelFormat = "0.#"; ds.Definition.Visibility = SeriesVisibility.Visible; ds.LegendLabel = x.ToString(); var dp = new DataPoint { YValue = this.rnd.Next(10) + 1 }; if (x == 3 || x == 7) { dp.IsEmpty = true; } ds.Add(dp); } this.RadChart1.DefaultView.ChartArea.DataSeries.Add(ds); }<
telerik:RadPanelBar Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Name="radPanelBar2" VerticalAlignment="Bottom" Width="Auto" Orientation="Vertical" DropExpandDelay="00:00:02" Background="#FFE7E9E7" FlowDirection="RightToLeft" VerticalContentAlignment="Top">
<telerik:RadPanelBar Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" Height="Auto" HorizontalAlignment="Left" Name="radPanelBar3" VerticalAlignment="Stretch" Width="Auto" Orientation="Horizontal" HorizontalContentAlignment="Left" FlowDirection="RightToLeft" DropExpandDelay="00:00:02" Background="#FFE7E9E7">
<
telerik:RadPanelBar Grid.Column="2" Grid.Row="1" Grid.RowSpan="2" Height="Auto" HorizontalAlignment="Right" Name="radPanelBar1" VerticalAlignment="Stretch" Width="Auto" Orientation="Horizontal" Background="#FFE7E9E7">
<
telerik:RadPanelBar Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Name="radPanelBar4" VerticalAlignment="Bottom" Width="Auto" Orientation="Vertical" Background="#FFE7E9E7">
//hide unused seriesbarChart.DefaultView.ChartArea.DataSeries[1].Definition.Visibility = SeriesVisibility.Collapsed;barChart.DefaultView.ChartLegend.Items[1].Visibility = Visibility.Collapsed;<telerikControls:RadChart x:Name="barChart" Grid.Column="1" Grid.Row="3" Height="475" Width="720" HorizontalAlignment="Left" Background="Transparent" BorderThickness="0" AxisForeground="White" AxisElementBrush="White" > <telerikControls:RadChart.PaletteBrushes> <SolidColorBrush Color="#009ad4" /> <SolidColorBrush Color="#bfe9f5" /> </telerikControls:RadChart.PaletteBrushes> <telerikControls:RadChart.DefaultView> <telerikCharting:ChartDefaultView ChartLegendPosition="Top"> <telerikCharting:ChartDefaultView.ChartArea> <telerikCharting:ChartArea LegendName="ChartLegend1"></telerikCharting:ChartArea> </telerikCharting:ChartDefaultView.ChartArea> <telerikCharting:ChartDefaultView.ChartLegend> <telerikCharting:ChartLegend BorderThickness="0" Header="" x:Name="ChartLegend1" Background="Transparent"> </telerikCharting:ChartLegend> </telerikCharting:ChartDefaultView.ChartLegend> </telerikCharting:ChartDefaultView> </telerikControls:RadChart.DefaultView> <!--SERIES MAPPING --> <telerikControls:RadChart.SeriesMappings> <telerikCharting:SeriesMapping LegendLabel="2011" > <telerikCharting:SeriesMapping.SeriesDefinition> <telerikCharting:BarSeriesDefinition ItemStyle="{StaticResource BarStyle}"></telerikCharting:BarSeriesDefinition> </telerikCharting:SeriesMapping.SeriesDefinition> <telerikCharting:SeriesMapping.ItemMappings> <telerikCharting:ItemMapping FieldName="Title" DataPointMember="XCategory"></telerikCharting:ItemMapping> <telerikCharting:ItemMapping FieldName="Dec" DataPointMember="YValue"></telerikCharting:ItemMapping> </telerikCharting:SeriesMapping.ItemMappings> </telerikCharting:SeriesMapping> <telerikCharting:SeriesMapping LegendLabel="2010"> <telerikCharting:SeriesMapping.SeriesDefinition> <telerikCharting:BarSeriesDefinition ItemStyle="{StaticResource BarStyle}"></telerikCharting:BarSeriesDefinition> </telerikCharting:SeriesMapping.SeriesDefinition> <telerikCharting:SeriesMapping.ItemMappings> <telerikCharting:ItemMapping FieldName="Title" DataPointMember="XCategory"></telerikCharting:ItemMapping> <telerikCharting:ItemMapping FieldName="Dec" DataPointMember="YValue"></telerikCharting:ItemMapping> </telerikCharting:SeriesMapping.ItemMappings> </telerikCharting:SeriesMapping> </telerikControls:RadChart.SeriesMappings> </telerikControls:RadChart>private void UserControl_Loaded(object sender, RoutedEventArgs e) { //perform extra styling on load barChart.DefaultView.ChartTitle.Visibility = Visibility.Collapsed; barChart.DefaultView.ChartArea.AxisY.StripLinesVisibility = Visibility.Hidden; barChart.DefaultView.ChartArea.AxisY.MajorGridLinesVisibility = Visibility.Visible; barChart.DefaultView.ChartArea.AxisY.AxisStyles.ItemLabelStyle = this.Resources["AxisYLabelStyle"] as Style; //attach click event barChart.DefaultView.ChartArea.ItemClick +=new EventHandler<ChartItemClickEventArgs>(ChartArea_ItemClick); //Set itemsource barChart.ItemsSource = ItemsSource.Items; //hide unused series barChart.DefaultView.ChartArea.DataSeries[1].Definition.Visibility = SeriesVisibility.Collapsed;
//doesn't hide legend item...
barChart.DefaultView.ChartLegend.Items[1].Visibility = Visibility.Collapsed; }xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonView" Title="Ribbon Test" Height="350" Width="525" >
<Window.CommandBindings>
<CommandBinding Command="ApplicationCommands.Close" CanExecute="CloseButton_CanExecute" Executed="CloseButton_Executed" />
<CommandBinding Command="ApplicationCommands.Save" CanExecute="SaveButton_CanExecute" Executed="SaveButton_Executed" />
<CommandBinding Command="ApplicationCommands.SaveAs" CanExecute="SaveAsButton_CanExecute" Executed="SaveAsButton_Executed" />
<CommandBinding Command="ApplicationCommands.Open" CanExecute="OpenButton_CanExecute" Executed="OpenButton_Executed" />
<CommandBinding Command="ApplicationCommands.New" CanExecute="NewButton_CanExecute" Executed="NewButton_Executed" />
</Window.CommandBindings>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<telerik:RadRibbonView Grid.Row="0" ApplicationButtonContent="File" IsBackstageOpen="False" x:Name="ribbon" ApplicationName="App Name" Title="App Title">
<telerik:RadRibbonView.QuickAccessToolBar>
<telerik:QuickAccessToolBar>
<telerik:RadRibbonButton Text="New" Size="Small" SmallImage="Icons/Icon.ico" Command="ApplicationCommands.New" />
<telerik:RadRibbonButton Text="Open" Size="Small" SmallImage="Icons/Open.png" Command="ApplicationCommands.Open" />
<telerik:RadRibbonButton Text="Save" Size="Small" SmallImage="Icons/Save.ico" Command="ApplicationCommands.Save" />
</telerik:QuickAccessToolBar>
</telerik:RadRibbonView.QuickAccessToolBar>
<telerik:RadRibbonView.Backstage>
<telerik:RadRibbonBackstage>
<telerik:RadRibbonBackstageItem Header="New" Icon="Icons/New.png" IsSelectable="False" Command="ApplicationCommands.New" />
<telerik:RadRibbonBackstageItem Header="Open" Icon="Icons/Backstage/Open.png" IsSelectable="False" Command="ApplicationCommands.Open" />
<telerik:RadRibbonBackstageItem CloseOnClick="False" Header="Save" Icon="Icons/Backstage/Save.png" IsSelectable="False" Command="ApplicationCommands.Save" />
<telerik:RadRibbonBackstageItem Header="Save As" Icon="Icons/Backstage/SaveAs.png" IsSelectable="false" Command="ApplicationCommands.SaveAs" />
<telerik:RadRibbonBackstageItem Header="Separator" IsGroupSeparator="True" />
<telerik:RadRibbonBackstageItem Header="Exit" Icon="Icons/Backstage/Exit.png" IsSelectable="False" Command="ApplicationCommands.Close" />
</telerik:RadRibbonBackstage>
</telerik:RadRibbonView.Backstage>
<telerik:RadRibbonTab Header="Home" x:Name="homeTab">
<telerik:RadRibbonGroup Header="Group 1">
<telerik:RadRibbonGroup.Variants>
<telerik:GroupVariant Variant="Large" Priority="1" />
</telerik:RadRibbonGroup.Variants>
</telerik:RadRibbonGroup>
</telerik:RadRibbonTab>
</telerik:RadRibbonView>
</Grid>
</telerik:RadRibbonWindow
Codebehind:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using Telerik.Windows.Controls;namespace WpfRibbonTest{ /// <summary> /// Interaction logic for MainWindow.xaml /// </summary> public partial class MainWindow : RadRibbonWindow { public static RoutedCommand OpenMruFileCommand = new RoutedCommand(); public MainWindow() { InitializeComponent(); } #region New Menu Event Handler private void NewButton_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = true; } private void NewButton_Executed(object sender, ExecutedRoutedEventArgs e) { NewFile(); } private void NewFile() { MessageBox.Show("New File called"); } #endregion #region Open Menu Event Handler private void OpenButton_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = true; } private void OpenButton_Executed(object sender, ExecutedRoutedEventArgs e) { OpenFile(); } private void OpenFile() { MessageBox.Show("Open File called"); } private void OpenFile(string fileName) { MessageBox.Show("Open File called (" + fileName + ")"); } #endregion #region Save Menu Event Handler private void SaveButton_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = true; } private void SaveButton_Executed(object sender, ExecutedRoutedEventArgs e) { SaveFile(false); } private void SaveAsButton_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = true; } private void SaveAsButton_Executed(object sender, ExecutedRoutedEventArgs e) { SaveFile(true); } private void SaveFile(bool saveAs) { MessageBox.Show("Save File called (SaveAs=" + saveAs + ")"); } #endregion #region Close Button Event Handler private void CloseButton_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = true; } private void CloseButton_Executed(object sender, ExecutedRoutedEventArgs e) { MessageBox.Show("Close App called"); } #endregion }}