protected override MDCButton CreateNativeControl() { // https://material.io/components/buttons/ios#text-button // https://material.io/develop/ios/components/theming var containerScheme = new ContainerScheme(); var button = new MDCButton(); button.ApplyTextThemeWithScheme(containerScheme); return(button); }
protected override void OnElementChanged(ElementChangedEventArgs <ProgressBar> e) { _colorScheme?.Dispose(); _colorScheme = CreateSemanticColorScheme(); _containerScheme?.Dispose(); _containerScheme = new ContainerScheme(); base.OnElementChanged(e); if (e.NewElement != null) { if (Control == null) { _defaultColorScheme = CreateSemanticColorScheme(); SetNativeControl(CreateNativeControl()); } UpdateProgressColor(); UpdateProgress(); ApplyTheme(); } }
public MaterialTextField(IMaterialEntryRenderer element, IFontElement fontElement) { ContainerScheme = new ContainerScheme(); MaterialTextManager.Init(element, this, fontElement); }