FloorDrawingForm.xaml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <Window x:Class="CollaborativePlatformMain.Form.FloorDrawingForm"
  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:CollaborativePlatformMain.Form"
  7. mc:Ignorable="d" Title="楼层管理器" WindowStartupLocation="CenterScreen"
  8. SizeToContent="WidthAndHeight" ResizeMode="NoResize" Loaded="Window_Loaded"
  9. Closed="Window_Closed">
  10. <StackPanel>
  11. <DockPanel>
  12. <StackPanel Width="80" Height="400" >
  13. <Border BorderBrush="Black" BorderThickness="1" Width="80" Height="400">
  14. <ScrollViewer VerticalScrollBarVisibility="Auto" Padding="0,0,0,0" >
  15. <ItemsControl x:Name="sv_floor" >
  16. <ItemsControl.ItemsPanel>
  17. <ItemsPanelTemplate>
  18. <StackPanel/>
  19. </ItemsPanelTemplate>
  20. </ItemsControl.ItemsPanel>
  21. <ItemsControl.ItemTemplate>
  22. <DataTemplate>
  23. <StackPanel Margin="0,10,0,0">
  24. <TextBlock Name="tb_FloorName" Text="{Binding FloorName}" HorizontalAlignment="Center"
  25. VerticalAlignment="Center" Width="80" TextAlignment="Center"
  26. PreviewMouseLeftButtonDown="tb_FloorName_PreviewMouseLeftButtonDown"/>
  27. </StackPanel>
  28. </DataTemplate>
  29. </ItemsControl.ItemTemplate>
  30. </ItemsControl>
  31. </ScrollViewer>
  32. </Border>
  33. </StackPanel>
  34. <StackPanel Width="200" Height="400">
  35. <Border BorderBrush="Black" BorderThickness="1" Width="200" Height="400">
  36. <ScrollViewer VerticalScrollBarVisibility="Auto" Padding="0,0,0,0">
  37. <ItemsControl x:Name="sv_layer" >
  38. <ItemsControl.ItemsPanel>
  39. <ItemsPanelTemplate>
  40. <StackPanel/>
  41. </ItemsPanelTemplate>
  42. </ItemsControl.ItemsPanel>
  43. <ItemsControl.ItemTemplate>
  44. <DataTemplate>
  45. <StackPanel Margin="5,5,0,0">
  46. <TextBlock Name="tb_LayerName" Text="{Binding LayerName}" HorizontalAlignment="Center"
  47. VerticalAlignment="Center" Width="180"
  48. PreviewMouseLeftButtonDown="tb_LayerName_PreviewMouseLeftButtonDown_1"/>
  49. </StackPanel>
  50. </DataTemplate>
  51. </ItemsControl.ItemTemplate>
  52. </ItemsControl>
  53. </ScrollViewer>
  54. </Border>
  55. </StackPanel>
  56. </DockPanel>
  57. <StackPanel>
  58. <Button Name="bt_determine" Width="280" Height="26" Content="确定" Margin="0,5,0,5" Click="bt_determine_Click"/>
  59. </StackPanel>
  60. </StackPanel>
  61. </Window>