1
0

DemoWindow.xaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!--
  2. This software is subject to the license described in the License.txt file
  3. included with this software distribution. You may not use this file except
  4. in compliance with this license.
  5. Copyright (c) Dynastream Innovations Inc. 2016
  6. All rights reserved.
  7. -->
  8. <Window x:Class="ANT_NetDll_Demo.DemoWindow"
  9. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  10. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  11. Title="Window1" Height="768" Width="1024">
  12. <Grid>
  13. <Button Height="40.008" Margin="222,32,490,0" Name="button_Start" VerticalAlignment="Top" Background="LightGreen" Click="button_Start_Click">Start Demo</Button>
  14. <ComboBox Height="23" Margin="0,40,264,0" Name="comboBox_demoMode" VerticalAlignment="Top" SelectedIndex="0" HorizontalAlignment="Right" Width="204">
  15. <ComboBoxItem>Device 0 - Master, Device 1 - Slave</ComboBoxItem>
  16. <ComboBoxItem>Device 0 Only - Master</ComboBoxItem>
  17. <ComboBoxItem>Device 0 Only - Slave</ComboBoxItem>
  18. </ComboBox>
  19. <Border Name="border_DemoControls" BorderThickness="1" BorderBrush="#2F0000FF" CornerRadius="15" Margin="12,98,12,12" IsEnabled="False">
  20. <Grid>
  21. <TextBox HorizontalScrollBarVisibility="Auto" IsReadOnly="True" Margin="464,38,18,0" Name="textBox_device0" VerticalScrollBarVisibility="Auto" TextChanged="textBox_autoScroll" Height="248" VerticalAlignment="Top" />
  22. <TextBox Height="250.05" HorizontalScrollBarVisibility="Auto" IsReadOnly="True" Margin="464,0,18,20" Name="textBox_device1" VerticalAlignment="Bottom" VerticalScrollBarVisibility="Auto" TextChanged="textBox_autoScroll" />
  23. <Label Height="25.005" Margin="464,14,358,0" Name="label_device0" VerticalAlignment="Top">Device 0 - raw responses</Label>
  24. <Label Height="25.005" Margin="464,0,348,268" Name="label_device1" VerticalAlignment="Bottom">Device 1 - raw responses</Label>
  25. <GroupBox Header="Demo Control" Margin="26.058,44,0,28" Name="groupBox1" HorizontalAlignment="Left" Width="412">
  26. <Grid>
  27. <TextBox Margin="9.942,96,6,20" Name="textBox_Display" VerticalScrollBarVisibility="Auto" TextWrapping="Wrap" IsReadOnly="True" TextChanged="textBox_autoScroll"></TextBox>
  28. <ComboBox Height="23" Margin="9.942,34,102.058,0" Name="comboBox_actionList" VerticalAlignment="Top" SelectedIndex="0">
  29. <ComboBoxItem>Send Acknowledged Message (d0)</ComboBoxItem>
  30. <ComboBoxItem>Send Burst Message (d0)</ComboBoxItem>
  31. <ComboBoxItem>Set Broadcast to random value (d0)</ComboBoxItem>
  32. <ComboBoxItem>Request Capabilities</ComboBoxItem>
  33. <ComboBoxItem>Request Version</ComboBoxItem>
  34. <ComboBoxItem>Request Channel ID</ComboBoxItem>
  35. <ComboBoxItem>Request Status</ComboBoxItem>
  36. </ComboBox>
  37. <Button Height="46" HorizontalAlignment="Right" Margin="0,22,12,0" Name="button_DoAction" VerticalAlignment="Top" Width="75" Click="button_DoAction_Click">Do Action</Button>
  38. </Grid>
  39. </GroupBox>
  40. </Grid>
  41. </Border>
  42. </Grid>
  43. </Window>