Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- <UserControl x:Class="WPFDemo.Silo"
- 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:WPFDemo"
- Width="120"
- Height="150"
- mc:Ignorable="d"
- DataContext="{Binding RelativeSource={RelativeSource Self}}"
- >
- <Border BorderBrush="#FF243654" Background="#FF79E8C7">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition></RowDefinition>
- <RowDefinition Height="35"></RowDefinition>
- </Grid.RowDefinitions>
- <Image Width="120" Height="120" Source="device.png"></Image>
- <Grid Grid.Row="1" Margin="10,2">
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <TextBlock Text="编号" Grid.Row="0" Grid.Column="0"></TextBlock>
- <TextBlock Text="{Binding Index}" Grid.Row="0" Grid.Column="1"></TextBlock>
-
- <TextBlock Text="编号" Grid.Row="1" Grid.Column="0"></TextBlock>
- <TextBlock Text="{Binding Caption}" Grid.Row="1" Grid.Column="1"></TextBlock>
- </Grid>
- </Grid>
- </Border>
- </UserControl>
|