Skip to content

Commit

Permalink
feat: making NavigationName property public
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Apr 5, 2024
1 parent 5f6b707 commit b102560
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Maui/Prism.Maui/Mvvm/ViewModelLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ private static void OnViewModelLocatorBehaviorChanged(BindableObject bindable, o
null,
propertyChanged: OnViewModelPropertyChanged);

internal static readonly BindableProperty NavigationNameProperty =
public static readonly BindableProperty NavigationNameProperty =
BindableProperty.CreateAttached("NavigationName", typeof(string), typeof(ViewModelLocator), null);

internal static string GetNavigationName(BindableObject bindable) =>
public static string GetNavigationName(BindableObject bindable) =>
(string)bindable.GetValue(NavigationNameProperty);

internal static void SetNavigationName(BindableObject bindable, string name) =>
public static void SetNavigationName(BindableObject bindable, string name) =>
bindable.SetValue(NavigationNameProperty, name);

/// <summary>
Expand Down

0 comments on commit b102560

Please sign in to comment.