Пример #1
0
        /// <summary>
        /// Returns
        /// </summary>
        /// <param name="e">The <see cref="T:System.Windows.Input.MouseButtonEventArgs"/> that contains the event data. The event data reports that one or more mouse buttons were pressed.</param>
        protected override void OnPreviewMouseDown(MouseButtonEventArgs e)
        {
            base.OnPreviewMouseDown(e);

            if (XCaseCanvas != null && this is ISelectable)
            {
                XCaseCanvas.SelectableItemPreviewMouseDown(this as ISelectable, e);
            }
        }
Пример #2
0
        /// <summary>
        /// Calls <see cref="Controls.XCaseCanvas"/>.<see cref="Controls.XCaseCanvas.SelectableItemPreviewMouseDown"/> on <see cref="XCaseCanvas"/>
        /// </summary>
        /// <param name="e">The <see cref="T:System.Windows.Input.MouseButtonEventArgs"/> that contains the event data. The event data reports that the left mouse button was pressed.</param>
        protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
        {
            base.OnPreviewMouseDown(e);

            XCaseCanvas.SelectableItemPreviewMouseDown(this, e);
        }