LargeIcon property from the code behind

Jul 19, 2010 at 7:25 AM

Hi.

using the sample Fluent.Sample.Galleries I want to change the dropdown menu’s LargeIcon property from the code behind:

buttonGreen.LargeIcon = new BitmapImage(new Uri("Images\\BrownLarge.png", UriKind.Relative));

But the drop down only shows a blank with no image. Ho can I set the LargeIcon property in the code behind?

 

Tanks

Coordinator
Jul 19, 2010 at 7:54 AM

Hello, try this: buttonGreen.LargeIcon = new BitmapImage(new Uri("pack://application:,,,/Fluent.Sample.Galleries;component/Images/BrownLarge.png", UriKind.Absolute));