Ejemplo n.º 1
0
        protected override void OnPreviewMouseDown(MouseButtonEventArgs e)
        {
            base.OnPreviewMouseDown(e);
            DependencyObject target = e.OriginalSource as DependencyObject;

            if (target == null || !StoryboardPicker.GetCausesDismiss(target))
            {
                return;
            }
            this.timelinePane.CloseStoryboardPickerPopup();
        }
Ejemplo n.º 2
0
 public StoryboardPickerPopup(StoryboardPicker picker, FrameworkElement placementTarget, IConfigurationObject configuration)
     : base(new ContentControl(), configuration, "StoryboardPicker", StoryboardPickerPopup.DefaultSize)
 {
     this.picker = picker;
     this.ContentControl.Content   = (object)picker;
     this.ContentControl.Focusable = false;
     this.ContentControl.IsTabStop = false;
     this.PlacementTarget          = (UIElement)placementTarget;
     this.Placement           = PlacementMode.Relative;
     this.HorizontalOffset    = 0.0;
     this.VerticalOffset      = placementTarget.ActualHeight + StoryboardPickerPopup.Offset;
     this.RedirectFocusOnOpen = false;
 }
Ejemplo n.º 3
0
        void IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.StoryboardPickerRoot = (StoryboardPicker)target;
                break;

            case 2:
                this.SearchTextBox = (ClearableTextBox)target;
                break;

            case 3:
                this.StoryboardsListView = (ListBox)target;
                break;

            default:
                this._contentLoaded = true;
                break;
            }
        }