AppShell.xaml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. >
  15. <Shell.Resources>
  16. <!-- Tab text styling -->
  17. <Style TargetType="TabBar">
  18. <Setter Property="Shell.TabBarTitleColor" Value="#FFFFFF" />
  19. <Setter Property="Shell.TabBarForegroundColor" Value="#FFFFFF" />
  20. <Setter Property="Shell.TabBarBackgroundColor" Value="#121212" />
  21. </Style>
  22. <!-- Slightly larger, bold tab titles -->
  23. <Style TargetType="Tab">
  24. <Setter Property="Shell.TabBarForegroundColor" Value="#FFFFFF" />
  25. <Setter Property="Shell.TabBarTitleColor" Value="#FFFFFF" />
  26. <Setter Property="Shell.TitleView">
  27. <Setter.Value>
  28. <Grid Padding="0,6">
  29. <Label
  30. Text="{Binding Title, Source={RelativeSource AncestorType={x:Type Tab}}}"
  31. FontAttributes="Bold"
  32. FontSize="14"
  33. TextColor="#FFFFFF"
  34. HorizontalTextAlignment="Center"
  35. VerticalTextAlignment="Center" />
  36. </Grid>
  37. </Setter.Value>
  38. </Setter>
  39. </Style>
  40. </Shell.Resources>
  41. <Tab Title="Auto Mode">
  42. <ShellContent
  43. Title="Auto Mode"
  44. Route="AutoMode"
  45. ContentTemplate="{DataTemplate local:MainPage}"/>
  46. </Tab>
  47. <Tab Title="Bulb Mode">
  48. <ShellContent
  49. Title="Bulb Mode"
  50. Route="BulbMode"
  51. ContentTemplate="{DataTemplate local:ProTab}"/>
  52. </Tab>
  53. <Tab Title="TimeLapse Mode">
  54. <ShellContent
  55. Title="TimeLapse Mode"
  56. Route="TimeLapseMode"
  57. ContentTemplate="{DataTemplate local:TimelapsePage}"/>
  58. </Tab>
  59. </Shell>