silverlight - Applying a style to ItemContainerStyle in C# -
when i'm applying style listbox.itemcontainerstyle in c# isn't making change @ runtime.
i'm using;
mylistbox.itemcontainerstyle = (style)(app.current.resources["newitemstyle"]);
however other styles being supplied, such buttons etc i'm going mybutton.style = (style)(app.current.resources["mymainbuttonstyle"]);
i don't errors either, nothing , reverts default system style.
i using app.current.resources instead of resources because "newitemstyle" wasn't defined in whole application. mistake.
Comments
Post a Comment