Hi,
I have created a custom shape based upon the documentation:
http://www.telerik.com/help/silverlight/raddiagram-howto-create-custom-shape.html
I have created a very simplistic shape, it only contains a TextBlock control. It works fine, except the textblock will overrun the size of the shape if the textblock contains to much data. How can i bind the height of the textblock to the height of the shape?
Best Regards,
Peter
I have created a custom shape based upon the documentation:
http://www.telerik.com/help/silverlight/raddiagram-howto-create-custom-shape.html
I have created a very simplistic shape, it only contains a TextBlock control. It works fine, except the textblock will overrun the size of the shape if the textblock contains to much data. How can i bind the height of the textblock to the height of the shape?
<
ResourceDictionary
xmlns:local
=
"clr-namespace:ExqiPresenter.Views.ExqiSlidedeck.SlideObjects"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:converter
=
"clr-namespace:ExqiPresenter.Convertors.ExqiSlidedeck"
>
<
Style
TargetType
=
"local:SlideMenuShape"
>
<
Setter
Property
=
"BorderThickness"
Value
=
"4"
/>
<
Setter
Property
=
"BorderBrush"
Value
=
"#6C666666"
/>
<
Setter
Property
=
"Width"
Value
=
"355"
/>
<
Setter
Property
=
"Height"
Value
=
"160"
/>
<
Setter
Property
=
"HorizontalAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"Margin"
Value
=
"0"
/>
<
Setter
Property
=
"Background"
>
<
Setter.Value
>
<
LinearGradientBrush
StartPoint
=
"0.5,0"
EndPoint
=
"0.5,1"
>
<
GradientStop
Color
=
"White"
/>
<
GradientStop
Offset
=
"1"
Color
=
"#FFEDF4FF"
/>
</
LinearGradientBrush
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"local:SlideMenuShape"
>
<
TextBlock
Name
=
"LBL"
Text
=
"{Binding Text}"
>
</
TextBlock
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
ResourceDictionary
>
Best Regards,
Peter