2024-03-25 08:38:06 +08:00
|
|
|
using System.Windows;
|
|
|
|
|
2023-09-22 16:22:42 +08:00
|
|
|
namespace MECF.Framework.UI.Client.Core;
|
|
|
|
|
2023-09-22 17:47:23 +08:00
|
|
|
public enum CommonAggregateEvents
|
2023-09-22 16:22:42 +08:00
|
|
|
{
|
|
|
|
EnterReadOnlyMode
|
2024-03-25 08:38:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public sealed class Helper
|
|
|
|
{
|
|
|
|
public static T FindSkinResource<T>(string name, T fallbackBrush)
|
|
|
|
{
|
|
|
|
var brush = Application.Current.TryFindResource(name);
|
|
|
|
if (brush is T b)
|
|
|
|
return b;
|
|
|
|
return fallbackBrush;
|
|
|
|
}
|
2023-09-22 16:22:42 +08:00
|
|
|
}
|