or
public override Style SelectStyle(object item, DependencyObject container, ViewDefinitionBase activeViewDefinition) { FrameworkElement elem = container as FrameworkElement; if (elem == null) return base.SelectStyle(item, container, activeViewDefinition); CSchedulerSlot slot = (CSchedulerSlot)item;HtmlDataProvider ht = new HtmlDataProvider(); ht.RichTextBox = RadRTB; ht.Html = "<!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd><html xmlns=http://www.w3.org/1999/xhtml><head><meta http-equiv=Content-Type content=text/html; charset=utf-8 /><title>Untitled</title><style type=text/css> .p_D6859706 { margin: 0px 0px 12px 200px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; ;font-size: 32px} .s_E6FD2046 {padding-right: 100px; font-family: 'Verdana';font-style: Normal;font-weight: normal;color: #000000; } </style></head><body><p class=p_D6859706><span class=s_E6FD2046>TEST</span></p></body></html>";<telerik:RadChart x:Name="chart7" ItemsSource="{Binding SampleData2}"> <telerik:RadChart.SeriesMappings> <telerik:SeriesMapping LegendLabel="SUCCESS" CollectionIndex="0"> <telerik:SeriesMapping.SeriesDefinition> <telerik:StackedBarSeriesDefinition SeriesItemLabelStyle="{StaticResource CustomSerieItemchart7}" SeriesStyle="{StaticResource MinimizedStackedBarSeriesDefinitionStyle}" /> </telerik:SeriesMapping.SeriesDefinition> ....<Style x:Uid="Style_26" x:Key="MinimizedStackedBarSeriesDefinitionStyle" TargetType="{x:Type telerik:HorizontalStackedBarSeriesDefinition}"> <Setter x:Uid="Setter_216" Property="ShowItemLabels" Value="false" /> <Setter x:Uid="Setter_217" Property="LabelSettings"> <Setter.Value> <telerik:BarLabelSettings x:Uid="telerik:BarLabelSettings_1" LabelDisplayMode="Outside" ShowConnectors="False" /> </Setter.Value> </Setter> </Style><telerik:ChartArea.AxisX> <telerik:AxisX x:Uid="telerik:AxisX_1"> <telerik:AxisX.AxisStyles> <telerik:AxisStyles ItemLabelStyle="{StaticResource StrategyMinItemLabelStyle}" /> </telerik:AxisX.AxisStyles> </telerik:AxisX> </telerik:ChartArea.AxisX>ategyMinItemLabelStyle style ?<telerik:RadTabControl x:Name="tabs" telerik:Theming.Theme="Windows7" BackgroundVisibility="Collapsed" TabStripPlacement="Left" TabOrientation="Vertical" DisplayMemberPath="Name" IsContentPreserved="True" ItemsSource="{Binding ReviewViewModels, UpdateSourceTrigger=PropertyChanged}" ContentTemplateSelector="{StaticResource ReviewTemplateSelector}" Align="Right" ItemContainerStyle="{StaticResource ReviewCategoryTabStyle}" SelectedIndex="{Binding SelectedIndex}" />Dispatcher.CurrentDispatcher.Invoke(DispatcherPriority.Send, new Action(() => { this.ReviewViewModels = new ObservableRangeCollection<object>(); //add the categories - this is the only place the items are added foreach (var cat in this.ReviewCategories) this.ReviewViewModels.Add(new ReviewCategoryViewModel(cat)); //add a new notes viewmodel this.ReviewViewModels.Add(new ReviewNotesViewModel()); //collection size shows three entries (two ReviewCategoryViewModel and one ReviewNotesViewModel), tabs occasionally show four at this point this.SelectedIndex = 0; this.IsBusy = false; }));<telerik:ChartLegend x:Name="legend"><telerik:ChartArea LegendName="legend"><telerik:ChartArea Legend="{Binding ElementName=legend}">
Hi,
I want to create special rows that have only one column (i.e. column span for a specific row).
So I created ControlTemplate with that single column, created a Style that change the template property to the new template and created RowStyleSelector that uses that template when needed. That worked but created a row that doesn't have the IndicatorPresenter at the start of the row.
You can see the picture..
Can I merge cells at the grid and stay with the default template?
Or how can I make sure that the IndicatorPresenter will appear with the same styles.
I would like to generate the charts without actually showing it (in a WPF application), and then save them to image.
However, when I run, I hit the InvalidOperationException