-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Top-level Self-binding DataContext in Page is not working #212
Comments
Thank you @Daoting for your report. Typically I bind the Text property of TextBox using <TextBox Text="{Binding FirstName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> Could you provide your code sample? (XAML and C# DataContext) It would help use understand and reproduce your issue. |
xaml:
Code:
Title's define:
It cannot load the ui that include text binding. Thanks @MatFillion . |
There may be an issue with self-DataContext binding. Can you try with a sub-object, or using |
Yes, sub-object, ElementName, x:Bind are ok. Only self-DataContext binding. |
I have tested this one with Android, everything there seems to work as expected now. I will test with the team on iOS as well. |
@morning4coffe-dev On iOS control appears and binding is working. |
Thanks @rajamatt! This is the same behavior I am seeing on WinUI and Android as well. Can we close @MartinZikmund? |
Yes, closing! |
I'm submitting a...
Current behavior
TextBox does not support text binding in iOS. UI is no response when include text binding.
<TextBox Text="{Binding Title}" />
Expected behavior
Minimal reproduction of the problem with instructions
Environment
The text was updated successfully, but these errors were encountered: