MainWindow.xaml 1.4 KB

123456789101112131415161718
  1. <Window x:Class="MqttWpfApp.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:MqttWpfApp"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="1000" Width="800">
  9. <Canvas>
  10. <Button Canvas.Left="47" Canvas.Top="29" Click="Button_Click" x:Name="start">开启服务器</Button>
  11. <Button Canvas.Left="170" Canvas.Top="29" Click="store_Click" x:Name="store" HorizontalAlignment="Left" VerticalAlignment="Center">信息存储</Button>
  12. <Label Canvas.Top="59" HorizontalAlignment="Left" VerticalAlignment="Center">所有数据</Label>
  13. <ListBox x:Name="list" Height="400" Width="800" Canvas.Left="0" Canvas.Top="89" HorizontalAlignment="Left" VerticalAlignment="Center" Background="#FFCCDEF4" d:ItemsSource="{d:SampleData ItemCount=5}"/>
  14. <Label Canvas.Top="495" HorizontalAlignment="Center" VerticalAlignment="Top">有效数据</Label>
  15. <ListBox x:Name="list1" Height="400" Width="800" Canvas.Left="0" Canvas.Top="520" HorizontalAlignment="Left" VerticalAlignment="Center" Background="#FFCCDEF4" d:ItemsSource="{d:SampleData ItemCount=5}"/>
  16. </Canvas>
  17. </Window>