Пример #1
0
 private void OnCommit()
 {
     if (!this.property.SetExpressionAsString(this.editingExpression))
     {
         base.Dispatcher.BeginInvoke(DispatcherPriority.Input, new DispatcherOperationCallback((object arg) =>
         {
             CustomExpressionEditor customExpressionEditor = new CustomExpressionEditor(this.property)
             {
                 PlacementTarget = base.PlacementTarget,
                 IsOpen          = true
             };
             return(null);
         }), null);
     }
 }
Пример #2
0
 private void OnCommit()
 {
     if (this.property.SetExpressionAsString(this.editingExpression))
     {
         return;
     }
     this.Dispatcher.BeginInvoke(DispatcherPriority.Input, (Delegate)(arg =>
     {
         CustomExpressionEditor expressionEditor = new CustomExpressionEditor(this.property)
         {
             PlacementTarget = this.PlacementTarget,
             IsOpen = true
         };
         return((object)null);
     }), (object)null);
 }