Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
同じコマンド「画像の表示」と「画像の非表示」にバインドされた2つのmenuItemがあり、いつでも1つのアイテムのみが表示されるか、表示または非表示になります。
Executeの構文は、パラメーターを除いて同じです。
同時に表示できるのは1つだけで、アイテムを押すともう1つに切り替わる可能性はありますか?
ありがとうございました
ElementNameを使用して、Visibilityを他のコントロールの可視性にバインドできます。次に、コンバーターを使用して可視性を反転させます。
Visibility="{Binding ElementName=otherControl,Path=Visibility,Converter={StaticResource HiddenToVisibleConverter}}"