星火微课系统客户端
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <Window
  2. x:Class="ComeCapture.JieTuWindow"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:ctrl="clr-namespace:ComeCapture.Controls"
  6. xmlns:local="clr-namespace:ComeCapture"
  7. Title="MainWindow"
  8. Closed="Window_Closed"
  9. Cursor="Cross"
  10. FontFamily="Microsoft YaHei"
  11. KeyDown="Window_KeyDown"
  12. MouseLeftButtonDown="Window_MouseLeftButtonDown"
  13. MouseLeftButtonUp="Window_MouseLeftButtonUp"
  14. MouseMove="Window_MouseMove"
  15. ResizeMode="NoResize"
  16. ShowInTaskbar="False"
  17. Topmost="True"
  18. WindowState="Maximized"
  19. WindowStyle="None">
  20. <Window.Template>
  21. <ControlTemplate TargetType="Window">
  22. <Border
  23. Margin="0"
  24. Padding="0"
  25. Background="{TemplateBinding Background}">
  26. <ContentControl Content="{TemplateBinding Content}" />
  27. </Border>
  28. </ControlTemplate>
  29. </Window.Template>
  30. <Grid>
  31. <Canvas
  32. x:Name="MainCanvas"
  33. Margin="0,0"
  34. Background="Transparent">
  35. <!-- 遮罩 -->
  36. <Canvas
  37. x:Name="MaskLeft"
  38. Canvas.Left="0"
  39. Canvas.Top="0"
  40. Width="{Binding MaskLeftWidth}"
  41. Background="Black"
  42. Opacity="0.5" />
  43. <Canvas
  44. x:Name="MaskRight"
  45. Canvas.Top="0"
  46. Canvas.Right="0"
  47. Width="{Binding MaskRightWidth}"
  48. Background="Black"
  49. Opacity="0.5" />
  50. <Canvas
  51. x:Name="MaskTop"
  52. Canvas.Left="{Binding ElementName=MaskLeft, Path=Width}"
  53. Canvas.Top="0"
  54. Width="{Binding MaskTopWidth}"
  55. Height="{Binding MaskTopHeight}"
  56. Background="Black"
  57. Opacity="0.5" />
  58. <Canvas
  59. x:Name="MaskBottom"
  60. Canvas.Left="{Binding ElementName=MaskLeft, Path=Width}"
  61. Canvas.Bottom="0"
  62. Width="{Binding ElementName=MaskTop, Path=Width}"
  63. Height="{Binding MaskBottomHeight}"
  64. Background="Black"
  65. Opacity="0.5" />
  66. <!-- 尺寸和RGB -->
  67. <StackPanel
  68. x:Name="SizeRGB"
  69. Canvas.Left="{Binding ShowSizeLeft}"
  70. Canvas.Top="{Binding ShowSizeTop}"
  71. Width="200"
  72. Background="Black"
  73. Opacity="0.7">
  74. <TextBlock
  75. x:Name="Show_Size"
  76. Height="20"
  77. Padding="10,4,10,0"
  78. FontSize="12"
  79. Foreground="White"
  80. Text="{Binding ShowSize}"
  81. TextAlignment="Left"
  82. Visibility="Collapsed" />
  83. <TextBlock
  84. x:Name="Show_RGB"
  85. Height="20"
  86. Padding="10,1,10,0"
  87. FontSize="12"
  88. Foreground="White"
  89. Text="{Binding ShowRGB}"
  90. TextAlignment="Left"
  91. Visibility="Collapsed" />
  92. </StackPanel>
  93. <ctrl:MainImage x:Name="MainImage" />
  94. <ctrl:ImageEditBar x:Name="ImageEditBar" />
  95. <ctrl:SizeColorBar x:Name="SizeColorBar" />
  96. </Canvas>
  97. </Grid>
  98. </Window>