public StageEditor()
        {
            InitializeComponent();

            StackPanel dropDownContentPanel = StageTypesDropDown.DropDownContent as StackPanel;

            if (dropDownContentPanel != null)
            {
                IEnumerable <CheckBox> checkBoxes = dropDownContentPanel.Children.OfType <CheckBox>();
                checkBoxesByStageType = new Dictionary <PatternStageType, CheckBox>(checkBoxes.Count());
                foreach (CheckBox cb in checkBoxes)
                {
                    checkBoxesByStageType[(PatternStageType)cb.Content] = cb;
                }
            }

            DragCanvas.SetCanBeDragged(this, false);
        }
 private void OnArrowButtonMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     DragCanvas.SetCanBeDragged(this, false);
 }