WPF allows to use subclasses of Transform
to scale(ScaleTransform
), rotate(RotateTransform
), skew (SkewTransform
) and so on any FrameworkElement
.
But I cannot see how to crop some FrameworkElement
using these. Is there any way how to crop lets say a Label
of width 30px so it will behave as if its width was 20px?
To be more exact: I want to do this before laying out so that the Label
would be laid out as if its width was 20. But I want it to be rendered fully so the last 10 pixels will be rendered too (possibly overlapping other elements). How can I do this ?
Why do I need this ? I want to make H.B.'s answer to my question Create guitar chords editor in WPF to work with kerning.