WPF浏览器应用程序错误
问题描述:
我想设计图像颜色选择器Web应用程序.
我有一个代码,可以通过以下链接在WPF Windows应用程序中找到
WPF图像像素颜色选择器元素 [
请帮帮我...
在此先感谢
代码在这里.
I wanna design Image color picker web application.
I have got a code, which is in WPF Windows Application from following link
WPF Image Pixel Color Picker Element[^]
When I am designing the same code in WPF Browser Application, getting a runtime error as "xpcom.dll not found"
Please help me...
Thanks in Advance
Code is here.
<page x:class="WpfBrowserApplication1.Page1" xmlns:x="#unknown">
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ctrls="clr-namespace:ColorPickerControls;assembly=ColorPickerControls"
xmlns:local="clr-namespace:WpfBrowserApplication1"
Title="Page1">
<grid margin="10">
<grid.rowdefinitions>
<rowdefinition />
<rowdefinition height="Auto" />
</grid.rowdefinitions>
<border borderbrush="Beige" borderthickness="5">
<ctrls:imagecolorpicker x:name="image" source="smilik.jpg" xmlns:ctrls="#unknown" />
</border>
<border grid.row="1" height="30" width="50">
HorizontalAlignment="Center"
BorderBrush="Black" BorderThickness="1" Margin="5">
<rectangle fill="{Binding ElementName=image, Path=SelectedColor,<br mode=" hold=" /> Converter={StaticResource colorToBrushConverter}}" />
</border>
</grid>
</page>
答
如果您使用的是Chrome浏览器,那么切换到IE会发生什么.请参阅: http://code.google.com/p/chromium/issues/detail?id= 4051 [^ ]
If you''re using Chrome as the browser what happens if you switch to IE. See: http://code.google.com/p/chromium/issues/detail?id=4051[^]