WPF Rotate an Image and align it

后端 未结 2 833
旧巷少年郎
旧巷少年郎 2020-12-12 02:58

I\'ve an Image component where I want to rotate the source :



        
2条回答
  •  轮回少年
    2020-12-12 03:15

    The problem is that the Transforms were applied after the layout pass. You should use a LayoutTransform to perform the transformation before the layout is calculated:

    
    
        
            
            
            
        
    
    

提交回复
热议问题