I have small Clarification with MVVM patten With Wpf
I have an User control "A.xaml" , and i am having all the Binding in ViewModel .. "AViewModel.cs" as septate class
i have no code in code behind file "a.cs"
now my problem is like these
in the user control i having 6 buttons, and i want property as "ButtonNo"
if i specify <Usercontrol:A ButtonNo =4/> in Main Window then i have to enable 1,2,3,4 buttons ...
( i know that by writing code in "a.cs" is possible .. but i do not want to write in code behind file .. i have to do it in "AViewModel.cs"
is it possible? if so how to do that?
Give me some idea..