【问题标题】:How to force the refresh of the thumbnail when the window is minimized ? (C# WPF)窗口最小化时如何强制刷新缩略图? (C#WPF)
【发布时间】:2020-09-19 14:09:32
【问题描述】:

在我的应用程序代码中,我创建了一个函数来最小化窗口然后改变它的外观。 但只要应用程序被最小化,任务栏缩略图就会显示调用函数之前的窗口。

窗口最小化时如何强制刷新缩略图?

这里是简化的代码:

MyWindow.WindowState = WindowState.Minimized;
MyWindow.Background = Brushes.Blue;
MyWindow.RenderTransform = new ScaleTransform(1, 0.5);

【问题讨论】:

标签: c# wpf thumbnails minimize


【解决方案1】:

这是操作系统的功能,不是您可以控制的。有一次,Windows 确实对任务栏缩略图进行了实时更新,但出于性能原因将其删除。

【讨论】:

    猜你喜欢
    • 2011-08-20
    • 1970-01-01
    • 2015-01-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-30
    • 2010-11-03
    • 1970-01-01
    相关资源
    最近更新 更多