我正在开发 Windows Phone 8 应用程序。
这是我的代码:
我正在绑定 XAML 中的数据:
<phone:WebBrowser IsScriptEnabled="True"
ScriptNotify="BrowserControlScriptNotify"
ListBoxWebView:WebBrowserUtility.Html="{Binding WebView}"/>
Run Code Online (Sandbox Code Playgroud)
这WebView是data binded to webbrowser control.
我有这样的内容:
<html><head>{0}</head><body bgcolor=BGCOLOR style=\"margin:0px;padding:0px;\" "
Run Code Online (Sandbox Code Playgroud)
在这里bgcolor=BGCOLOR我希望 bgcolor 是透明的。
我试过,<body style="background: transparent; margin: 0; padding: 0;">但它不工作。
c# silverlight webbrowser-control windows-phone windows-phone-8
Byte[] result = (Byte[])new ImageConverter().ConvertTo(img1, typeof(Byte[]));
//I cant use Image Converter add Image Class ? Drawing dll
MemoryStream ms = new MemoryStream();
img1.Save(ms, System.Drawing.Imaging.ImageFormat.Gif);
return ms.ToArray();
//Cannot see System.Drawing dll and there is no sth like Drawing.Imaging...
Run Code Online (Sandbox Code Playgroud)
有没有其他选项,而不是从外部源添加DLL(我的意思是我将它复制,然后将其添加为外部DLL)?我的项目是在Windows 7手机应用程序中,无法看到Drwaing.dll stj
谢谢