473,396 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Disable ValidatesOnDataErrors property if the control is disabled

Hi There
I am working on my first WPF project.I have a TextBox control.In Binding property of this TextBox,I want to set ValidatesOnDataErrors=true. But if this TextBox is disabled then I want to set ValidatesOnDataErrors=false. I want to do all these things in Xaml.How can i do that(Can we bind ValidatesOnDataErrors to a property?).Any help will be appreciated.
Thanks,
Jun 8 '10 #1
1 2806
Plater
7,872 Expert 4TB
Could you not just set the value when the enable state changes?
There is an event EnabledChanged that could work for you?
Jun 8 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Fei Li | last post by:
Hi, I want to make a control like the property control in VS .net 2003. Who can tell what is it. Is it a Datagrid, TreeView, ListView or somthing else?
0
by: David | last post by:
Hi, If I put the dropdown control in a panel control, after I disable the container--panel control, I can still drop down the dropdown control. How can I disable a dropdown in a container? ...
1
by: Lars Netzel | last post by:
Hello, Making your own WebCustomControl, how you do disable properties in the design view? For example my WebCustomControl does not use text, so the default property Font is missleading when...
6
by: pmcguire | last post by:
I would like to disable a TabPage control so that my users can see that the page exists, but the selected index of the TabControl won't change if they click on the tab for it. Ideally, the TabPage's...
4
by: eric.goforth | last post by:
Hello, I'm getting: msxml3.dll (0x80004005) Error while parsing "file:///c:/WWWROOT/includes/Inc.xsl". A name was started with an invalid character. When I put in the "{$sDisabledString}"
6
by: ron | last post by:
1. Can I disable a user control in a web page? 2. Can I disable the 'close' function on the top-right corner of a popup window, so I can use code-behind function to close the browser?
2
by: =?Utf-8?B?SmFu?= | last post by:
I could use a property control like the one in Visual Studio shown in designer mode. The grouped mode is not absolutely necessary for me - but would be nice to have. Anybody know one? - or...
1
by: shapper | last post by:
Hello, I am creating a control which I will compile in a class. I am having problems when I use a property in the View State: ' Items <Bindable(True), Category("Data"), DefaultValue(""),...
2
by: premrajap | last post by:
How can i enable /disable the sort button of C# property grid??
3
by: thirish | last post by:
Hi, I have jsp page, on jsp page, The data is displaying from xml island. the Requriement is i have optional button and dropdown in each row. if user check the option button in second row then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.