Click here to Skip to main content
15,884,009 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,


I have a window in WPF, which hv, these entities, Duplex printing Checkbox, No. of Pages Textbox & ComboBox Selections and Button for Print,
Let us assume, based on Checkbox selection the user needs to disable the Textbox., ie., on Checkbox checked state(true), I will disable the Textbox and ComboBox using the Boolean Inverter logic ., by usage of IValueConverter.(Already existing implemented for TextBox and ComboBox relative to Checkbox)

But in addition,
Query 1. What if I need to disable the Checkbox too(ie., Checkbox is UnChecked State), when contents in Textbox/Combo Box already implemented as above are changed by user. So that subsequent operation on click of Print Button is forbidden after Check option on Checkbox by user.

Query 2. How to effectively handle the TextBox Contents change status analogous to ComboBox "IsSelectionChanged" ie., Is there any other functionality for Change of contents in TextBox ?

Thanks in Advance...

With Regards,
Samanth_90
Posted
Updated 26-Mar-12 4:01am
v2
Comments
Amir Mahfoozi 27-Mar-12 2:43am    
Your first query is ambiguous.

1 solution

You could try using Styles with MultiTriggers, or building your own converters for a MulitBinding. It's a bit hard to give you a good answer when the question's a bit confusing.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900