Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2915
Right click on XamGrid cell after selecting the value in the cell opens up a Copy Paste Context Menu in which COPY is disabled
posted

Hi,

I have a XamGrid which has a template column of type Combo Box. The issue is if I select any value on the cell (Combo box value) and right click on it, the context menu opens up which has cut, copy , paste and in which only paste is enabled and cut, copy are disabled. I want to disable this feature i dont want this context menu opening up when I right click on any value in any cell. I have attached the screenshot of the issue.

 

Thanks

Arpita

Parents
  • 138253
    Offline posted

    Hello Arpita,

    Thank you for your post. I have been looking into it and I can suggest you add the following Style for the TextBox in your XamGrid’s Resources in order to disable the ContextMenu since it is the built one of the MS Textbox element:

    <Style TargetType="{x:Type TextBox}">
        <Setter Property="ContextMenu">
            <Setter.Value>
                <ContextMenu Visibility="Collapsed"/>
            </Setter.Value>
        </Setter>
    </Style

     

    Please let me know if this helps you or you need further assistance on this matter.

    Looking forward for your reply.

Reply Children