Skip to content

Commit

Permalink
document and attachedProp fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
gonultasmf committed Aug 13, 2024
1 parent 646186c commit 45a686e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions libs/FmgLib.MauiMarkup/Extensions/PageExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -861,63 +861,63 @@ public static Color GetShellTabBarUnselectedColorValue<T>(this T self)
}


public static T HasNavigationBar<T>(this T self,
public static T NavigationPageHasNavigationBar<T>(this T self,
bool hasNavigationBar)
where T : Microsoft.Maui.Controls.Page
{
self.SetValue(Microsoft.Maui.Controls.NavigationPage.HasNavigationBarProperty, hasNavigationBar);
return self;
}

public static T HasNavigationBar<T>(this T self, Func<PropertyContext<bool>, IPropertyBuilder<bool>> configure)
public static T NavigationPageHasNavigationBar<T>(this T self, Func<PropertyContext<bool>, IPropertyBuilder<bool>> configure)
where T : Microsoft.Maui.Controls.Page
{
var context = new PropertyContext<bool>(self, Microsoft.Maui.Controls.NavigationPage.HasNavigationBarProperty);
configure(context).Build();
return self;
}

public static SettersContext<T> HasNavigationBar<T>(this SettersContext<T> self,
public static SettersContext<T> NavigationPageHasNavigationBar<T>(this SettersContext<T> self,
bool hasNavigationBar)
where T : Microsoft.Maui.Controls.Page
{
self.XamlSetters.Add(new Setter { Property = Microsoft.Maui.Controls.NavigationPage.HasNavigationBarProperty, Value = hasNavigationBar });
return self;
}

public static SettersContext<T> HasNavigationBar<T>(this SettersContext<T> self, Func<PropertySettersContext<bool>, IPropertySettersBuilder<bool>> configure)
public static SettersContext<T> NavigationPageHasNavigationBar<T>(this SettersContext<T> self, Func<PropertySettersContext<bool>, IPropertySettersBuilder<bool>> configure)
where T : Microsoft.Maui.Controls.Page
{
var context = new PropertySettersContext<bool>(self.XamlSetters, Microsoft.Maui.Controls.NavigationPage.HasNavigationBarProperty);
configure(context).Build();
return self;
}

public static T BackButtonTitle<T>(this T self,
public static T NavigationPageBackButtonTitle<T>(this T self,
string backButtonTitle)
where T : Microsoft.Maui.Controls.Page
{
self.SetValue(Microsoft.Maui.Controls.NavigationPage.BackButtonTitleProperty, backButtonTitle);
return self;
}

public static T BackButtonTitle<T>(this T self, Func<PropertyContext<string>, IPropertyBuilder<string>> configure)
public static T NavigationPageBackButtonTitle<T>(this T self, Func<PropertyContext<string>, IPropertyBuilder<string>> configure)
where T : Microsoft.Maui.Controls.Page
{
var context = new PropertyContext<string>(self, Microsoft.Maui.Controls.NavigationPage.BackButtonTitleProperty);
configure(context).Build();
return self;
}

public static SettersContext<T> BackButtonTitle<T>(this SettersContext<T> self,
public static SettersContext<T> NavigationPageBackButtonTitle<T>(this SettersContext<T> self,
string backButtonTitle)
where T : Microsoft.Maui.Controls.Page
{
self.XamlSetters.Add(new Setter { Property = Microsoft.Maui.Controls.NavigationPage.BackButtonTitleProperty, Value = backButtonTitle });
return self;
}

public static SettersContext<T> BackButtonTitle<T>(this SettersContext<T> self, Func<PropertySettersContext<string>, IPropertySettersBuilder<string>> configure)
public static SettersContext<T> NavigationPageBackButtonTitle<T>(this SettersContext<T> self, Func<PropertySettersContext<string>, IPropertySettersBuilder<string>> configure)
where T : Microsoft.Maui.Controls.Page
{
var context = new PropertySettersContext<string>(self.XamlSetters, Microsoft.Maui.Controls.NavigationPage.BackButtonTitleProperty);
Expand Down
2 changes: 1 addition & 1 deletion libs/FmgLib.MauiMarkup/FmgLib.MauiMarkup.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageId>FmgLib.MauiMarkup</PackageId>
<Summary>FmgLib.MauiMarkup with C# Markup classes and fluent helper methods</Summary>
<Title>FmgLib.MauiMarkup</Title>
<Version>8.6.3</Version>
<Version>8.6.4</Version>
<Authors>FmgYazılım</Authors>
<Company>Fmg Yazılım</Company>
<Copyright>©2024</Copyright>
Expand Down
2 changes: 1 addition & 1 deletion libs/FmgLib.MauiMarkup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ The usage of the AttachedProperty in the Button class will be as follows:
new Button()
.Text("Login")
.FontAttributes(Bold)
.IsSubmitButton(true)
.FormViewIsSubmitButton(true)
```


Expand Down

0 comments on commit 45a686e

Please sign in to comment.