예제 #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"
         };
     }
 }