Click here to Skip to main content
14,303,493 members
Rate this:
Please Sign up or sign in to vote.
See more:

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,
Updated 26-Mar-12 4:01am
Amir Mahfoozi 27-Mar-12 2:43am
Your first query is ambiguous.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

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.

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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100