public void ShowColorPickerEditor() { if (_colorEditorWindow == null) { _colorEditorWindow = new ColorEditorWindow(); _colorEditorWindow.Content = _colorEditorViewModel; _colorEditorViewModel.OpenColorPickerRequested += ColorEditorViewModel_OpenColorPickerRequested; } _colorEditorViewModel.Initialize(); _colorEditorWindow.Show(); }
private void ShowColorPickerEditor() { if (_colorEditorWindow == null) { _colorEditorWindow = new ColorEditorWindow(this); _colorEditorWindow.Content = _colorEditorViewModel; _colorEditorViewModel.OpenColorPickerRequested += ColorEditorViewModel_OpenColorPickerRequested; _colorEditorViewModel.OpenColorPickerRequested += (object sender, EventArgs e) => { SessionEventHelper.Event.EditorColorPickerOpened = true; }; } _colorEditorViewModel.Initialize(); _colorEditorWindow.Show(); SessionEventHelper.Event.EditorOpened = true; }
public static void Create() { ColorEditorWindow window = GetWindow <ColorEditorWindow>(); window.minSize = new Vector2(320, 320); }