You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// count as constant argumentsif(count==0)CounterBtn.SetTranslate(Button.TextProperty,"ClickMe");elseif(count==1)CounterBtn.SetTranslate(Button.TextProperty,"ClickedOneTime",count);elseCounterBtn.SetTranslate(Button.TextProperty,"ClickedManyTimes",count);// count as a bindingCounterBtn.SetTranslate(Button.TextProperty,"ClickedManyTimes",newBinding(nameof(Count),source:this));// string resource as a binding, where ClickText can be "ClickedMe", "ClickedOneTime" or "ClickedManyTimes"CounterBtn.SetTranslate(Button.TextProperty,newBinding(nameof(ClickText),source:this),newBinding(nameof(Count),source:this));
The text was updated successfully, but these errors were encountered:
Introduce new SetTranslate extension method so that we can use Translate from C# code-behind.
Examples:
The text was updated successfully, but these errors were encountered: