私のXAMLには、次のコマンドがあります (これはhttp://marlongrech.wordpress.comから取得した AttachedCommand です):
<TextBlock Text="Edit Test Customer">
<Commands:CommandBehaviorCollection.Behaviors>
<Commands:BehaviorBinding Event="MouseLeftButtonDown"
Command="{Binding ClickEditTestCustomer}"/>
</Commands:CommandBehaviorCollection.Behaviors>
</TextBlock>
次に、コマンドで、 ExecuteDelegateコード内にブレークポイントを設定すると、たとえば「layoutManger...」行で、そのコードが実行されてもブレークポイントで停止しません (ビューが表示されます)。
ClickEditTestCustomer = new SimpleCommand
{
ExecuteDelegate = parameterValue =>
{
LayoutManager layoutManager = container.Resolve<LayoutManager>();
layoutManager.DisplayViewAsPane("EditCustomer", "Edit Customer", new EditCustomerView());
}
};
ブレークポイントを設定して、AttachedCommand 内の行でコードを停止するにはどうすればよいですか?