Check the checkbox checkbox for larger

I need a silverlight flag with a field that contains a checkmark much smaller (10 pixels x 10 pixels) than the default size. is it possible?

+3
source share
1 answer

Use ScaleTransform.

From the code on the MSDN page, you can see that you can use it on any element of the user interface. So in your case you need something like this:

<CheckBox ...>
  <CheckBox.RenderTransform>
    <ScaleTransform ScaleX="0.8" ScaleY="0.8" />
  </CheckBox.RenderTransform>
</CheckBox>

You will need to play with the scale values ​​to get the correct numbers, but if you know the current size, you can do some mathematical calculations to get the scale needed to reduce it to 10x10 pixels.

+5
source

All Articles