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

    Hi,

    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}}">               
    <extensions:RadDiagramToolbox.HeaderBackground>
             <SolidColorBrush Color="#FF009494" telerik:Windows8Colors.Color="BoundColor" telerik:Windows8Palette.IsFreezable="True"/>
            </extensions:RadDiagramToolbox.HeaderBackground>
            ... ITEMS .... ??????????????????
    </telerik:RadDiagramToolbox>

    Thanks a lot
    Best Regards
    Rene
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 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:RadDiagramToolboxItem>
                <telerik:RadDiagramShape Content="Shape 1"/>
            </telerik:RadDiagramToolboxItem>
        </telerik:RadDiagramToolboxGroup>
    </telerik:RadDiagramToolbox>


    Regards,
    Pavel R. Pavlov
    Telerik
     

    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. UI for WPF is Visual Studio 2017 Ready
Back to Top