Пример #1
0
 public void ToggleIcon()
 {
     if (behavior.IsSet(BackButtonBehavior.IconOverrideProperty))
     {
         behavior.ClearValue(BackButtonBehavior.IconOverrideProperty);
     }
     else
     {
         behavior.IconOverride = "coffee.png";
     }
 }
Пример #2
0
 public void ToggleIcon()
 {
     if (behavior.IsSet(BackButtonBehavior.IconOverrideProperty))
     {
         behavior.ClearValue(BackButtonBehavior.IconOverrideProperty);
     }
     else
     {
         behavior.IconOverride = new FileImageSource()
         {
             File         = "coffee.png",
             AutomationId = "CoffeeAutomation"
         };
     }
 }