WPF Checkbox Control change size

929Free 281 Reputation points
2020-09-17T06:59:36.503+00:00

Hello, I want to change checkbox size. who can help me? thanks

XAML:
<CheckBox x:Name="CheckAllBtn" Content="ALL" Canvas.Left="13" Canvas.Top="182" FontSize="36" Width="109"/>

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,709 questions
0 comments No comments
{count} votes

Accepted answer
  1. Peter Fleischer (former MVP) 19,311 Reputation points
    2020-09-17T07:08:17.613+00:00

    Hi,
    you can use ScaleTransform:

      <CheckBox x:Name="CheckAllBtn" Content="ALL" Canvas.Left="13" Canvas.Top="182" Width="109">
        <CheckBox.LayoutTransform>
          <ScaleTransform ScaleX="2" ScaleY="2"/>
        </CheckBox.LayoutTransform>
      </CheckBox>
    

0 additional answers

Sort by: Most helpful