के डिफ़ॉल्ट कॉन्टेक्स्टमेनू को स्टाइल या अक्षम कैसे करें जब उपयोगकर्ता हमारे डब्ल्यूपीएफ एप्लिकेशन में राइट-क्लिक करते हैं, और वे विंडोज क्लासिक थीम का उपयोग करते हैं, टेक्स्टबॉक्स के डिफ़ॉल्ट कॉन्टेक्स्टमेनू (जिसमें कॉपी, कट और पेस्ट शामिल है) एक काला पृष्ठभूमि है।डब्ल्यूपीएफ: टेक्स्टबॉक्स
मैं यह अच्छी तरह से पता है कि काम करता है:
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextBox ContextMenu="{x:Null}"/>
</Page>
लेकिन यह काम नहीं करता:
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Page.Resources>
<Style x:Key="{x:Type TextBox}" TargetType="{x:Type TextBox}">
<Setter Property="ContextMenu" Value="{x:Null}"/>
</Style>
</Page.Resources>
<TextBox/>
</Page>
किसी WPF में सभी बक्सें के लिए शैली या निष्क्रिय करने के लिए कैसे डिफ़ॉल्ट ContextMenu पता है?
आप अक्षम शॉर्टकट कुंजी है, उदा नहीं पर विचार की जरूरत है CTRL-V? –