<
telerik:ImageToolItem
ImageKey
=
"Shape"
telerik:LocalizationManager.ResourceKey
=
"ImageEditor_Shape"
Command
=
"commands:ImageEditorRoutedCommands.ExecuteTool"
>
<
telerik:ImageToolItem.CommandParameter
>
<
local:CustomShapeTool
StrokeSize
=
"5"
>
<
local:CustomShapeTool.Shapes
>
<
myShapes:TelerikLogo
/>
<
shapes:RectangleShape
/>
<
shapes:EllipseShape
/>
<
shapes:LineShape
/>
</
local:CustomShapeTool.Shapes
>
</
local:CustomShapeTool
>
</
telerik:ImageToolItem.CommandParameter
>
</
telerik:ImageToolItem
>
[/quote]
With this code it is possible for me to set the strokesize manually but the combobox with the shapes (rectangle, ellipse,...) is empty now. I can't select any shape.
This is my Code:
<
telerik:ImageToolItem
ImageKey
=
"Shape"
Command
=
"commands:ImageEditorRoutedCommands.ExecuteTool"
telerik:LocalizationManager.ResourceKey
=
"ImageEditor_Shape"
>
<
telerik:ImageToolItem.CommandParameter
>
<
CusShapes:MyShapeTool
x:Name
=
"shapeTool"
>
<
CusShapes:MyShapeTool.Shapes
>
<
shapes:RectangleShape
/>
<
shapes:EllipseShape
/>
<
shapes:LineShape
/>
</
CusShapes:MyShapeTool.Shapes
>
</
CusShapes:MyShapeTool
>
</
telerik:ImageToolItem.CommandParameter
>
</
telerik:ImageToolItem
>