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)
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745283482a4620418.html
评论列表(0条)