This is a migrated thread and some comments may be shown as answers.

RadDiagramToolbox xaml example

1 Answer 112 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 02 Apr 2014, 08:18 AM
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

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 04 Apr 2014, 07:17 AM
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.

 
Tags
Diagram
Asked by
ITA
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or