This question is locked. New answers and comments are not allowed.
I am trying to dynamically add buttons to a RadWindow AppBar and they are not being updated in the UI.
My code looks like this:
Where I have a resource set for the ApplicationBarButton ("LoginAppBarButton") and the LoginRadWindow is the RadWindow control.
The above code runs fine and I get the button added to the collection however this is not reflected on the UI so the button doesn't actually appear.
Is there a way to dynamically add AppBarButtons to the RadWindow AppBar?
My code looks like this:
var appBarButton = (ApplicationBarButton)Resources[
"LoginAppBarButton"
];
if
(appBarButton ==
null
)
return
;
LoginRadWindow.ApplicationBarInfo.Buttons.Add(appBarButton);
Where I have a resource set for the ApplicationBarButton ("LoginAppBarButton") and the LoginRadWindow is the RadWindow control.
The above code runs fine and I get the button added to the collection however this is not reflected on the UI so the button doesn't actually appear.
Is there a way to dynamically add AppBarButtons to the RadWindow AppBar?