Ejemplo n.º 1
0
        public void InitializeAppBar()
        {
            var viewModel = new AppBarMenuViewModel
                {
                    ShowSettingsCommand = new DelegateCommand(() => _eventAggregator.GetEvent<ShowSettingsEvent>().Publish(true)),
                };

            _container.RegisterInstance(viewModel);
        }
Ejemplo n.º 2
0
        public Shell(AppBarMenuViewModel appBarViewModel)
        {
            InitializeComponent();

            AppBarMenu.DataContext = appBarViewModel;
        }