Class LocalizeArgs
- Namespace
- RentADeveloper.ResXLocalization.WPF
- Assembly
- ResXLocalization.WPF.dll
Hosts the Arg0…Arg8 attached properties that supply dynamic composite-format
arguments to LocalizeExtension. Bind them on the element that carries the
localized property, for example
<TextBlock l:LocalizeArgs.Arg0="{Binding PeopleCount}" Text="{l:Localize {x:Static res:StringsKeys.PeopleInvited}}" />
with a resource value such as {0} people invited; the rendered text re-formats live
whenever a bound argument or the culture of the ambient Current changes.
public static class LocalizeArgs
- Inheritance
-
LocalizeArgs
- Inherited Members
Remarks
While no argument is set on the element, the resource resolves exactly as without this class -
no composite formatting runs, so resource values containing literal braces keep working. As soon
as at least one argument is set, the resolved value is treated as a composite format string:
the arguments Arg0 up to the highest set slot are passed to the formatting
ILocalizer.Get overloads, with unset slots below the highest formatting as
null. The arguments are per element - two localized properties on the same
element share the one argument set.
Fields
Arg0Property
Identifies the LocalizeArgs.Arg0 attached property: format argument {0}.
public static readonly DependencyProperty Arg0Property
Field Value
Arg1Property
Identifies the LocalizeArgs.Arg1 attached property: format argument {1}.
public static readonly DependencyProperty Arg1Property
Field Value
Arg2Property
Identifies the LocalizeArgs.Arg2 attached property: format argument {2}.
public static readonly DependencyProperty Arg2Property
Field Value
Arg3Property
Identifies the LocalizeArgs.Arg3 attached property: format argument {3}.
public static readonly DependencyProperty Arg3Property
Field Value
Arg4Property
Identifies the LocalizeArgs.Arg4 attached property: format argument {4}.
public static readonly DependencyProperty Arg4Property
Field Value
Arg5Property
Identifies the LocalizeArgs.Arg5 attached property: format argument {5}.
public static readonly DependencyProperty Arg5Property
Field Value
Arg6Property
Identifies the LocalizeArgs.Arg6 attached property: format argument {6}.
public static readonly DependencyProperty Arg6Property
Field Value
Arg7Property
Identifies the LocalizeArgs.Arg7 attached property: format argument {7}.
public static readonly DependencyProperty Arg7Property
Field Value
Arg8Property
Identifies the LocalizeArgs.Arg8 attached property: format argument {8}.
public static readonly DependencyProperty Arg8Property
Field Value
Methods
GetArg0(DependencyObject)
Gets the value of the Arg0Property attached property.
public static object? GetArg0(DependencyObject element)
Parameters
elementDependencyObjectThe element holding the argument.
Returns
GetArg1(DependencyObject)
Gets the value of the Arg1Property attached property.
public static object? GetArg1(DependencyObject element)
Parameters
elementDependencyObjectThe element holding the argument.
Returns
GetArg2(DependencyObject)
Gets the value of the Arg2Property attached property.
public static object? GetArg2(DependencyObject element)
Parameters
elementDependencyObjectThe element holding the argument.
Returns
GetArg3(DependencyObject)
Gets the value of the Arg3Property attached property.
public static object? GetArg3(DependencyObject element)
Parameters
elementDependencyObjectThe element holding the argument.
Returns
GetArg4(DependencyObject)
Gets the value of the Arg4Property attached property.
public static object? GetArg4(DependencyObject element)
Parameters
elementDependencyObjectThe element holding the argument.
Returns
GetArg5(DependencyObject)
Gets the value of the Arg5Property attached property.
public static object? GetArg5(DependencyObject element)
Parameters
elementDependencyObjectThe element holding the argument.
Returns
GetArg6(DependencyObject)
Gets the value of the Arg6Property attached property.
public static object? GetArg6(DependencyObject element)
Parameters
elementDependencyObjectThe element holding the argument.
Returns
GetArg7(DependencyObject)
Gets the value of the Arg7Property attached property.
public static object? GetArg7(DependencyObject element)
Parameters
elementDependencyObjectThe element holding the argument.
Returns
GetArg8(DependencyObject)
Gets the value of the Arg8Property attached property.
public static object? GetArg8(DependencyObject element)
Parameters
elementDependencyObjectThe element holding the argument.
Returns
SetArg0(DependencyObject, object?)
Sets the value of the Arg0Property attached property.
public static void SetArg0(DependencyObject element, object? value)
Parameters
elementDependencyObjectThe element to hold the argument.
valueobjectThe argument value; null is a valid, set value.
SetArg1(DependencyObject, object?)
Sets the value of the Arg1Property attached property.
public static void SetArg1(DependencyObject element, object? value)
Parameters
elementDependencyObjectThe element to hold the argument.
valueobjectThe argument value; null is a valid, set value.
SetArg2(DependencyObject, object?)
Sets the value of the Arg2Property attached property.
public static void SetArg2(DependencyObject element, object? value)
Parameters
elementDependencyObjectThe element to hold the argument.
valueobjectThe argument value; null is a valid, set value.
SetArg3(DependencyObject, object?)
Sets the value of the Arg3Property attached property.
public static void SetArg3(DependencyObject element, object? value)
Parameters
elementDependencyObjectThe element to hold the argument.
valueobjectThe argument value; null is a valid, set value.
SetArg4(DependencyObject, object?)
Sets the value of the Arg4Property attached property.
public static void SetArg4(DependencyObject element, object? value)
Parameters
elementDependencyObjectThe element to hold the argument.
valueobjectThe argument value; null is a valid, set value.
SetArg5(DependencyObject, object?)
Sets the value of the Arg5Property attached property.
public static void SetArg5(DependencyObject element, object? value)
Parameters
elementDependencyObjectThe element to hold the argument.
valueobjectThe argument value; null is a valid, set value.
SetArg6(DependencyObject, object?)
Sets the value of the Arg6Property attached property.
public static void SetArg6(DependencyObject element, object? value)
Parameters
elementDependencyObjectThe element to hold the argument.
valueobjectThe argument value; null is a valid, set value.
SetArg7(DependencyObject, object?)
Sets the value of the Arg7Property attached property.
public static void SetArg7(DependencyObject element, object? value)
Parameters
elementDependencyObjectThe element to hold the argument.
valueobjectThe argument value; null is a valid, set value.
SetArg8(DependencyObject, object?)
Sets the value of the Arg8Property attached property.
public static void SetArg8(DependencyObject element, object? value)
Parameters
elementDependencyObjectThe element to hold the argument.
valueobjectThe argument value; null is a valid, set value.