i have one for
loop that create 3 RadioButton with IsChecked
Property true.
I'm adding the RadioButton to StackPanel in ui.When it completed adding radiobuttons i see only the last radiobutton added in page have IsChecked Property to true everyone else has false.
so when layout updates with new radiobutton added all others radiobutton in the stackpanel are set to false here is the code
for(var l = 0 ; l< 3 ; l++){
RadioButton radiobutton = new RadioButton();
radiobutton.IsChecked = true;
stackpanel.children.add(radiobutton);
}
page_load()
in between? – A. Abramov