WPF Image control clipping

后端 未结 2 1993
深忆病人
深忆病人 2020-12-21 06:25

I have an Image control inside a custom ContentControl that I use to apply some transforms (scaling and translating through the RenderTransform). The problem is that with im

相关标签:
2条回答
  • 2020-12-21 06:45

    You need to Have a scroll viewer inside your custom control. Within the scroll viewer include the image control.

    HTH

    0 讨论(0)
  • 2020-12-21 06:47

    I think I found a solution. Wrapping my image inside a canvas solved the issue, probably due to the way canvas size is computed.

    0 讨论(0)
提交回复
热议问题