Example #1
0
 public void Setup(ViewModelEditorToolTerrainSettings viewModel)
 {
     this.ViewModel = viewModel;
     if (this.isLoaded)
     {
         this.DataContext = this.ViewModel;
     }
 }
Example #2
0
        public override FrameworkElement CreateSettingsControl()
        {
            var control = new EditorToolTerrainSettings();

            if (this.settings is null)
            {
                this.settings = new ViewModelEditorToolTerrainSettings();
                this.settings.BrushSettingsChanged += this.BrushSettingsChangedHandler;
            }

            control.Setup(this.settings);
            return(control);
        }