private void Execute(object sender, EventArgs e) { var window = new Window.Window { Width = 350, Height = 180, Content = new ColorPickerControl() }; window.ShowDialog(); }
get => this.GetVisualFromTemplate(this._headerTemplateFilePath, this._dataSourceObject);
get => Equals(BooleanBoxes.True, this.GetValue(IsTrueProperty));
private void OnSelectionArea(SSPayload<Tuple<bool, Point.Point, Point.Point>> ssPayload) { if (ssPayload.Value.Item1) { _selectionWindow.Close(); pt1 = ssPayload.Value.Item2; pt2 = ssPayload.Value.Item3; InteractionManager.GetCommand<SSSelectionRegionFinished>().Publish(new SSPayload<bool>(true)); } else { InteractionManager.GetCommand<SSSelectionRegionFinished>().Publish(new SSPayload<bool>(false)); } }