Telerik Forums
UI for WPF Forum
1 answer
320 views

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.

gordon
Top achievements
Rank 1
 answered on 03 Dec 2017
3 answers
133 views

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

nicolasf
Top achievements
Rank 2
 answered on 03 Dec 2017
1 answer
196 views
I have stumbled upon an issue that has me baffled. I am using v2017.2.503.45 of the Telerik WPF UI and loading up a RadGridView with about 150 records and 16 columns of data - 3 of the columns are GridViewComboBoxColumns and the rest are GridViewDataColumns. On the RadGridView I have:

ItemsSource="{Binding Registrations}"
IsBusy="{Binding LoadingRegistrations}"

LoadingRegistrations is set to true in an async method that uses await Task.Run(...) to retrieve the records and assign them to the Registrations property which is an ObservableCollection<Registration>. Within my App.xaml.cs I have:

StyleManager.ApplicationTheme = new Office2016Theme();

Using the Office 2016 theme no busy indicator is displayed. If I remove that line from App.xaml.cs or change it to use the Windows 7 theme, for example, the busy indicator is displayed, but it does not animate. I'm OK with the no animation, but why does the indicator not even display when using one of the more modern themes (I have tried several and none of them display the indicator).
Sia
Telerik team
 answered on 01 Dec 2017
5 answers
355 views
I have a stacked chart combined with 2 line series.  When i create the legend, it shows all series as rectangles.  How do I make the line series show a colored line with a circle on the legend?
Angelo
Top achievements
Rank 1
 answered on 01 Dec 2017
1 answer
93 views

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

 

Martin Ivanov
Telerik team
 answered on 01 Dec 2017
1 answer
620 views

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>

Martin
Telerik team
 answered on 30 Nov 2017
3 answers
241 views
If I try to load a PDF that has several layers with the RadPdfViewer then all layers are shown but how do I allow the user to decide what layers should be shown?

I cannot find any way in the viewer where I can set what layers should be shown.

In any standard pdf viewer you are able to manage what layers you want to see e.g. to show layer 1 and 3 but not 2.
Anna
Telerik team
 answered on 30 Nov 2017
1 answer
223 views

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.

Dinko | Tech Support Engineer
Telerik team
 answered on 30 Nov 2017
2 answers
207 views

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)))
                };
            }
   }
Software
Top achievements
Rank 1
 answered on 30 Nov 2017
4 answers
113 views

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.

Marcello
Top achievements
Rank 1
Iron
 answered on 30 Nov 2017
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?