Share via


DesignerView.ToggleArgumentDesignerCommand 欄位

定義

用來顯示或隱藏引數設計工具的命令。 Arguments按一下 Windows 工作流程設計工具介面上的按鈕會起始此動作。

public: static initonly System::Windows::Input::ICommand ^ ToggleArgumentDesignerCommand;
public static readonly System.Windows.Input.ICommand ToggleArgumentDesignerCommand;
 staticval mutable ToggleArgumentDesignerCommand : System.Windows.Input.ICommand
Public Shared ReadOnly ToggleArgumentDesignerCommand As ICommand 

欄位值

範例

下列程式碼範例會示範如何將這個屬性繫結至按鈕。

<Button xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation" Command="sapv:DesignerView.ToggleArgumentDesignerCommand">Show/Hide Arguments</Button>  

下列程式碼範例會示範如何使用 C# 叫用這個屬性。

DesignerView dView = des.Context.Services.GetService<DesignerView>();  
((RoutedCommand)DesignerView.ToggleArgumentDesignerCommand).Execute(null, dView);  

適用於