【发布时间】:2017-03-24 03:10:26
【问题描述】:
我需要修改和自定义Xamarin中的Entry Control,但是我很难设置,或者更确切地说是找到声明Xamarin ios控件高度的方法。 我能怎么做 ?这是我的代码。
[assembly: ExportRenderer(typeof(MyEntry), typeof(MyEntryRenderer))]
namespace MyApplication.iOS
{
public class MyEntryRenderer : EntryRenderer
{
//CUSTOM entry RENDER IOS
protected override void OnElementChanged(ElementChangedEventArgs<Entry> e)
{
base.OnElementChanged(e);
if (Control != null)
{
Control.BackgroundColor = UIColor.FromRGB(43, 50, 58);
Control.TextColor = UIColor.FromRGB(255, 255, 255);
//Control.Height ???
}
}
}
}
【问题讨论】:
标签: ios xamarin xamarin.ios xamarin.forms controls