wenxiangchao
3 天以前 b544d5cccd76735e034c8055918a50927b437474
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
<Window x:Class="StationGlobalsReader.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:StationGlobalsReader"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <WindowsFormsHost x:Name="host" Visibility="Collapsed"></WindowsFormsHost>
        
        <TextBlock Grid.Row="0" Grid.Column="0" Text="StationGlobals."/>
        <TextBox Grid.Row="0" Grid.Column="1" Text="{Binding PropertyName}"/>
 
        <TextBlock Grid.Row="1" Grid.Column="0" Text="值"/>
        <TextBox Grid.Row="1" Grid.Column="1" Text="{Binding Tagert}"/>
 
        <Button Grid.Row="2" Grid.ColumnSpan="2" Click="Button_Click">读取</Button>
    </Grid>
</Window>