admin管理员组

文章数量:1418305

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)

本文标签: