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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -