public void ToggleIcon() { if (behavior.IsSet(BackButtonBehavior.IconOverrideProperty)) { behavior.ClearValue(BackButtonBehavior.IconOverrideProperty); } else { behavior.IconOverride = "coffee.png"; } }
public void ToggleIcon() { if (behavior.IsSet(BackButtonBehavior.IconOverrideProperty)) { behavior.ClearValue(BackButtonBehavior.IconOverrideProperty); } else { behavior.IconOverride = new FileImageSource() { File = "coffee.png", AutomationId = "CoffeeAutomation" }; } }