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

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -