-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add the BindingContext property to the Window TitleBar and inherit its value from the Window's BindingContext #24831
Comments
I'm trying to bind the SearchBar, hosted in the TitleBar, to a property and command in the ViewModel. |
Hello! The |
Still the BindingContext is set separately for the TitleBar. Is that the recommended approach? I've defined the TitleBar in XAML as part of the Window definition. I'm assigning the Window BindingContext, which is not passed on to the TitleBar. The child control is supposed to inherit the parent's BindingContext. Will upload and share the sample by tomorrow. |
Description
Adding a BindingContext property to the Window TitleBar is essential, as it facilitates the binding of properties and commands of the controls hosted within it to a ViewModel instance.
Public API Changes
Add the BindingContext property to the Window TitleBar and inherit its value from the Window's BindingContext.
Intended Use-Case
To manage the properties and commands of the controls hosted within the Window TitleBar from the ViewModel.
The text was updated successfully, but these errors were encountered: