The content size becomes too small in the RadButton when I use Office2013 theme. (Telerik WPF library version 2014.2.729.45)
The content of the RadButton is an image by DrawingBrush (Please refer to following code snippet.),
the image is shown nicely with any themes except for Office2013.
<telerik:RadButton.Content>
<Rectangle>
<Rectangle.Fill>
<DrawingBrush Stretch="Uniform">
<DrawingBrush.Drawing>
<GeometryDrawing Brush="Transparent" Geometry="M 25,121L 249,121L ...">
<GeometryDrawing.Pen>
<Pen Thickness="50" LineJoin="Round" Brush="Black"/>
</GeometryDrawing.Pen>
</GeometryDrawing>
</DrawingBrush.Drawing>
</DrawingBrush>
</Rectangle.Fill>
</Rectangle>
</telerik:RadButton.Content>
When I checked out with the Snoop tool, I learned the ContentPresenter Margin of the RadButton is a little big so the image was pushed in then it became small.
I explicitly set the height and width of the Rectagle to fix the image size though, the image was chopped out because the area was not large enough to display the whole image.
So is there a way to keep the image size consistent when Office2013 theme is selected?
Thanks...
The content of the RadButton is an image by DrawingBrush (Please refer to following code snippet.),
the image is shown nicely with any themes except for Office2013.
<telerik:RadButton.Content>
<Rectangle>
<Rectangle.Fill>
<DrawingBrush Stretch="Uniform">
<DrawingBrush.Drawing>
<GeometryDrawing Brush="Transparent" Geometry="M 25,121L 249,121L ...">
<GeometryDrawing.Pen>
<Pen Thickness="50" LineJoin="Round" Brush="Black"/>
</GeometryDrawing.Pen>
</GeometryDrawing>
</DrawingBrush.Drawing>
</DrawingBrush>
</Rectangle.Fill>
</Rectangle>
</telerik:RadButton.Content>
When I checked out with the Snoop tool, I learned the ContentPresenter Margin of the RadButton is a little big so the image was pushed in then it became small.
I explicitly set the height and width of the Rectagle to fix the image size though, the image was chopped out because the area was not large enough to display the whole image.
So is there a way to keep the image size consistent when Office2013 theme is selected?
Thanks...