开发者

Can not locate x:Shared in wpf

开发者 https://www.devze.com 2023-01-20 02:30 出处:网络
Please look into this question. Issue with MVVM view first approach But 开发者_StackOverflowI\'m unable to find \"x:Shared\" attribute.here is the msdn link. it works in 3.5 also see below.

Please look into this question.

Issue with MVVM view first approach

But 开发者_StackOverflowI'm unable to find "x:Shared" attribute.


here is the msdn link. it works in 3.5 also see below.

From the Book WPF Unleased: Assuming the Conventional x Namespace Prefix. x:Shared --> Attribute on any element in a ResourceDictionary, but only works if XAML is compiled!

//ResourceDictionary
<ResourceDictionary xmlns:x="http://schema.microsoft.con/winfx/2006/xaml>
<Image x:Shared="False" x:Key="zoom" Height="21" Source="zoom.png" />
...
0

精彩评论

暂无评论...
验证码 换一张
取 消