简体   繁体   English

上下文菜单的图标图像错误

[英]Error in Icon Image of Context Menu

I m getting error after running the application "error:Sys.InvalidOperationException: ImageError error #4001 in control 'ctl00_ContentPlaceHolder1_Xaml': AG_E_NETWORK_ERROR" in below code在下面的代码中运行应用程序“错误:Sys.InvalidOperationException:ImageError 错误#4001 in control 'ctl00_ContentPlaceHolder1_Xaml':AG_E_NETWORK_ERROR”后出现错误

            <toolkit:MenuItem Header="Accoustics">
            <toolkit:MenuItem.Icon>
                    <Image x:Name="menuIcon1" Source="Images//Arrow.PNG" Height="30" Width="30" Stretch="Fill"/>
                </toolkit:MenuItem.Icon>
            </toolkit:MenuItem>
            </toolkit:ContextMenu>

strange thing is that im able to see image in design view.奇怪的是,我能够在设计视图中看到图像。

any idea??任何想法??

Thanks.谢谢。 -Nitin -尼丁

Is correct the path Source="Images//Arrow.PNG"?路径 Source="Images//Arrow.PNG" 是否正确? Try the correct path Source="Images/Arrow.PNG"尝试正确的路径 Source="Images/Arrow.PNG"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM