Build() 공개 메소드

public Build ( ) : Microsoft.Phone.Shell.ApplicationBar
리턴 Microsoft.Phone.Shell.ApplicationBar
예제 #1
0
        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());
        }
예제 #2
0
        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());
        }