add account page layout
This commit is contained in:
@ -13,10 +13,10 @@ namespace Billing.UI
|
||||
|
||||
public static class ExtensionHelper
|
||||
{
|
||||
public static View Binding(this View view, BindableProperty property, string path, BindingMode mode = BindingMode.Default, IValueConverter converter = null)
|
||||
public static T Binding<T>(this T obj, BindableProperty property, string path, BindingMode mode = BindingMode.Default, IValueConverter converter = null) where T : BindableObject
|
||||
{
|
||||
view.SetBinding(property, path, mode, converter);
|
||||
return view;
|
||||
obj.SetBinding(property, path, mode, converter);
|
||||
return obj;
|
||||
}
|
||||
|
||||
public static View DynamicResource(this View view, BindableProperty property, string key)
|
||||
@ -36,6 +36,24 @@ namespace Billing.UI
|
||||
Grid.SetRow(view, row);
|
||||
return view;
|
||||
}
|
||||
|
||||
public static View GridColumnSpan(this View view, int columnSpan)
|
||||
{
|
||||
Grid.SetColumnSpan(view, columnSpan);
|
||||
return view;
|
||||
}
|
||||
|
||||
public static View GridRowSpan(this View view, int rowSpan)
|
||||
{
|
||||
Grid.SetRowSpan(view, rowSpan);
|
||||
return view;
|
||||
}
|
||||
|
||||
public static View Margin(this View view, Thickness margin)
|
||||
{
|
||||
view.Margin = margin;
|
||||
return view;
|
||||
}
|
||||
}
|
||||
|
||||
public class Tap : IDisposable
|
||||
|
Reference in New Issue
Block a user