Inheritance: BindableBase
        public MainPage()
        {
            this.InitializeComponent();

            openItem = new MenuItem() { Glyph = Symbol.OpenFile, Text = "Open", Command = ViewModel.OpenCommand };
            ViewModel.Menu.Add(openItem);

            saveItem = new MenuItem() { Glyph = Symbol.Save, Text = "Save", Command = ViewModel.SaveCommand };
            ViewModel.Menu.Add(saveItem);
        }
        public MainPage()
        {
            this.InitializeComponent();

            vm = new MainPageViewModel();
            this.DataContext = vm;

            openItem = new MenuItem() { Glyph = "\uE163", Text = "Open", Command = vm.OpenCommand };
            addItem = new MenuItem() { Glyph = "\uE8D1", Text = "Add", Command = vm.AddCommand };
            cleanItem = new MenuItem() { Glyph = "\uEA99", Text = "Cleanup", Command = vm.CleanCommand };
        }
 public MainPage()
 {
     this.InitializeComponent();
     resetItem = new MenuItem()
     {
         Glyph = Symbol.Setting,
         Text = "Reset DB",
         Command = (DataContext as MainPageViewModel).CreateCommand
     };
     viewItem = new MenuItem()
     {
         Glyph = Symbol.View,
         Text = "View all",
         Command = (DataContext as MainPageViewModel).SelectCommand
     };
 }