Ejemplo n.º 1
0
        protected override void OnLoaded()
        {
            var characterCustomizationControl = this.GetByName <CharacterCustomizationControl>(
                "CharacterCustomizationControl");

            this.DataContext = this.viewModel =
                new ViewModelMenuCharacterCreation(characterCustomizationControl,
                                                   closeCallback: this.RemoveControl);
        }
Ejemplo n.º 2
0
 protected override void OnUnloaded()
 {
     this.DataContext = null;
     this.viewModel.Dispose();
     this.viewModel = null;
 }