Click here to Skip to main content
15,922,015 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

In my WPF Application, I have a Check box(print), based on the selection
C#
public struct _PrintState{
         public byte my_current_value;
          public byte my_previous_value;
....
...
}


//MyOtherFile.xaml.cs
C#
_PrintState PRINTSTATE;

public void Print_Func()
{
PRINTSTATE  my_current_value = 0;// value should be 1 if PrintChk is selected.
PRINTSTATE  my_previous_valuee = 0;
....
}

Based on Selection of Print.Xaml , for Checkbox, viz., PrintChk then only the value of my_current_value =1; if not otherwise.

Thanks in Advance.

With Regards,
Samanth_90
Posted
Updated 12-Mar-12 20:53pm
v2
Comments
Sergey Alexandrovich Kryukov 13-Mar-12 2:52am    
What does it mean, "selection of print.XAML"?
--SA

1 solution

I am very much a newcomer to WPF, but I think you can bind your checkbox to the underlying value. Strangely enough I was reading Sacha[^]'s WPF: A Beginner's Guide - Part 5 of n[^] which covers Databinding, only yesterday.
 
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