(+1) - , - :
:
namespace YourNamespace
{
public class AppRes
{
private static ResourceLoader load = new ResourceLoader();
private static string GetProperty([CallerMemberName] string propertyName = null) { return propertyName; }
public static string PropertyName { get { return load.GetString(GetProperty()); } }
}
}
App.xaml :
<Application.Resources>
<local:AppRes x:Key="Localized"/>
:
string fromResources = AppRes.PropertyName;
XAML:
<TextBlock Text="{Binding PropertyName, Source={StaticResource Localized}}" ...
, , - Resource.resw, :
public static string NewPropertyName { get { return load.GetString(GetProperty()); } }