|
@@ -11,12 +11,25 @@
|
|
|
<local:EquipmentEditViewModel x:Name="_viewmodel" />
|
|
|
</mobile:MobilePage.BindingContext>
|
|
|
|
|
|
+ <mobile:MobilePage.Resources>
|
|
|
+ <mobile:BooleanToBooleanConverter x:Key="NotTrue" Invert="True" />
|
|
|
+ <mobile:IntToBooleanConverter x:Key="SpecPageVisible" Value="1" />
|
|
|
+ <mobile:IntToBooleanConverter x:Key="MapPageVisible" Value="2" />
|
|
|
+ <mobile:IntToBooleanConverter x:Key="ImagesPageVisible" Value="3" />
|
|
|
+ <mobile:BooleanMatcher x:Key="MatchAll" Type="All" />
|
|
|
+ </mobile:MobilePage.Resources>
|
|
|
+
|
|
|
<mobile:MobilePage.PrimaryMenu>
|
|
|
|
|
|
<mobile:MobileMenuButton
|
|
|
x:Name="_specsheet"
|
|
|
- IsVisible="False"
|
|
|
Image="camera">
|
|
|
+ <mobile:MobileMenuButton.IsVisible>
|
|
|
+ <MultiBinding Converter="{StaticResource MatchAll}">
|
|
|
+ <Binding Path="IsChanged" Converter="{StaticResource NotTrue}"/>
|
|
|
+ <Binding Source="{x:Reference _tabStrip}" Path="SelectedIndex" Converter="{StaticResource SpecPageVisible}" />
|
|
|
+ </MultiBinding>
|
|
|
+ </mobile:MobileMenuButton.IsVisible>
|
|
|
<mobile:MobileMenuButton.Items>
|
|
|
<mobile:MobileMenuItem Text="Take Photo" Clicked="_specsheetphoto_Clicked" />
|
|
|
<mobile:MobileMenuItem Text="Browse Library" Clicked="_specsheetlibrary_Clicked" />
|
|
@@ -25,14 +38,25 @@
|
|
|
|
|
|
<mobile:MobileMenuButton
|
|
|
x:Name="_maprefresh"
|
|
|
- IsVisible="False"
|
|
|
Image="refresh"
|
|
|
- Clicked="_maprefresh_OnClicked"/>
|
|
|
+ Clicked="_maprefresh_OnClicked">
|
|
|
+ <mobile:MobileMenuButton.IsVisible>
|
|
|
+ <MultiBinding Converter="{StaticResource MatchAll}">
|
|
|
+ <Binding Path="IsChanged" Converter="{StaticResource NotTrue}"/>
|
|
|
+ <Binding Source="{x:Reference _tabStrip}" Path="SelectedIndex" Converter="{StaticResource MapPageVisible}" />
|
|
|
+ </MultiBinding>
|
|
|
+ </mobile:MobileMenuButton.IsVisible>
|
|
|
+ </mobile:MobileMenuButton>
|
|
|
|
|
|
<mobile:MobileMenuButton
|
|
|
x:Name="_images"
|
|
|
- IsVisible="False"
|
|
|
Image="plus">
|
|
|
+ <mobile:MobileMenuButton.IsVisible>
|
|
|
+ <MultiBinding Converter="{StaticResource MatchAll}">
|
|
|
+ <Binding Path="IsChanged" Converter="{StaticResource NotTrue}"/>
|
|
|
+ <Binding Source="{x:Reference _tabStrip}" Path="SelectedIndex" Converter="{StaticResource ImagesPageVisible}" />
|
|
|
+ </MultiBinding>
|
|
|
+ </mobile:MobileMenuButton.IsVisible>
|
|
|
<mobile:MobileMenuButton.Items>
|
|
|
<mobile:MobileMenuItem Text="Take Photo" Clicked="_imagesphoto_Clicked" />
|
|
|
<mobile:MobileMenuItem Text="Browse Library" Clicked="_imageslibrary_Clicked" />
|