![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Displaying an icon in a menu item Should be simple as pie. Using Expression Blend 2 September Preview the icon will display properly in the MenuItem in the design mode but when I run the application the icon disappears. What am I missing? Thanks. Here's the code: <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="Window1" x:Name="wndMain" Title="Window1" Width="640" Height="480"> <Grid x:Name="gridRoot"> <Menu HorizontalAlignment="Stretch" VerticalAlignment="Top" x:Name="menuMain"> <MenuItem x:Name="mnuiFile" Header="_File"> <MenuItem x:Name="mnuiFile_Close" Header="_Close"> <MenuItem.Icon> <Image Source="graphics/error.ico" Height="15" Width="15" Stretch="Fill"/> </MenuItem.Icon> </MenuItem> </MenuItem> </Menu> </Grid> </Window> |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Wrong Icon For Start Menu Item | Vista General | |||
| Start menu now displaying new WLM icon | Live Mail | |||
| Can't Change Start Menu Item Icon | Vista General | |||
| Problem displaying games explorer as a menu item | Vista Games | |||
| Menu Item Icon shows in the IDE but does not show when app is runn | .NET General | |||