using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UICommon.Helper; public class Resource { public static T? Get(string key) { try { return (T)Application.Current.Resources[key]; } catch { return default; } } }