|
@@ -6,9 +6,9 @@
|
|
xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
|
|
xmlns:mobile="clr-namespace:InABox.Mobile;assembly=InABox.Mobile.Shared"
|
|
x:Class="InABox.Mobile.MobileModuleList" >
|
|
x:Class="InABox.Mobile.MobileModuleList" >
|
|
|
|
|
|
- <ContentView.Resources>
|
|
|
|
- <mobile:BooleanToColorConverter x:Key="BooleanToColorConverter" TrueColor="LightSalmon" FalseColor="LightGoldenrodYellow"/>
|
|
|
|
- </ContentView.Resources>
|
|
|
|
|
|
+ <!-- <ContentView.Resources> -->
|
|
|
|
+ <!-- <mobile:BooleanToColorConverter x:Key="BooleanToColorConverter" TrueColor="LightSalmon" FalseColor="LightGoldenrodYellow"/> -->
|
|
|
|
+ <!-- </ContentView.Resources> -->
|
|
|
|
|
|
<ContentView.Content>
|
|
<ContentView.Content>
|
|
<mobile:MobileList
|
|
<mobile:MobileList
|
|
@@ -23,11 +23,12 @@
|
|
HorizontalOptions="FillAndExpand"
|
|
HorizontalOptions="FillAndExpand"
|
|
BorderColor="{Binding BorderColor}"
|
|
BorderColor="{Binding BorderColor}"
|
|
Margin="0,0,0,5"
|
|
Margin="0,0,0,5"
|
|
- BackgroundColor="{Binding AlertVisible, Converter={StaticResource BooleanToColorConverter}}"
|
|
|
|
|
|
+
|
|
Padding="5"
|
|
Padding="5"
|
|
HeightRequest="70"
|
|
HeightRequest="70"
|
|
Clicked="Module_Clicked"
|
|
Clicked="Module_Clicked"
|
|
IsEnabled="{Binding IsEnabled}">
|
|
IsEnabled="{Binding IsEnabled}">
|
|
|
|
+ <!-- BackgroundColor="{Binding AlertVisible, Converter={StaticResource BooleanToColorConverter}}" -->
|
|
<mobile:MobileCard.Triggers>
|
|
<mobile:MobileCard.Triggers>
|
|
<DataTrigger TargetType="mobile:MobileCard" Binding="{Binding IsEnabled}" Value="False">
|
|
<DataTrigger TargetType="mobile:MobileCard" Binding="{Binding IsEnabled}" Value="False">
|
|
<Setter Property="BackgroundColor" Value="Silver" />
|
|
<Setter Property="BackgroundColor" Value="Silver" />
|
|
@@ -35,6 +36,15 @@
|
|
<DataTrigger TargetType="mobile:MobileCard" Binding="{Binding IsEnabled}" Value="False">
|
|
<DataTrigger TargetType="mobile:MobileCard" Binding="{Binding IsEnabled}" Value="False">
|
|
<Setter Property="BorderColor" Value="Gray" />
|
|
<Setter Property="BorderColor" Value="Gray" />
|
|
</DataTrigger>
|
|
</DataTrigger>
|
|
|
|
+
|
|
|
|
+ <DataTrigger TargetType="mobile:MobileCard" Binding="{Binding AlertVisible}" Value="False">
|
|
|
|
+ <Setter Property="BackgroundColor" Value="LightGoldenrodYellow" />
|
|
|
|
+ </DataTrigger>
|
|
|
|
+
|
|
|
|
+ <DataTrigger TargetType="mobile:MobileCard" Binding="{Binding AlertVisible}" Value="True">
|
|
|
|
+ <Setter Property="BackgroundColor" Value="LightSalmon" />
|
|
|
|
+ </DataTrigger>
|
|
|
|
+
|
|
</mobile:MobileCard.Triggers>
|
|
</mobile:MobileCard.Triggers>
|
|
|
|
|
|
<Grid RowSpacing="0">
|
|
<Grid RowSpacing="0">
|