コード例 #1
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            _navigationHelper.OnNavigatedTo(e);
            await BeveragesModel.LoadItemsAsync();

            DataContext = this;
        }
コード例 #2
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            _navigationHelper.OnNavigatedTo(e);
            await BeveragesModel.LoadItemsAsync();

            BottomAppBar.IsOpen   = true;
            BottomAppBar.IsSticky = true;
        }
コード例 #3
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            _dataTransferManager = DataTransferManager.GetForCurrentView();
            _dataTransferManager.DataRequested += OnDataRequested;

            _navigationHelper.OnNavigatedTo(e);
            await BeveragesModel.LoadItemsAsync();
        }
コード例 #4
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            _dataTransferManager = DataTransferManager.GetForCurrentView();
            _dataTransferManager.DataRequested += OnDataRequested;

            _navigationHelper.OnNavigatedTo(e);

            await BeveragesModel.LoadItemsAsync();

            BeveragesModel.SelectItem(e.Parameter);

            if (BeveragesModel != null)
            {
                BeveragesModel.ViewType = ViewTypes.Detail;
            }
            DataContext = this;
        }
コード例 #5
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            _dataTransferManager = DataTransferManager.GetForCurrentView();
            _dataTransferManager.DataRequested += OnDataRequested;

            _navigationHelper.OnNavigatedTo(e);

            await BeveragesModel.LoadItemsAsync();

            if (e.Parameter is BeveragesSchema)
            {
                BeveragesModel.Items.Add(e.Parameter as BeveragesSchema);
            }
            BeveragesModel.SelectItem(e.Parameter);

            if (BeveragesModel != null)
            {
                BeveragesModel.ViewType = ViewTypes.Detail;
            }
            DataContext           = this;
            BottomAppBar.IsOpen   = true;
            BottomAppBar.IsSticky = true;
        }
コード例 #6
0
ファイル: BeveragesPage.xaml.cs プロジェクト: compkos/Menu
 protected override async void OnNavigatedTo(NavigationEventArgs e)
 {
     _navigationHelper.OnNavigatedTo(e);
     await BeveragesModel.LoadItemsAsync();
 }