-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathTMDropDown.xaml
More file actions
49 lines (47 loc) · 2.03 KB
/
Copy pathTMDropDown.xaml
File metadata and controls
49 lines (47 loc) · 2.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Name="dropDown"
xmlns:local="clr-namespace:Trimble.Modus.Components"
xmlns:constants="clr-namespace:Trimble.Modus.Components.Constant"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
x:Class="Trimble.Modus.Components.TMDropDown"
xmlns:converters="clr-namespace:Trimble.Modus.Components.Converters">
<VerticalStackLayout BindingContext="{x:Reference dropDown}">
<local:ControlLabel TitleText="{Binding TitleText}"
IsRequired="{Binding IsRequired}"
IsVisible="{Binding TitleText, Converter={StaticResource IsStringNotNullOrEmptyConverter}}"/>
<Border x:Name="innerBorder"
HorizontalOptions="Fill"
StrokeThickness="2"
VerticalOptions="Center"
Padding="0">
<Border.StrokeShape>
<RoundRectangle CornerRadius="4" />
</Border.StrokeShape>
<Border.GestureRecognizers>
<TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped" />
</Border.GestureRecognizers>
<Grid x:Name="ContentLayout"
ColumnDefinitions="*,auto"
HeightRequest="48"
Padding="12,0"
HorizontalOptions="Fill"
VerticalOptions="Center">
<Label x:Name="label"
FontSize="16"
Grid.Column="0"
HorizontalTextAlignment="Start"
FontFamily="OpenSansSemibold"
VerticalOptions="Center" />
<Image x:Name="indicatorButton"
Source="{Static constants:ImageConstants.ChevronDownIconWhite}"
HorizontalOptions="End"
VerticalOptions="Center"
Grid.Column="1"
HeightRequest="32"
WidthRequest="32" />
</Grid>
</Border>
</VerticalStackLayout>
</ContentView>