c# - SearchBar Renderer Changes not applying -
using uikit; using xamarin.forms; using xamarin.forms.platform.ios; [assembly: exportrenderer(typeof(searchbar), typeof(rci.ios.searchbarrenderer))] namespace rci.ios { public class searchbarrenderer : xamarin.forms.platform.ios.searchbarrenderer { protected override void onelementchanged(elementchangedeventargs<searchbar> e) { if(control != null) { control.text = "help me!"; control.layer.cornerradius = 0; control.tintcolor = uikit.uicolor.white; control.setpositionadjustmentforsearchbaricon(uioffset.zero, uisearchbaricon.search); } base.onelementchanged(e); } } } i trying create custom renderer search bar. working xamarin.forms ios , have made renderers project. reason can not these changes apply searchbar.
Comments
Post a Comment