终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 line
1.7 KiB

  1. <UserControl x:Class="WPFDemo.Silo"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:WPFDemo"
  7. Width="120"
  8. Height="150"
  9. mc:Ignorable="d"
  10. DataContext="{Binding RelativeSource={RelativeSource Self}}"
  11. >
  12. <Border BorderBrush="#FF243654" Background="#FF79E8C7">
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition></RowDefinition>
  16. <RowDefinition Height="35"></RowDefinition>
  17. </Grid.RowDefinitions>
  18. <Image Width="120" Height="120" Source="device.png"></Image>
  19. <Grid Grid.Row="1" Margin="10,2">
  20. <Grid.ColumnDefinitions>
  21. <ColumnDefinition></ColumnDefinition>
  22. <ColumnDefinition></ColumnDefinition>
  23. </Grid.ColumnDefinitions>
  24. <Grid.RowDefinitions>
  25. <RowDefinition></RowDefinition>
  26. <RowDefinition></RowDefinition>
  27. </Grid.RowDefinitions>
  28. <TextBlock Text="编号" Grid.Row="0" Grid.Column="0"></TextBlock>
  29. <TextBlock Text="{Binding Index}" Grid.Row="0" Grid.Column="1"></TextBlock>
  30. <TextBlock Text="编号" Grid.Row="1" Grid.Column="0"></TextBlock>
  31. <TextBlock Text="{Binding Caption}" Grid.Row="1" Grid.Column="1"></TextBlock>
  32. </Grid>
  33. </Grid>
  34. </Border>
  35. </UserControl>