You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Example: if you wanted to have a custom control called "NewsTickerView" with a viewmodel "NewsTickerViewModel". You may want this view to load its own news data so it can be individually unit tested. This view could then be embedded into multiple pages throughout your app without your other viewmodels needing to be coupled to your news ticker.
Describe the solution you'd like
Use the markup extension to register a binding context for controls on a page? How would navigation events get called for these nested controls?
Describe alternatives you've considered
N/A
Proposed APIs
<?xml version="1.0" encoding="utf-8" ?>
<ContentPagex:Class="DemoApp.Views.ChangeUsernamePage"xmlns="http://schemas.microsoft.com/dotnet/2021/maui"xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"xmlns:burkus="http://burkus.co.uk"xmlns:vm="clr-namespace:DemoApp.ViewModels"xmlns:views="clr-namespace:DemoApp.Views"x:DataType="vm:ChangeUsernameViewModel"BindingContext="{burkus:ResolveBindingContext x:TypeArguments=vm:ChangeUsernameViewModel}">
<ScrollView>
<!-- Nested control with a viewmodel that gets resolved -->
<views:NestedViewBindingContext="{burkus:ResolveBindingContext x:TypeArguments=vm:NestedViewModel}" />
</ScrollView>
</ContentPage>
Additional context
N/A
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Example: if you wanted to have a custom control called "NewsTickerView" with a viewmodel "NewsTickerViewModel". You may want this view to load its own news data so it can be individually unit tested. This view could then be embedded into multiple pages throughout your app without your other viewmodels needing to be coupled to your news ticker.
Describe the solution you'd like
Use the markup extension to register a binding context for controls on a page? How would navigation events get called for these nested controls?
Describe alternatives you've considered
N/A
Proposed APIs
Additional context
N/A
The text was updated successfully, but these errors were encountered: