wpf - MVVM Listbox ContextMenu -
I am trying to set fire to command by right clicking and selecting context menu on the wpf mmv light app. The listbox is made up of a datumplate.
& lt; ListBox.ContextMenu & gt; & Lt; ContextMenu Width = "150" & gt; & Lt; MenuItem header = "go on vacation" & gt; & Lt; MenuItem.Icon & gt; & Lt; TextBlock FontFamily = "/ Boon Administrator, Component / Fonts / seguisym.ttf # Segoe UI Symbol" Text = "& # x1f304;" / & Gt; & Lt; /MenuItem.Icon> & Lt; I: Interaction.Triggers & gt; & Lt; I: EventTrigger EventName = "click" & gt; & Lt; Cmd: EventToMommand Command = "{Compulsive Data Contest .comvov-to-Holiday, ElementName = Layout}" / & gt; & Lt; / I: EventTrigger & gt; & Lt; / I: Interaction.Triggers & gt; & Lt; / MenuItem & gt; & Lt; / ContextMenu & gt; & Lt; /ListBox.ContextMenu> I have also tried to use this
DataContext = "{Binding Path = Placement Target, Relative Soros = {Relative Asris}}" But no luck thank you Scott
** Update I have a code that is running above the fine-running context menu.
& lt; I: interaction Trigger & gt; & Lt; I: Event Trigger Event Name = "MouseBugClick" & gt; & Lt; Cmd: EventToc command command = "{binding data contact. Comspiration, elementname = layout}" commandpalmator = "expected" /> & Lt; / I: EventTrigger & gt; & Lt; / I: Interaction.Triggers & gt; Then it should be a context menu that is blocking it.
I have been successful in tracking an answer from this link for any help. Thank you. Scott
Comments
Post a Comment