.net - ToggleButton disable setting IsChecked behavior on button clicked -


ToggleButton की विशेषता IsChecked की विशेषता के व्यवहार को हटाने के लिए कोई रास्ता नहीं है जब मैं टॉगल बटन क्लिक करता हूं? मुझे एक कस्टम प्रॉपर्टी के लिए बाइंडिंग द्वारा प्रबंधित करने के लिए IsChecked विशेषता चाहिए।

इसलिए आप केवल अपने बाध्यकारी और अस्वीकार इनपुट के माध्यम से अपने कोड को संभाल करने के लिए नियंत्रण चाहते हैं। आप IsEnabled = "False" को सेट कर सकते हैं, लेकिन तब यह Disabled` state में थोड़ी अपारदर्शी दिखाई देगा, जब तक कि आप उस कंट्रोल टेम्पलेट को तदनुसार नहीं बदलते।

मुझे लगता है कि आप क्या चाहते हैं अभी भी यूजर इनपुट को छोड़ने के तरीक़े से अधिक है लेकिन फिर भी अपने IsChecked को संभाल लें, तो मैं इसे इसे सेट करने का सुझाव दे रहा हूं;

  & lt; ToggleButton IsHitTestVisible = "False" IsTabStop = "झूठी" ईशंकित = "{बाध्यकारी ब्लाह}" />   

आशा है कि यह मदद करता है, चीयर्स।

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -