New to Telerik UI for WPF? Download free 30-day trial

Minimize and Minus Glyphs are Stretched When Shown in RadPathButton

Environment

Product Version 2019.2.618
Product RadButton for WPF

Description

The Minimize and Minus font glyphs are stretched when hosted in RadPathButton.

Solution

This happens because RadPathButton stretches its Path element by default. To change this behavior, you can set the Stretch property of the Path to None via the PathStyle property of RadPathButton.

<telerik:RadPathButton.PathStyle> 
    <Style TargetType="{x:Type Path}"> 
        <Setter Property="Fill" Value="Black"/> 
        <Setter Property="Stretch" Value="None"/> 
        <Setter Property="VerticalAlignment" Value="Center"/> 
        <Setter Property="HorizontalAlignment" Value="Center"/> 
        <Setter Property="SnapsToDevicePixels" Value="True"/> 
    </Style> 
</telerik:RadPathButton.PathStyle> 
In this article