日常更新

This commit is contained in:
2025-10-15 18:53:43 +08:00
parent c9f4ce4ef3
commit 2bc454d215
254 changed files with 4286 additions and 196 deletions

View File

@@ -38,6 +38,15 @@ namespace Ramitta.lib
{
if (text!=null)obj.Content = text;
if (color != null) obj.Background = color;
// 强制刷新UI
obj.InvalidateVisual();
obj.InvalidateArrange();
obj.InvalidateMeasure();
obj.UpdateLayout();
// 处理Dispatcher队列中的其他挂起的操作确保UI更新
Dispatcher.CurrentDispatcher.Invoke(DispatcherPriority.Background, new Action(delegate { }));
});
}