<Application.Resources>
<syncTheme:SyncfusionThemeDictionary>
<syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
<ResourceDictionary>
<x:String x:Key="SfTextInputLayoutTheme">CustomTheme</x:String>
<Color x:Key="SfTextInputLayoutHintColor">Red</Color>
<Color x:Key="SyncPrimaryLightColor">Red</Color>
</ResourceDictionary>
</syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
</syncTheme:SyncfusionThemeDictionary>
</Application.Resources> |
Hi,
What if I want to set for specific control?
For example if I have two SfTextInputLayout, TextBoxSigninEmailAddress and TextBoxSigninMobile:
<SyncfusionInputLayout:SfTextInputLayout HeightRequest="60" Hint="Email Address" ContainerType="Outlined">
<Entry x:Name="TextBoxSigninEmailAddress" IsTextPredictionEnabled="False" Keyboard="Email" FlowDirection="LeftToRight" HorizontalTextAlignment="Center" />
</SyncfusionInputLayout:SfTextInputLayout>
<SyncfusionInputLayout:SfTextInputLayout HeightRequest="60" Hint="Email Address" ContainerType="Outlined">
<Entry x:Name="TextBoxSigninMobile" IsTextPredictionEnabled="False" Keyboard="Number" FlowDirection="LeftToRight" HorizontalTextAlignment="Center" />
</SyncfusionInputLayout:SfTextInputLayout>
and I want to set the color of TextBoxSigninEmailAddress's Hint to Red but TextBoxSigninMobile to Black because TextBoxSigninEmailAddress is a Required field.
Also, the TextBoxSigninMobile will be Blackin Light and White in Dark
Kindly help..
Thanks
Jassim
<SyncfusionInputLayout:SfTextInputLayout HeightRequest="60"
Hint="Email Address"
ContainerType="Outlined">
<SyncfusionInputLayout:SfTextInputLayout.HintLabelStyle>
<SyncfusionInputLayout:LabelStyle Color="Red"
FontSize="16"/>
</SyncfusionInputLayout:SfTextInputLayout.HintLabelStyle>
<Entry x:Name="TextBoxSigninEmailAddress"
IsTextPredictionEnabled="False"
Keyboard="Email"
FlowDirection="LeftToRight"
HorizontalTextAlignment="Center" />
</SyncfusionInputLayout:SfTextInputLayout> |