Unified naming
This commit is contained in:
Родитель
aa133f2954
Коммит
b20e136fb8
|
@ -1,8 +1,8 @@
|
|||
using System;
|
||||
using Xamarin.Forms;
|
||||
using FButton = Xamarin.Forms.Button;
|
||||
using FControlType = Xamarin.Forms.Button;
|
||||
namespace HotForms {
|
||||
public class Button : BaseControl<FButton> {
|
||||
public class Button : BaseControl<FControlType> {
|
||||
public string Text {
|
||||
get => FormsControl.Text;
|
||||
set => FormsControl.Text = value;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using FControl = Xamarin.Forms.Image;
|
||||
using FControlType = Xamarin.Forms.Image;
|
||||
namespace HotForms {
|
||||
public class Image : BaseControl<FControl> {
|
||||
public class Image : BaseControl<FControlType> {
|
||||
string source;
|
||||
public string Source {
|
||||
get => source;
|
||||
|
@ -13,7 +13,7 @@ namespace HotForms {
|
|||
ImageSource = null;
|
||||
}
|
||||
object s = source;
|
||||
var successs = HotForms.Internal.BindingExpression.TryConvert (ref s, FControl.SourceProperty, typeof (Xamarin.Forms.ImageSource), true);
|
||||
var successs = HotForms.Internal.BindingExpression.TryConvert (ref s, FControlType.SourceProperty, typeof (Xamarin.Forms.ImageSource), true);
|
||||
if (successs)
|
||||
ImageSource = (Xamarin.Forms.ImageSource)s;
|
||||
else
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using FControl = Xamarin.Forms.Label;
|
||||
using FControlType = Xamarin.Forms.Label;
|
||||
namespace HotForms {
|
||||
public class Label : BaseControl<FControl> {
|
||||
public class Label : BaseControl<FControlType> {
|
||||
public string Text {
|
||||
get => FormsControl.Text;
|
||||
set => FormsControl.Text = value;
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Xamarin.Forms;
|
||||
|
||||
using FControlType = Xamarin.Forms.StackLayout;
|
||||
namespace HotForms {
|
||||
|
||||
|
||||
public class Stack : BaseControl<StackLayout>, IEnumerable, IEnumerable<View> {
|
||||
public class Stack : BaseControl<FControlType>, IEnumerable, IEnumerable<View> {
|
||||
|
||||
public IEnumerator<View> GetEnumerator () => FormsControl.Children.GetEnumerator ();
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче