private static void OnDoEdit(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            InlineStringEditor inlineStringEditor = sender as InlineStringEditor;

            if (inlineStringEditor == null || !(bool)e.NewValue)
            {
                return;
            }
            inlineStringEditor.EditCommand.Execute((object)null);
            sender.SetValue(ManageWorkspaceConfigurationsDialog.DoEditProperty, (object)false);
        }
Exemplo n.º 2
0
        public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            InlineStringEditor inlineStringEditor = this.GetTemplateChild("StoryboardName") as InlineStringEditor;

            if (inlineStringEditor != null)
            {
                this.EditCommand = inlineStringEditor.EditCommand;
            }
            else
            {
                this.ClearValue(ActiveStoryboardControl.EditCommandProperty);
            }
        }
Exemplo n.º 3
0
        private static void HandleBringIntoView(object sender, RequestBringIntoViewEventArgs e)
        {
            if (e.TargetObject == sender)
            {
                return;
            }
            TimelineTreeRow    timelineTreeRow    = (TimelineTreeRow)sender;
            InlineStringEditor inlineStringEditor = timelineTreeRow.FindName("ItemTitle") as InlineStringEditor;

            if (inlineStringEditor == null || !inlineStringEditor.IsEditing || e.TargetRect.IsEmpty)
            {
                return;
            }
            timelineTreeRow.BringIntoView(new Rect(e.TargetRect.X, e.TargetRect.Y, inlineStringEditor.ActualWidth, inlineStringEditor.ActualHeight));
            e.Handled = true;
        }