Skip to content

Commit 7300e37

Browse files
authored
Merge pull request #110 from FmgLib/106-new-fixes
106 new fixes
2 parents edc5e54 + 1d3e53f commit 7300e37

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

libs/FmgLib.MauiMarkup/Extensions/BindableLayoutExtensions.cs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,19 @@ public static T FlexShrink<T>(this T view, float value) where T : View
3535
return view;
3636
}
3737

38+
public static T BindableLayoutEmptyView<T>(this T layout, IEnumerable source) where T : BindableObject, Microsoft.Maui.ILayout
39+
{
40+
BindableLayout.SetEmptyView(layout, source);
41+
return layout;
42+
}
43+
44+
public static T BindableLayoutEmptyView<T>(this T layout, Func<PropertyContext<IEnumerable>, IPropertyBuilder<IEnumerable>> configure) where T : BindableObject, Microsoft.Maui.ILayout
45+
{
46+
var context = new PropertyContext<IEnumerable>(layout, BindableLayout.EmptyViewProperty);
47+
configure(context).Build();
48+
return layout;
49+
}
50+
3851
public static T BindableLayoutEmptyViewTemplate<T>(this T layout, DataTemplate template) where T : BindableObject, Microsoft.Maui.ILayout
3952
{
4053
BindableLayout.SetEmptyViewTemplate(layout, template);
@@ -59,4 +72,10 @@ public static T BindableLayoutItemTemplate<T>(this T layout, DataTemplate templa
5972
BindableLayout.SetItemTemplate(layout, template);
6073
return layout;
6174
}
75+
76+
public static T BindableItemTemplateSelector<T>(this T layout, DataTemplateSelector templateSelector) where T : BindableObject, Microsoft.Maui.ILayout
77+
{
78+
BindableLayout.SetItemTemplateSelector(layout, templateSelector);
79+
return layout;
80+
}
6281
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace FmgLib.MauiMarkup;
2+
3+
public static partial class ToolTipPropertiesExtension
4+
{
5+
public static T ToolTipPropertiesText<T>(this T view, string text) where T : View
6+
{
7+
ToolTipProperties.SetText(view, text);
8+
9+
return view;
10+
}
11+
}

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.5</Version>
14+
<Version>8.6.6</Version>
1515
<Authors>FmgYazılım</Authors>
1616
<Company>Fmg Yazılım</Company>
1717
<Copyright>©2024</Copyright>

0 commit comments

Comments
 (0)