blob: a9b18c62ea6bfcbacd8eb77d66503cb190ad83be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<UserControl x:Class="Tango.FSE.Firmware.Views.MainView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:global="clr-namespace:Tango.FSE.Firmware"
xmlns:vm="clr-namespace:Tango.FSE.Firmware.ViewModels"
xmlns:resolution="clr-namespace:Tango.FSE.Common.Resolution;assembly=Tango.FSE.Common"
xmlns:commonControls="clr-namespace:Tango.FSE.Common.Controls;assembly=Tango.FSE.Common"
xmlns:material="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:local="clr-namespace:Tango.FSE.Firmware.Views"
mc:Ignorable="d"
d:DesignHeight="720" d:DesignWidth="1280" d:DataContext="{d:DesignInstance Type=vm:MainViewVM, IsDesignTimeCreatable=False}" DataContext="{x:Static global:ViewModelLocator.MainViewVM}">
<Grid>
<Grid Margin="10">
<Grid>
<Grid.Style>
<Style TargetType="Grid">
<Setter Property="Margin" Value="100 40"></Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding ResolutionService.IsLowResolution}" Value="True">
<Setter Property="Margin" Value="20"></Setter>
</DataTrigger>
</Style.Triggers>
</Style>
</Grid.Style>
<commonControls:FSETabControl TabsWidth="600" x:Name="tabs" SelectedObject="{Binding SelectedView,Mode=TwoWay}">
<local:FileSystemView Tag="FILE SYSTEM" />
<local:UpdatesView Tag="UPDATES" />
<local:LogsView Tag="LOGS" />
</commonControls:FSETabControl>
<TextBlock Margin="10 0 0 0" FontFamily="{StaticResource hand}" FontSize="{StaticResource FSE_ModuleHeaderFontSize}" Foreground="{StaticResource FSE_PrimaryAccentDarkBrush}" VerticalAlignment="Top" HorizontalAlignment="Left" Text="{Binding ElementName=tabs,Path=SelectedElement.Tag,Converter={StaticResource StringToTitleCaseConverter}}"></TextBlock>
</Grid>
</Grid>
</Grid>
</UserControl>
|