You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
2.4 KiB
XML

<UserControl x:Class="SlnMesnac.WPF.Page.DeviceMonitorControl"
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:SlnMesnac.WPF.Page"
mc:Ignorable="d"
d:DesignHeight="1080" d:DesignWidth="1920" Background="Transparent" Opacity="1">
<Grid>
<Border Grid.Row="1" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="2" Background="Transparent">
<Grid>
<ItemsControl ItemsSource="{Binding RfidList}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="4" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border BorderBrush="#1edaf2" BorderThickness="0.5" Margin="5" HorizontalAlignment="Center" VerticalAlignment="Center" CornerRadius="10" Width="auto">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Image Source="{Binding ImageSource}" Width="100" Height="100" Margin="0,5,0,0" Grid.Column="0" />
<StackPanel Grid.Column="1" Orientation="Vertical" Margin="5,15,10,5">
<TextBlock Text="{Binding Name}" FontSize="18" Margin="0,5,0,5" Width="280" Foreground="#1edaf2" />
<TextBlock Text="{Binding Ip, StringFormat='Ip:{0}'}" FontSize="18" Margin="0,10,0,0" Foreground="#1edaf2" />
</StackPanel>
</Grid>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>
</Border>
</Grid>
</UserControl>