RobotView.xaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <UserControl xmlns:Controls="clr-namespace:System.Windows.Controls;assembly=TreeViewEx" x:Class="Modules.Robot.RobotView"
  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:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
  7. xmlns:Robot="clr-namespace:Modules.Robot"
  8. mc:Ignorable="d"
  9. d:DesignHeight="600" d:DesignWidth="1280" d:DataContext="{d:DesignInstance Robot:RobotViewModel}">
  10. <Grid>
  11. <DockPanel>
  12. <StackPanel Orientation="Horizontal" DockPanel.Dock="Top" Height="27" >
  13. <Label Content="LoginIP: "></Label>
  14. <TextBox Width="120" Text="{Binding LoginIP}" />
  15. <Label Content="LoginPort: "></Label>
  16. <TextBox Width="40" Text="{Binding LoginPort}" />
  17. <Label Content="Account: "></Label>
  18. <TextBox Width="120" Text="{Binding Account}" />
  19. <Label Content="Password: "></Label>
  20. <TextBox Width="120" Text="{Binding Password}" />
  21. <Button Name="btnLogin" Content="登录" Width="80" Click="btnLogin_Click" />
  22. <Button Name="btnServers" Content="服务器列表" Click="btnServers_Click"
  23. IsEnabled="{Binding IsButtonEnable}"></Button>
  24. <Button Name="btnReload" Content="Reload" Click="btnReload_Click"
  25. IsEnabled="{Binding IsButtonEnable}"></Button>
  26. </StackPanel>
  27. <ListBox Width="100" SelectionMode="Multiple" ItemsSource="{Binding ServerInfos}"
  28. d:DataContext="{d:DesignInstance Robot:RobotViewModel}">
  29. <ListBox.ItemTemplate>
  30. <DataTemplate>
  31. <Label Content="{Binding Name}" ></Label>
  32. </DataTemplate>
  33. </ListBox.ItemTemplate>
  34. </ListBox>
  35. <Grid />
  36. </DockPanel>
  37. </Grid>
  38. </UserControl>