C# WPF radio buttons split onto different pages -


i'm working on wpf (xaml) using designer (very newbie) , c# backing code.

i need able have few "pages" of radio buttons in same group (i.e. clicking on item on page 1 clicking on b on page 2 should deselect on page 1).enter image description here

how go doing this?

thank you!

note "buttons" radio buttons above images.

first, not recommend doing this. user, confused/surprised if selections on 1 page affected selection on previous one.

as how accomplish it, assume using mvvm (as should in wpf). first, viewmodel each page needs have reference same backing property in model. in other words, model has property (where myradioselection enum binding to):

public myradioselection globalselection {get; set;} 

and view models have:

public myradioselection userselection {    {return model.globalselection;}    set    {        model.globalselection = value;        onpropertychanged(userselection);    } } 

then need valueequals converter (from answer), bind radio buttons enum, , should go!

please let me know if piece explained further. also, posting existing code improve answer. note model may need way of notifying viewmodels of external (another viewmodel's) changes backing property. approach several directions, implementing inotifypropertychanged , listening in viewmodel work.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -