Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
85
XamMenuItem: Setting Icon in App.xaml
posted

Is there a way to set the Icon for XamMenuItem in App.Xaml?

Parents
  • 28407
    posted

    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

Reply Children