enter image description here

There is a Canvas and dates are located at the X coordinates. So, the right date 01/12/2017 is located in the Canvas window, but the Label itself climbs out. How can I fix this? You can, of course, make a check on the length of the Label and if it goes beyond the window size, we do not record it, but can it be done to draw it, but only the part that is in the window? Those. we would only see 12. , everything else would be outside the window.

    1 answer 1

    For example, define your Canvas ' y attribute ClipToBounds="True" .

    • So just in the end) Thank you very much) - Fresto
    • @Fresto: Please! Glad it helped :) - VladD