2022-09-16 11:19:46 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2022-08-30 15:42:25 +02:00
|
|
|
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
2024-04-09 12:53:23 +02:00
|
|
|
x:Class="SharedGui.View.BarLevelView">
|
2022-08-30 15:42:25 +02:00
|
|
|
<ContentView.Content>
|
|
|
|
<StackLayout>
|
|
|
|
<!-- Nice battery images symbolizing filling level for batteries with 5 bars -->
|
|
|
|
<Image
|
|
|
|
x:Name="BarLevelImage"
|
2023-08-31 12:20:06 +02:00
|
|
|
WidthRequest="60"
|
|
|
|
HeightRequest="36"
|
2022-09-16 11:19:46 +02:00
|
|
|
Aspect="AspectFit"
|
2022-12-07 16:54:52 +01:00
|
|
|
HorizontalOptions="CenterAndExpand"
|
2022-08-30 15:42:25 +02:00
|
|
|
IsVisible="{Binding IsBatteryChargeLevelImageVisible}"
|
|
|
|
Source="{Binding BatteryChargeLevelImageSourceString}"/>
|
|
|
|
<!-- Text describing filling level batteries with 1...4 and 6..N bars -->
|
|
|
|
<Label
|
|
|
|
x:Name="BarLevelLabel"
|
2022-12-07 16:54:52 +01:00
|
|
|
HorizontalOptions="CenterAndExpand"
|
2022-08-30 15:42:25 +02:00
|
|
|
Text="{Binding BatteryChargeLevelBarsText}"
|
|
|
|
IsVisible="{Binding IsBatteryChargeLevelLabelVisible}"/>
|
|
|
|
</StackLayout>
|
|
|
|
</ContentView.Content>
|
2022-09-16 11:19:46 +02:00
|
|
|
</ContentView>
|