fix issue

This commit is contained in:
gaoyuan
2022-03-07 21:31:27 +08:00
parent c3718d9d6c
commit 4076b2c9ed
19 changed files with 114 additions and 29 deletions

View File

@ -1,14 +1,22 @@
using Billing.Themes;
using System;
using Billing.Themes;
using Xamarin.Forms;
namespace Billing.UI
{
public abstract class BillingPage : ContentPage
{
public event EventHandler Loaded;
public BillingPage()
{
SetDynamicResource(BackgroundColorProperty, BaseTheme.WindowBackgroundColor);
Shell.SetTabBarIsVisible(this, false);
}
public virtual void OnLoaded()
{
Loaded?.Invoke(this, EventArgs.Empty);
}
}
}

View File

@ -1,5 +1,6 @@
using Billing.Themes;
using System;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace Billing.UI
@ -377,7 +378,17 @@ namespace Billing.UI
set => SetValue(PlaceholderProperty, value);
}
protected override View Content => new OptionEditor
OptionEditor editor;
public void SetFocus()
{
if (editor != null)
{
editor.Focus();
}
}
protected override View Content => editor = new OptionEditor
{
HorizontalOptions = LayoutOptions.Fill,
VerticalOptions = LayoutOptions.Fill