<ContentPage.Resources>
<syncTheme:SyncfusionThemeDictionary>
<syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
<ResourceDictionary>
<x:String x:Key="SfTextInputLayoutTheme">CustomTheme</x:String>
<Color x:Key="SfTextInputLayoutFilledLineDisabledColor">Blue</Color>
<Color x:Key="SfTextInputLayoutOutlinedLineDisabledColor">Blue</Color>
<Color x:Key="SfTextInputLayoutDisabledHintColor">Blue</Color>
<Color x:Key="SfTextInputLayoutFloatedHintDisabledColor">Blue</Color>
<Color x:Key="SfTextInputLayoutHelperTextDisabledColor">Blue</Color>
</ResourceDictionary>
</syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
</syncTheme:SyncfusionThemeDictionary>
</ContentPage.Resources> |
SyncfusionThemeDictionary syncfusionThemeDictionary = new SyncfusionThemeDictionary();
ResourceDictionary resourceDictionary = new ResourceDictionary();
resourceDictionnary.Add("SfTextInputLayoutTheme", "CustomTheme");
resourceDictionnary.Add("SfTextInputLayoutDisabledHintColor", "Blue");
resourceDictionnary.Add("SfTextInputLayoutFloatedHintDisabledColor", "Blue");
resourceDictionnary.Add("SfTextInputLayoutHelperTextDisabledColor", "Blue");
syncfusionThemeDictionary.MergedDictionaries.Add(resourceDictionnary);
myContentPage.Resources.Add(syncfusionThemeDictionary);
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:syncTheme="clr-namespace:Syncfusion.XForms.Themes;assembly=Syncfusion.Core.XForms" xmlns:inputLayout="clr-namespace:Syncfusion.XForms.TextInputLayout;assembly=Syncfusion.Core.XForms"
x:Class="GettingStarted.Page1">
<StackLayout>
<inputLayout:SfTextInputLayout x:Name="textinput"
ContainerType="Outlined"
IsEnabled="False"
HelperText="Enter your email address"
Hint="Email">
<Entry x:Name="entry" Text="Email" TextColor="Blue" />
</inputLayout:SfTextInputLayout>
</StackLayout>
</ContentPage> |
public partial class Page1 : ContentPage
{
public Page1()
{
SyncfusionThemeDictionary syncfusionThemeDictionary = new SyncfusionThemeDictionary();
ResourceDictionary resourceDictionnary = new ResourceDictionary();
resourceDictionnary.Add("SfTextInputLayoutTheme", "CustomTheme");
resourceDictionnary.Add("SfTextInputLayoutDisabledHintColor", "Blue");
resourceDictionnary.Add("SfTextInputLayoutFloatedHintDisabledColor", "Blue");
resourceDictionnary.Add("SfTextInputLayoutHelperTextDisabledColor", "Blue");
syncfusionThemeDictionary.MergedDictionaries.Add(resourceDictionnary);
this.Resources.Add(syncfusionThemeDictionary);
InitializeComponent();
}
} |