aboutsummaryrefslogtreecommitdiffstats
path: root/WarframeClock/ArbitrationOverlayItem.xaml
blob: 79855be3869be7770e13f944a2b9df1b6a9efce9 (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
38
39
40
41
<UserControl x:Class="WarframeClock.ArbitrationOverlayItem"
             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:local="clr-namespace:WarframeClock"
             mc:Ignorable="d"
             d:DataContext="{d:DesignInstance local:ArbitrationOverlayItemViewModel, IsDesignTimeCreatable=True}"
             d:DesignHeight="450" d:DesignWidth="800"
             FontFamily="{Binding DataContext.FontFamily, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}">
    <UserControl.Style>
        <Style TargetType="{x:Type UserControl}">
            <Style.Triggers>
                <DataTrigger Binding="{Binding SolNode}" Value="{x:Null}">
                    <Setter Property="Visibility" Value="Collapsed"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </UserControl.Style>
    <StackPanel VerticalAlignment="Center">
        <TextBlock Text="Arbitration"
                   Foreground="LightGray"
                   FontSize="{Binding DataContext.FontSizeTiny, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"
                   LineStackingStrategy="BlockLineHeight"
                   LineHeight="{Binding DataContext.FontSizeTiny, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"/>
        <TextBlock>
            <Run Text="{Binding SolNode.LocationCompact, Mode=OneWay}"
                 Foreground="White"
                 FontSize="{Binding DataContext.FontSizeSmall, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}"/>
            <Run Foreground="LightGray"
                 FontSize="{Binding DataContext.FontSizeTiny, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}">
                <Run.Text>
                    <MultiBinding StringFormat="[{0}, {1}]">
                        <Binding Path="SolNode.MissionType" Mode="OneWay"/>
                        <Binding Path="SolNode.Faction" Mode="OneWay"/>
                    </MultiBinding>
                </Run.Text>
            </Run>
        </TextBlock>
    </StackPanel>
</UserControl>