最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Uno platform 5 and x:Bind throws Cannot resolve type "http:schemas.microsoft.comwinfx2009xaml:Bind" - Stack Ov

programmeradmin0浏览0评论

I'm creting as new multiplatform app with uno platform 5 and net9, I modified the example given and worked ok with static values, but when I tried to use x:Bind throw this error:

Cannot resolve type ":Bind".

My code:

<ContentView xmlns=";
             xmlns:x=";
             x:Class="MauiControls.MyControl"
             x:Name="contentView">
  <VerticalStackLayout ...>
    <Label Text="{x:Bind Name}"/>
    ...

Using Binding works ok {Binding Name, Source = {x:Reference contentView}}, but I would like to use x:Bind due execution improvements and the strong types, also here says that Uno supports x:Bind /docs/articles/features/windows-ui-xaml-xbind.html.



Windows 11
Visual studio 17.12.4
net 9.0.102
Uno.Sdk 5.6.20
Uno Platform Check v1.28.3.0 (all ok)

发布评论

评论列表(0)

  1. 暂无评论