Skip to content

Commit 39b2e12

Browse files
Control Label WordWrap Issue fixed
1 parent 82b1ff3 commit 39b2e12

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

Trimble.Modus.Components/Controls/Label/ControlLabel.xaml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,25 @@
55
xmlns:local="clr-namespace:Trimble.Modus.Components;assembly=Trimble.Modus.Components"
66
x:Class="Trimble.Modus.Components.ControlLabel"
77
x:Name="controlLabelView">
8-
<Grid x:Name="view"
9-
BindingContext="{x:Reference controlLabelView}"
10-
ColumnSpacing="6"
11-
ColumnDefinitions="auto,auto"
12-
IsVisible="{Binding TitleText,Converter={StaticResource IsStringNotNullOrEmptyConverter}}">
8+
<Grid x:Name="view"
9+
BindingContext="{x:Reference controlLabelView}"
10+
ColumnSpacing="6"
11+
ColumnDefinitions="*,Auto" HorizontalOptions="Start"
12+
IsVisible="{Binding TitleText,Converter={StaticResource IsStringNotNullOrEmptyConverter}}">
1313
<Label x:Name="inputLabel"
14-
Padding="0,0,0,5"
15-
Grid.Column="0"
16-
FontFamily="OpenSansSemibold"
17-
Text="{Binding TitleText}"
18-
VerticalOptions="Center"
19-
LineBreakMode="WordWrap"
20-
HorizontalOptions="Start" />
14+
Padding="0,0,0,5"
15+
Grid.Column="0"
16+
FontFamily="OpenSansSemibold"
17+
Text="{Binding TitleText}"
18+
VerticalOptions="Center"
19+
LineBreakMode="WordWrap"
20+
HorizontalOptions="Start" />
2121
<Label Text="*"
22-
Grid.Column="1"
23-
IsVisible="{Binding IsRequired}"
24-
FontFamily="OpenSansSemibold"
25-
TextColor="{DynamicResource Danger}" />
22+
Grid.Column="1"
23+
IsVisible="{Binding IsRequired}"
24+
FontFamily="OpenSansSemibold"
25+
HorizontalOptions="Start"
26+
VerticalOptions="Center"
27+
TextColor="{DynamicResource Danger}" />
2628
</Grid>
2729
</ContentView>

0 commit comments

Comments
 (0)