Hi Tina,
Yes that definately is helping me on my way. But i discovered you can actually do following:
<
telerik:RadDiagramShape
x:Class
=
"ExqiPresenter.Views.ExqiSlidedeck.SlideObjects.SlideTextBoxShape"
xmlns:converter
=
"clr-namespace:ExqiPresenter.Convertors.ExqiSlidedeck"
mc:Ignorable
=
"d"
MouseLeftButtonDown
=
"LBL_MouseLeftButtonDown"
BeginEdit
=
"RadDiagramShape_BeginEdit"
Canvas.ZIndex
=
"{Binding ZIndex}"
Height
=
"{Binding Dimention.Height}"
Width
=
"{Binding Dimention.Width}"
>
<
telerik:RadDiagramShape.Resources
>
<
converter:BrushToColorConverter
x:Key
=
"brushToColor"
/>
<
converter:TextDecorationsToStringConverter
x:Key
=
"textDecorationToString"
/>
</
telerik:RadDiagramShape.Resources
>
<
Grid
x:Name
=
"LayoutRoot"
>
<
TextBlock
Name
=
"LBL"
Text
=
"{Binding Text}"
FontFamily
=
"{Binding FontFamily}"
FontSize
=
"{Binding FontSize}"
Foreground
=
"{Binding TextColor, Converter={StaticResource brushToColor}}"
FontStyle
=
"{Binding FontStyle}"
FontWeight
=
"{Binding FontWeight}"
TextDecorations
=
"{Binding TextDecoration, Converter={StaticResource textDecorationToString}}"
TextAlignment
=
"{Binding Alignment}"
TextWrapping
=
"Wrap"
Padding
=
"10 10 10 10"
></
TextBlock
>
<
TextBox
Name
=
"TXT"
Visibility
=
"Collapsed"
FontFamily
=
"{Binding FontFamily}"
FontSize
=
"{Binding FontSize}"
Foreground
=
"{Binding TextColor, Converter={StaticResource brushToColor}}"
FontStyle
=
"{Binding FontStyle}"
FontWeight
=
"{Binding FontWeight}"
TextAlignment
=
"{Binding Alignment}"
Background
=
"Transparent"
BorderThickness
=
"0"
Width
=
"auto"
Padding
=
"10 10 10 10"
TextWrapping
=
"Wrap"
AcceptsReturn
=
"True"
KeyDown
=
"TxtKeyDown"
TextChanged
=
"TxtTextChanged"
LostFocus
=
"TxtLostFocus"
></
TextBox
>
</
Grid
>
</
telerik:RadDiagramShape
>
What i'm doing here is i'm making a new control based on the RadDiagramShape, it works, but Is this a valid way of working?
Best Regards,
Peter