0
컨트롤 템플릿은 사용자 지정 컨트롤 용입니다.WPF- 클릭하면 컨트롤 템플릿의 팝업이 닫히지 않게하려면 어떻게해야합니까?
나는이 질문을 보았다 : Why does a WPF Popup close when its background area is clicked?
그러나 내가 컨트롤 템플릿에서 이벤트에 명령을 바인딩하는 방법을 알아낼 수 있습니다. 나는 이것을 시도했다 :
<Popup
Name="Popup"
Placement="Bottom"
IsOpen="{TemplateBinding IsDropDownOpen}"
AllowsTransparency="True"
Focusable="True"
PopupAnimation="Slide"
>
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseLeftButtonDown">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{TemplateBinding PopupClickedCommand}" PassEventArgsToCommand="True"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</Popup>
그러나 명령은 발생하지 않는다.
아직 발포하지 않습니다. – Justin