Is there a way to set the Icon for XamMenuItem in App.Xaml?
HI,
You could define a BitMapImage in your Application Resources, then bind to it.
Here is the code snippets:
<BitmapImage x:Key="opdb" UriSource="Images/OpenPDB.png"/>
<ig:XamMenuItem >
<ig:XamMenuItem.Icon>
<Image Source="{StaticResource opdb}"/>
</ig:XamMenuItem.Icon>
Sincerely, Matt
Developer Support Engineer
Thanks for the response. I'm sorry I should've clarified. I meant as a style.
This setter for the icon doesn't work.
<Style TargetType="ig:XamMenuItem" x:Key="innerButtonsMenuItem"> <Setter Property="Header" Value="Help"/> <Setter Property="Margin" Value="-2,-2,0,0"/> <Setter Property="Height" Value="20"/> <Setter Property="Icon"> <Setter.Value> <Image Source="{StaticResource iconHelp}"/> <!--<Image Source="Assets/iconHelp.png"/>--> <!--<Image Source="/MyTest;component/Assets/iconHelp.png"/>--> <!--<ImageBrush ImageSource="Assets/iconHelp.png" Stretch="None" AlignmentX="Center" AlignmentY="Center"/>--> </Setter.Value> </Setter> </Style>