-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Shell,TitleView, Android] TitleView Bindings does not work with Android #5650
Comments
It seems like Android have problem with any type of binding. Button commands also don't work with Android in Xamarin.Forms 4. |
…out (xamarin#5934) fixes xamarin#5650 fixes xamarin#5501 * propagate bindingcontext * - add exception message and fix poorly named xaml file * add ui test automation * - fix unit test to represent new code * - changed from ui test to unit test * - propagate visual, parent, bc to titleview * - style fixes
I have problem with binding in TitleView on ios (didn't test it on android) v.4.1.0.581479 |
I am seeing this issue again in the latest Maui dotnet 8 Preview 7 release. Doesn't work on Android or Windows. |
@DaveNatalieTripArc can you log an issue in the MAUI Repository? I just tested locally against |
Maybe I misunderstood this issue. I am trying to have my App Shell bind to the title specified in the Content Page. Something like this.
Is this possible? |
you'd need to set the bindingcontext of the page to the contentpage itself or use a bindingpath to the ContentPage https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/data-binding/binding-path |
That's what's not working in Preview 7. I don't know if it worked in previous versions. Here's what I tried.
I apologize, I simplified my example above to show what I want to accomplish, and not my actual code that wasn't working. |
CurrentPage isn't a bindable property |
You said I should "use a bindingpath to the ContentPage" What Path could I use that would get the me Title from the CurrentPage? |
Description
The Text Property of Label.Text does not bind with ViewModel property in Android. Although it work if I do x:Reference with the page.
Steps to Reproduce
Expected Behavior
the Text should display on iOS and Android
Actual Behavior
Text does not display on Android navigation bar.
Basic Information
###Don't Work
Work
The text was updated successfully, but these errors were encountered: