public void UpdateWith(Action <IBuildApplicationBarsWithDefaults> action) { var builder = new ApplicationBarBuilder() .WithDefaults(bar => { bar.AddMenuItem("profile", OpenProfile); bar.AddMenuItem("sign out", SignOut); bar.AddMenuItem("about", About); }); action(builder); Update(builder.Build()); }
public void UpdateWith(Action<IBuildApplicationBarsWithDefaults> action) { var builder = new ApplicationBarBuilder() .WithDefaults(bar => { bar.AddMenuItem("profile", OpenProfile); bar.AddMenuItem("sign out", SignOut); bar.AddMenuItem("about", About); }); action(builder); Update(builder.Build()); }