示例#1
0
//<SnippetUIElementMouseCapture>
        private void MouseDownHandler(object sender, MouseButtonEventArgs e)
        {
            ContentElement el = (ContentElement)sender;

            if (!el.IsEnabled)
            {
                return;
            }
            e.Handled = true;
            el.CaptureMouse();
            _point = e.MouseDevice.GetPosition(el);
        }