How to rotate a WPF Window?

后端 未结 2 1327
陌清茗
陌清茗 2020-12-17 02:09

Is it possible to rotate a WPF Window by 45 degree, using xaml?

2条回答
  •  盖世英雄少女心
    2020-12-17 02:28

    As far as I know you can't rotate an entire window, but you could put everything inside the window into a custom control and apply apply a RenderTransform object to the custom control.

    Example (somewhat simple):

    http://www.codeproject.com/KB/WPF/TransformationsIntro.aspx

    -- Dan

提交回复
热议问题