ComboBox context menu. #2261

Closed
ZhiCeYang opened this Issue Dec 10, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@ZhiCeYang

Hi, thanks to develop such a useful tool for WPF developers! Now I got a situation is that I have a combo box, it allows people to edit, but I don't really want the context menu which prompt when I right click the input box. It is not work to set it's context menu property to null, I checked the code, the context menu is from the text box named "PART_EditableTextBox", so how can I remove it ? thank you!

@punker76 punker76 self-assigned this Dec 23, 2015

@punker76 punker76 added this to the 1.4.0 milestone Sep 20, 2016

@punker76 punker76 modified the milestones: 1.5.0, 1.4.0 Nov 20, 2016

@punker76 punker76 modified the milestones: 1.4.0, 1.5.0 Dec 20, 2016

@punker76 punker76 closed this in 28709a3 Dec 21, 2016

@punker76

This comment has been minimized.

Show comment
Hide comment
@punker76

punker76 Dec 21, 2016

Member

@ZhiCeYang This will be possible with 1.4.0. You can then disable the ContextMenu.

<ComboBox.ContextMenu>
    <ContextMenu IsEnabled="False"
                 Visibility="Collapsed" />
</ComboBox.ContextMenu>
Member

punker76 commented Dec 21, 2016

@ZhiCeYang This will be possible with 1.4.0. You can then disable the ContextMenu.

<ComboBox.ContextMenu>
    <ContextMenu IsEnabled="False"
                 Visibility="Collapsed" />
</ComboBox.ContextMenu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment