c# - Scale Checkbox without scaling content -


I want to double the size of a checkbox. I have used the ScaleTransform but the problem is that it scales the content (text in the right side of the checkbox in my case):

  & lt; Checkbox vertical alignment = "center" content = "test" & gt; & Lt; CheckBox.LayoutTransform & gt; & Lt; ScaleTransform ScaleX = "2" ScaleY = "2" /> & Lt; /CheckBox.LayoutTransform> & Lt; / Check box & gt;   

enter image details here

I Just leave content blank and type the details in a different TextBlock , but then, when I click on the text, the checkbox Absolutely not Toggled Can I completely do it without changing the control template?

Something that can work for you:

(Clearly you For better support, a converter should be used to change the scale transforms and translate transforms on the basis of databasing).

  & lt; Checkbox vertical alignment = "center" & gt; & Lt; CheckBox.Content & gt; & Lt; Text Block Text = "Test" Vertical Element = "Center" & gt; & Lt; TextBlock.RenderTransform & gt; & Lt; TransformGroup & gt; & Lt; Translation TRANSFORM Y = "7" /> & Lt; Scale Transform Scale X = "0.5" Scale Y = "0.5" /> & Lt; / TransformGroup & gt; & Lt; /TextBlock.RenderTransform> & Lt; / TextBlock & gt; & Lt; /CheckBox.Content> & Lt; CheckBox.RenderTransform & gt; & Lt; ScaleTransform ScaleX = "2" ScaleY = "2" /> & Lt; /CheckBox.RenderTransform> & Lt; / Check box & gt;    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -