aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/ConnectedMachineIcon.xaml
blob: f6be93ec94ff2c7fea852a662e6b8d10e556b332 (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
<UserControl x:Class="Tango.FSE.Common.Controls.ConnectedMachineIcon"
             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:integration="clr-namespace:Tango.Integration.ExternalBridge;assembly=Tango.Integration"
             xmlns:emulations="clr-namespace:Tango.Emulations.ExternalBridge;assembly=Tango.Emulations"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Tango.FSE.Common.Controls"
             mc:Ignorable="d" 
             d:DesignHeight="50" d:DesignWidth="50" Height="50">
    <Grid>
        <ContentControl Content="{Binding}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
            <ContentControl.Resources>
                <DataTemplate DataType="{x:Type integration:ExternalBridgeSignalRClient}">
                    <ContentControl Style="{StaticResource FSE_SignalRMachineIcon}" />
                </DataTemplate>

                <DataTemplate DataType="{x:Type integration:ExternalBridgeTcpClient}">
                    <ContentControl Style="{StaticResource FSE_WifiMachineIcon}" />
                </DataTemplate>

                <DataTemplate DataType="{x:Type integration:ExternalBridgeUsbClient}">
                    <ContentControl Style="{StaticResource FSE_UsbMachineIcon}" />
                </DataTemplate>

                <DataTemplate DataType="{x:Type emulations:EmulatorExternalBridge}">
                    <ContentControl Style="{StaticResource FSE_EmulatorMachineIcon}"/>
                </DataTemplate>
            </ContentControl.Resources>
        </ContentControl>
    </Grid>
</UserControl>