I'm trying to bind xaml to a RichTextBox. I have the Edited_WPF sdk sample. I cannot get the RichTextBox to display my xaml. Here's what I did.
Run the sdk sample.
Type, "This is a test" in the RichTextBox.
Click "Show XAML"
Copy the xaml.
In ExampleDataContext.cs, set private string xamlData = <t:RadDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:t="clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents" xmlns:s="clr-namespace:Telerik.Windows.Documents.Model.Styles;assembly=Telerik.Windows.Documents" xmlns:r="clr-namespace:Telerik.Windows.Documents.Model.Revisions;assembly=Telerik.Windows.Documents" xmlns:n="clr-namespace:Telerik.Windows.Documents.Model.Notes;assembly=Telerik.Windows.Documents" xmlns:th="clr-namespace:Telerik.Windows.Documents.Model.Themes;assembly=Telerik.Windows.Documents" version="1.4" LayoutMode="Flow" LineSpacing="1.15" LineSpacingType="Auto" ParagraphDefaultSpacingAfter="12" ParagraphDefaultSpacingBefore="0" StyleName="defaultDocumentStyle">
<t:RadDocument.Captions>
<t:CaptionDefinition IsDefault="True" IsLinkedToHeading="False" Label="Figure" LinkedHeadingLevel="0" NumberingFormat="Arabic" SeparatorType="Hyphen" />
<t:CaptionDefinition IsDefault="True" IsLinkedToHeading="False" Label="Table" LinkedHeadingLevel="0" NumberingFormat="Arabic" SeparatorType="Hyphen" />
</t:RadDocument.Captions>
<t:RadDocument.ProtectionSettings>
<t:DocumentProtectionSettings EnableDocumentProtection="False" Enforce="False" HashingAlgorithm="None" HashingSpinCount="0" ProtectionMode="ReadOnly" />
</t:RadDocument.ProtectionSettings>
<t:RadDocument.Styles>
<s:StyleDefinition DisplayName="defaultDocumentStyle" IsCustom="False" IsDefault="False" IsPrimary="True" Name="defaultDocumentStyle" Type="Default">
<s:StyleDefinition.ParagraphStyle>
<s:ParagraphProperties LineSpacing="1.15" SpacingAfter="12" />
</s:StyleDefinition.ParagraphStyle>
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontFamily="Verdana" FontSize="16" FontStyle="Normal" FontWeight="Normal" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="Normal" IsCustom="False" IsDefault="True" IsPrimary="True" Name="Normal" Type="Paragraph" UIPriority="0" />
<s:StyleDefinition DisplayName="Table Normal" IsCustom="False" IsDefault="True" IsPrimary="False" Name="TableNormal" Type="Table" UIPriority="59">
<s:StyleDefinition.TableStyle>
<s:TableProperties CellPadding="5,0,5,0">
<s:TableProperties.TableLook>
<t:TableLook />
</s:TableProperties.TableLook>
</s:TableProperties>
</s:StyleDefinition.TableStyle>
</s:StyleDefinition>
</t:RadDocument.Styles>
<t:Section>
<t:Paragraph>
<t:Span Text="This is a test." />
</t:Paragraph>
</t:Section>
</t:RadDocument>
with proper quoting.
Run the sdk sample, and I get an empty RichTextBox.
What am I doing wrong? Thanks.
Hi,
I have an application with Diagram using GraphSource.
Actually i add Container with default styledefine by StyleSelector and i would like to allow my user to choose a different style.
How can i do this ? If i use SelectedItem, i have a model not a shape or container so i can't define style.
Thanks for your help.
Nicolas
ItemsSource="{Binding Registrations}"IsBusy="{Binding LoadingRegistrations}"StyleManager.ApplicationTheme = new Office2016Theme();I am trying to create a WPF page that can scroll like a carousel a whole panel of controls at a time.
Similar to hero images on websites, we would like a visual indicator of the number of panels and arrows for the user to press to move to the next panel (the carousel shouldn't automatically rotate).
I actually don't know which control (or combination of controls) to use to achieve the effect.
I have attached an image of the wireframe for reference.
Just a nudge in the right direction would really help!
Thanks

In a RadGridView, I am trying to change the border around the cell which has focus. Currently it appears as a faint grayish color, my boss has asked that I make it a darker, thicker border. Not having any luck so far. Why won't the Style definition below work?
<telerik:RadGridView.Resources>
<Style TargetType="telerik:GridViewCell">
<Style.Triggers>
<Trigger Property="IsCurrent" Value="True">
<Setter Property="BorderBrush" Value="#000000" />
<Setter Property="BorderThickness" Value="2" />
</Trigger>
</Style.Triggers>
</Style>
</telerik:RadGridView.Resources>
Hi, once radGridView is place in the content for RadExpander, Microsoft Visual Studio stopped working. Is there any problem with the code (attached as image) ?
Please advice, Thanks.

Hello,
I would like to change the style of GroupHeaderRow and GroupFooterRow for each group in ElementExportingToDocument event.
Could you help me to to this please ?
Thanks a lot
Regards.
ie :
private void ElementExportingToDocument(object sender, GridViewElementExportingToDocumentEventArgs e) { if (e.Element == ExportElement.GroupHeaderRow ) {//-----------------------------------------------------// How to know here in witch group I am ??//-----------------------------------------------------Color MyColorGroup = ColorSwitchGroup(thisgroup); (e.VisualParameters as GridViewDocumentVisualExportParameters).Style = new CellSelectionStyle() { FontSize = UnitHelper.PointToDip(11), IsBold = true, Fill = new PatternFill(PatternType.Solid, MyColorGroup ,MyColorGroup ), CellBorders = CellBorders.CreateOutline(new CellBorder(CellBorderStyle.Thin, new ThemableColor(Colors.Black))) }; } else if (e.Element == ExportElement.GroupFooterRow) {//-----------------------------------------------------// How to know here in witch group I am ??//-----------------------------------------------------Color MyColorGroup = ColorSwitchGroup(thisgroup); (e.VisualParameters as GridViewDocumentVisualExportParameters).Style = new CellSelectionStyle() { FontSize = UnitHelper.PointToDip(11), IsBold = true, Fill = new PatternFill(PatternType.Solid, MyColorGroup , MyColorGroup ), CellBorders = CellBorders.CreateOutline(new CellBorder(CellBorderStyle.Thin, new ThemableColor(Colors.Black))) }; } }RadGridView is a really good Grid but the edit experience is terrible...
I try to explain my problems with a check box column.
1) I click it, nothing happens but perhaps now the cell is selected, the style is a little bit changed
2) I click a second time, nothing. But perhaps now the style of checkbox is changed, now it is enabled
3) I click a third time, good now the check is box checked but the Item source value is not change, we are waiting for a magical "CellEditedEndEvent", why???
4) I press the enter key, now the value is really changed.
Now suppose that a user must check 100/200 items/day, it is the work of this user, why we are asking to user "please click 500/1000 time per days instead please..."
marc.