Esempio n. 1
0
        protected override void OnAppearing()
        {
            base.OnAppearing();

            if (isLoaded)
            {
                return;
            }

            this.isLoaded = true;

            var vm = new GroupChatViewModel(dialogId);

            this.BindingContext = vm;
            vm.OnAppearing();
        }
Esempio n. 2
0
        protected override async void OnNavigatedTo(NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);

            if (e.NavigationMode == NavigationMode.Back)
            {
                return;
            }

            var parameter = (string)e.Parameter;

            vm = new GroupChatViewModel(parameter);
            this.DataContext = vm;
            vm.OnAppearing();

            //await Windows.UI.ViewManagement.StatusBar.GetForCurrentView().HideAsync();
        }