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.
コマンド パラメータを渡す方法MenuItem
MenuItem
<MenuItem CommandParameter="{Binding this, ElementName=Header}" />
または、次のようなハードコードされた文字列を渡す方法
<MenuItem CommandParameter="something" />
私はmvvmライト、wpfを使用しています
試す...
<MenuItem CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Header}"/>