简体   繁体   English

使用XAML在WPF中平滑调整窗口大小的动画

[英]A smooth window resize animation in WPF using XAML

我想使用XAML调整窗口大小,但是当我希望它们同时进行动画处理时,它要么调整宽度或高度,否则我将使用故事板并通过Keydown从C#中召唤它们

Thanks for the help. 谢谢您的帮助。 Anyways, I found the solution, by using "fit to content" property on the window, and making the grid resize instead of the window. 无论如何,我找到了解决方案,方法是在窗口上使用“适合内容”属性,并调整网格的大小而不是窗口大小。 That'll make some numbers of width and height differences between the grid and the window, but it'll work 这样会在网格和窗口之间产生一些宽度和高度上的差异,但是会起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM