protected override void OnLoaded() { if (IsDesignTime) { return; } this.DataContext = this.viewModel = new ViewModelMenuHome(); }
protected override void OnUnloaded() { if (IsDesignTime) { return; } this.DataContext = null; this.viewModel.Dispose(); this.viewModel = null; }
protected override void OnUnloaded() { if (IsDesignTime) { return; } this.DataContext = null; this.viewModel.Dispose(); this.viewModel = null; Api.Client.MasterServer.DemoVersionInfoChanged -= MasterServerDemoVersionInfoChangedHandler; }
protected override void OnLoaded() { if (IsDesignTime) { return; } this.DataContext = this.viewModel = new ViewModelMenuHome(); DemoVersionWelcomeMenu.DisplayIfRequired(); FeaturesSlideshow.DisplayIfRequired(); Api.Client.MasterServer.DemoVersionInfoChanged += MasterServerDemoVersionInfoChangedHandler; }