AppShell.xaml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <Shell
  3. x:Class="Minolta_Remote.AppShell"
  4. xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
  5. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  6. xmlns:local="clr-namespace:Minolta_Remote"
  7. Shell.FlyoutBehavior="Disabled"
  8. Title="Minolta Remote"
  9. Shell.NavBarIsVisible="True"
  10. Shell.TabBarBackgroundColor="#121212"
  11. Shell.TabBarForegroundColor="#FFFFFF"
  12. Shell.TabBarTitleColor="#FFFFFF"
  13. Shell.TabBarDisabledColor="#666666">
  14. <Shell.Resources>
  15. <!-- Shared camera logic instance -->
  16. <local:CameraLogic x:Key="CameraLogic" />
  17. <!-- Tab text styling -->
  18. <Style TargetType="TabBar">
  19. <Setter Property="Shell.TabBarTitleColor" Value="#FFFFFF" />
  20. <Setter Property="Shell.TabBarForegroundColor" Value="#FFFFFF" />
  21. <Setter Property="Shell.TabBarBackgroundColor" Value="#121212" />
  22. </Style>
  23. <!-- Slightly larger, bold tab titles -->
  24. <Style TargetType="Tab">
  25. <Setter Property="Shell.TabBarForegroundColor" Value="#FFFFFF" />
  26. <Setter Property="Shell.TabBarTitleColor" Value="#FFFFFF" />
  27. <Setter Property="Shell.TitleView">
  28. <Setter.Value>
  29. <Grid Padding="0,6">
  30. <Label
  31. Text="{Binding Title, Source={RelativeSource AncestorType={x:Type Tab}}}"
  32. FontAttributes="Bold"
  33. FontSize="14"
  34. TextColor="#FFFFFF"
  35. HorizontalTextAlignment="Center"
  36. VerticalTextAlignment="Center" />
  37. </Grid>
  38. </Setter.Value>
  39. </Setter>
  40. </Style>
  41. </Shell.Resources>
  42. <Tab Title="Auto Mode">
  43. <ShellContent
  44. Title="Auto Mode"
  45. ContentTemplate="{DataTemplate local:MainPage}"
  46. Route="AutoMode" />
  47. </Tab>
  48. <Tab Title="Bulb Mode">
  49. <ShellContent
  50. Title="Bulb Mode"
  51. ContentTemplate="{DataTemplate local:ProTab}"
  52. Route="BulbMode" />
  53. </Tab>
  54. <Tab Title="TimeLapse Mode">
  55. <ShellContent
  56. Title="TimeLapse Mode"
  57. ContentTemplate="{DataTemplate local:TimelapsePage}"
  58. Route="TimeLapseMode" />
  59. </Tab>
  60. </Shell>