RadDiagramToolbox xaml example

2 posts, 0 answers
  1. ITA
    ITA avatar
    383 posts
    Member since:
    Aug 2009

    Posted 02 Apr 2014 Link to this post


    i'm looking for a RadDiagramToolbox xaml example, Shapes, Container,.. should be filled in xaml not codebehind...

    <telerik:RadDiagramToolbox x:Name="toolbox" Grid.Column="0" Title="GALLERY" Width="220" HorizontalAlignment="Right" Grid.RowSpan="2"
                                           Header="{Binding SelectedItem.Header, RelativeSource={RelativeSource Self}}"
                                           Visibility="{Binding IsChecked, ElementName=toolboxButton, Converter={StaticResource BooleanToVisibilityConverter}}">               
             <SolidColorBrush Color="#FF009494" telerik:Windows8Colors.Color="BoundColor" telerik:Windows8Palette.IsFreezable="True"/>
            ... ITEMS .... ??????????????????

    Thanks a lot
    Best Regards
  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1165 posts

    Posted 04 Apr 2014 Link to this post

    Hello Rene,

    The RadDiagramToolbox is a hierarchical control which accepts RadDiagramToolboxGroups as first level of the hierarchy and RadDiagramToolboxItem as second level. As third level of the hierarchy you should set the RadDiagramShapes (or other RadDiagram items) that you need to be displayed in the RadDiagramToolbox.

    You can use similar snippet:

    <telerik:RadDiagramToolbox >
        <telerik:RadDiagramToolboxGroup Header="Group 1">
                <telerik:RadDiagramShape Content="Shape 1"/>

    Pavel R. Pavlov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top