mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-22 23:26:31 +01:00
46 lines
1.6 KiB
Text
46 lines
1.6 KiB
Text
|
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||
|
x:Class="ShareeSharedGuiLib.View.TogglePasswordEntry"
|
||
|
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
|
||
|
x:Name="root">
|
||
|
<ContentView.Content>
|
||
|
<Grid BindingContext="{x:Reference root}">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="*"/>
|
||
|
<ColumnDefinition Width="20"/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Entry Placeholder="{Binding Placeholder}"
|
||
|
IsPassword="{Binding HidePassword}"
|
||
|
Text="{Binding Text}"/>
|
||
|
<ImageButton Clicked="OnImageButtonClicked"
|
||
|
BackgroundColor="Transparent"
|
||
|
Grid.Column="1">
|
||
|
<ImageButton.Triggers>
|
||
|
<DataTrigger TargetType="ImageButton"
|
||
|
Binding="{Binding HidePassword}"
|
||
|
Value="True">
|
||
|
<Setter Property="Source">
|
||
|
<Setter.Value>
|
||
|
<FontImageSource Glyph="{StaticResource EyeOpen}"
|
||
|
Color="{Binding HidePasswordColor}"
|
||
|
FontFamily="FA-S" />
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</DataTrigger>
|
||
|
<DataTrigger TargetType="ImageButton"
|
||
|
Binding="{Binding HidePassword}"
|
||
|
Value="False">
|
||
|
<Setter Property="Source">
|
||
|
<Setter.Value>
|
||
|
<FontImageSource Glyph="{StaticResource EyeClose}"
|
||
|
Color="{Binding HidePasswordColor}"
|
||
|
FontFamily="FA-S" />
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</DataTrigger>
|
||
|
</ImageButton.Triggers>
|
||
|
</ImageButton>
|
||
|
</Grid>
|
||
|
</ContentView.Content>
|
||
|
</ContentView>
|