예제 #1
0
        private void PreviewMouseDown([NotNull] object sender, [NotNull] MouseButtonEventArgs e)
        {
            Debug.ArgumentNotNull(sender, nameof(sender));
            Debug.ArgumentNotNull(e, nameof(e));

            DragManager.HandleMouseDown(ListBox, e, out _origin);
        }
        private void HandleMouseLeftButtonDown([NotNull] object sender, [NotNull] MouseButtonEventArgs e)
        {
            Debug.ArgumentNotNull(sender, nameof(sender));
            Debug.ArgumentNotNull(e, nameof(e));

            DragManager.HandleMouseDown(this, e, out _origin);
        }
예제 #3
0
        protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
        {
            Debug.ArgumentNotNull(e, nameof(e));

            base.OnMouseLeftButtonDown(e);

            DragManager.HandleMouseDown(this, e, out origin);
        }
예제 #4
0
        private void HandleMouseLeftButtonDown([NotNull] object sender, [NotNull] MouseButtonEventArgs e)
        {
            Debug.ArgumentNotNull(sender, nameof(sender));
            Debug.ArgumentNotNull(e, nameof(e));

            DragManager.HandleMouseDown(this, e, out dragOrigin);

            if (e.ClickCount < 2)
            {
                return;
            }

            var selectedItem = Hits.SelectedItem as ItemHeader;

            if (selectedItem == null)
            {
                return;
            }

            var itemVersionUri = new ItemVersionUri(selectedItem.ItemUri, LanguageManager.CurrentLanguage, Version.Latest);

            AppHost.OpenContentEditor(itemVersionUri);
        }