Skip to content

Commit 419d717

Browse files
authored
Merge pull request #107 from FmgLib/101-new-features
Bindablelayout extension fixes.
2 parents b203a4f + 8849509 commit 419d717

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

libs/FmgLib.MauiMarkup/Extensions/BindableLayoutExtensions.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,54 +7,54 @@ public static class BindableLayoutExtensions
77
{
88
public static T FlexAlignSelf<T>(this T view, FlexAlignSelf value) where T : View
99
{
10-
FlexLayout.SetAlignSelf((BindableObject)view, value);
10+
FlexLayout.SetAlignSelf(view, value);
1111
return view;
1212
}
1313

1414
public static T FlexBasis<T>(this T view, FlexBasis value) where T : View
1515
{
16-
FlexLayout.SetBasis((BindableObject)view, value);
16+
FlexLayout.SetBasis(view, value);
1717
return view;
1818
}
1919

2020
public static T FlexOrder<T>(this T view, int value) where T : View
2121
{
22-
FlexLayout.SetOrder((BindableObject)view, value);
22+
FlexLayout.SetOrder(view, value);
2323
return view;
2424
}
2525

2626
public static T FlexGrow<T>(this T view, float value) where T : View
2727
{
28-
FlexLayout.SetGrow((BindableObject)view, value);
28+
FlexLayout.SetGrow(view, value);
2929
return view;
3030
}
3131

3232
public static T FlexShrink<T>(this T view, float value) where T : View
3333
{
34-
FlexLayout.SetShrink((BindableObject)view, value);
34+
FlexLayout.SetShrink(view, value);
3535
return view;
3636
}
3737

38-
public static T EmptyViewTemplates<T>(this T layout, DataTemplate template) where T : BindableObject, Microsoft.Maui.ILayout
38+
public static T BindableLayoutEmptyViewTemplate<T>(this T layout, DataTemplate template) where T : BindableObject, Microsoft.Maui.ILayout
3939
{
4040
BindableLayout.SetEmptyViewTemplate(layout, template);
4141
return layout;
4242
}
4343

44-
public static T ItemsSources<T>(this T layout, IEnumerable source) where T : BindableObject, Microsoft.Maui.ILayout
44+
public static T BindableLayoutItemsSource<T>(this T layout, IEnumerable source) where T : BindableObject, Microsoft.Maui.ILayout
4545
{
4646
BindableLayout.SetItemsSource(layout, source);
4747
return layout;
4848
}
4949

50-
public static T ItemsSources<T>(this T layout, Func<PropertyContext<IEnumerable>, IPropertyBuilder<IEnumerable>> configure) where T : BindableObject, Microsoft.Maui.ILayout
50+
public static T BindableLayoutItemsSource<T>(this T layout, Func<PropertyContext<IEnumerable>, IPropertyBuilder<IEnumerable>> configure) where T : BindableObject, Microsoft.Maui.ILayout
5151
{
5252
var context = new PropertyContext<IEnumerable>(layout, BindableLayout.ItemsSourceProperty);
5353
configure(context).Build();
5454
return layout;
5555
}
5656

57-
public static T ItemTemplates<T>(this T layout, DataTemplate template) where T : BindableObject, Microsoft.Maui.ILayout
57+
public static T BindableLayoutItemTemplate<T>(this T layout, DataTemplate template) where T : BindableObject, Microsoft.Maui.ILayout
5858
{
5959
BindableLayout.SetItemTemplate(layout, template);
6060
return layout;

libs/FmgLib.MauiMarkup/FmgLib.MauiMarkup.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<PackageId>FmgLib.MauiMarkup</PackageId>
1212
<Summary>FmgLib.MauiMarkup with C# Markup classes and fluent helper methods</Summary>
1313
<Title>FmgLib.MauiMarkup</Title>
14-
<Version>8.6.4</Version>
14+
<Version>8.6.5</Version>
1515
<Authors>FmgYazılım</Authors>
1616
<Company>Fmg Yazılım</Company>
1717
<Copyright>©2024</Copyright>

0 commit comments

Comments
 (0)