Ooui: Binding does not work
I tried to get a simple example running. I installed the latest nuget versions. However, binding a label to a property does not work.
<ContentPage.BindingContext>
<vm:MainViewModel />
</ContentPage.BindingContext>
<Label Text="{Binding Path=Test, Mode=OneWay}"
VerticalOptions="CenterAndExpand"
HorizontalOptions="CenterAndExpand" />
public class MainViewModel : ViewModelBase
{
private string _test = "Hello Ooui";
public string Test
{
get { return _test; }
set { Set(ref _test, value); }
}
}
As you can see nothing special. If I remove the Path and just call Binding I can see that the BindingContext has an instance of MainViewModel.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (4 by maintainers)
I listen to all of mergeconflict 😃
@rockfordlhotka make sure to clear your browser cache from time to time. Chrome for instance is very aggressive and you might get out of sync assemblies when doing development.
So far it sounds like the linker is to blame. Investigating…
I am seeing where binding doesn’t work either. My simple test was working, then stopped for no apparent reason, and now I can’t get it working again. So there’s something odd going on for sure!
You should listen to: http://www.mergeconflict.fm/89 we talk about it as well 😃
SECURITY, REMOVE THIS MAN AND REVOKE HIS BROGRAMMER CARD!!! 🤣
But then I have to do
<shenanigan>server web stuff</shenanigan>😃 But for real. I 'm excited about the wasm runtime and wanted to see if I can build an App with this. It feels like Silverlight (sorry that I used the S word) reborn.