幫我這個轉換到WPF Silverlight的你會如何轉換這種WPF Silverlight的
我感興趣的,顯示瞭如何做一個魚眼效果(http://www.charlespetzold.com/blog/2009/05/Realizing-a-Fisheye-Effect-in-Silverlight.html)一查爾斯Petzold的C#示例。 XAML代碼示例在WPF中,但我想在Silverlight中嘗試此操作。
當我嘗試在Silverlight創建XAML代碼,編譯器會抱怨在兩個位置:
<Style TargetType="{x:Type Button}">
Error 1 The type 'x:Type' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
<Style.Triggers>
Error 2 The attachable property 'Triggers' was not found in type 'Style'.
如何將它轉換爲Silverlight的?
觸發器在Silverlight中受支持,而不在Style上。唯一不支持的觸發器是DataTrigger。 – 2011-12-30 01:37:36