/// <summary> /// 切換 Trigger 的操作範圍到頂層視窗 /// </summary> /// <param name="call"></param> /// <returns></returns> public TriggerContext Top(Action <TriggerContext> call) { _currentScope = TriggerScope.Top; call.Invoke(this); _currentScope = TriggerScope.Self; return(this); }
/// <summary> /// 切換 Trigger 的操作範圍到頂層視窗 /// </summary> /// <param name="call"></param> /// <returns></returns> public TriggerContext Top(Action<TriggerContext> call) { _currentScope = TriggerScope.Top; call.Invoke(this); _currentScope = TriggerScope.Self; return this; }
public TriggerCommand(TriggerScope scope, string name, object data) { Scope = scope; Trigger = name; Data = data; }
public TriggerCommand(TriggerScope scope, string name, object data) { Scope = scope; Trigger = name; Data = data; }