SpreadsheetWindow.xaml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <syncfusion:RibbonWindow x:Class="InABox.DynamicGrid.Spreadsheet.SpreadsheetWindow"
  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:local="clr-namespace:InABox.DynamicGrid.Spreadsheet"
  7. mc:Ignorable="d"
  8. xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
  9. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  10. Title="DynamicSpreadsheetWindow" Height="800" Width="1000" BorderBrush="DimGray" BorderThickness="0.75" WindowStartupLocation="CenterScreen" WindowState="Maximized">
  11. <!-- <Window.Resources> -->
  12. <!-- <Style TargetType="{x:Type Slider}"> -->
  13. <!-- <Setter Property="Stylus.IsPressAndHoldEnabled" Value="False" /> -->
  14. <!-- <Setter Property="Background" Value="Transparent" /> -->
  15. <!-- <Setter Property="BorderBrush" Value="Transparent" /> -->
  16. <!-- <Setter Property="VerticalAlignment" Value="Center" /> -->
  17. <!-- <Setter Property="Template"> -->
  18. <!-- <Setter.Value> -->
  19. <!-- <ControlTemplate TargetType="{x:Type Slider}"> -->
  20. <!-- <Border -->
  21. <!-- x:Name="border" -->
  22. <!-- Background="{TemplateBinding Background}" -->
  23. <!-- BorderBrush="{TemplateBinding BorderBrush}" -->
  24. <!-- BorderThickness="{TemplateBinding BorderThickness}" -->
  25. <!-- SnapsToDevicePixels="True"> -->
  26. <!-- <Grid> -->
  27. <!-- <Grid.RowDefinitions> -->
  28. <!-- <RowDefinition Height="Auto" /> -->
  29. <!-- <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}" /> -->
  30. <!-- <RowDefinition Height="Auto" /> -->
  31. <!-- </Grid.RowDefinitions> -->
  32. <!-- <TickBar -->
  33. <!-- x:Name="TopTick" -->
  34. <!-- Grid.Row="0" -->
  35. <!-- Height="4" -->
  36. <!-- Margin="0,0,0,2" -->
  37. <!-- Fill="{TemplateBinding Foreground}" -->
  38. <!-- Placement="Top" -->
  39. <!-- Visibility="Collapsed" /> -->
  40. <!-- <TickBar -->
  41. <!-- x:Name="BottomTick" -->
  42. <!-- Grid.Row="2" -->
  43. <!-- Height="4" -->
  44. <!-- Margin="0,2,0,0" -->
  45. <!-- Fill="{TemplateBinding Foreground}" -->
  46. <!-- Placement="Bottom" -->
  47. <!-- Visibility="Collapsed" /> -->
  48. <!-- <Border -->
  49. <!-- x:Name="TrackBackground" -->
  50. <!-- Grid.Row="1" -->
  51. <!-- Height="1" -->
  52. <!-- Margin="5,0" -->
  53. <!-- VerticalAlignment="Center" -->
  54. <!-- Background="White" -->
  55. <!-- BorderBrush="#FFD6D6D6" -->
  56. <!-- BorderThickness="0"> -->
  57. <!-- <Canvas Margin="-6,-1"> -->
  58. <!-- <Rectangle -->
  59. <!-- x:Name="PART_SelectionRange" -->
  60. <!-- Height="2" -->
  61. <!-- Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" -->
  62. <!-- Visibility="Hidden" /> -->
  63. <!-- </Canvas> -->
  64. <!-- </Border> -->
  65. <!-- <Track x:Name="PART_Track" Grid.Row="1"> -->
  66. <!-- <Track.DecreaseRepeatButton> -->
  67. <!-- <RepeatButton Command="Slider.DecreaseLarge"> -->
  68. <!-- <RepeatButton.Style> -->
  69. <!-- <Style TargetType="{x:Type RepeatButton}"> -->
  70. <!-- <Setter Property="OverridesDefaultStyle" Value="True" /> -->
  71. <!-- <Setter Property="Background" Value="Transparent" /> -->
  72. <!-- <Setter Property="Focusable" Value="False" /> -->
  73. <!-- <Setter Property="IsTabStop" Value="False" /> -->
  74. <!-- <Setter Property="Template"> -->
  75. <!-- <Setter.Value> -->
  76. <!-- <ControlTemplate TargetType="{x:Type RepeatButton}"> -->
  77. <!-- <Rectangle -->
  78. <!-- Width="{TemplateBinding Width}" -->
  79. <!-- Height="{TemplateBinding Height}" -->
  80. <!-- Fill="{TemplateBinding Background}" /> -->
  81. <!-- </ControlTemplate> -->
  82. <!-- </Setter.Value> -->
  83. <!-- </Setter> -->
  84. <!-- </Style> -->
  85. <!-- </RepeatButton.Style> -->
  86. <!-- </RepeatButton> -->
  87. <!-- </Track.DecreaseRepeatButton> -->
  88. <!-- <Track.IncreaseRepeatButton> -->
  89. <!-- <RepeatButton Command="Slider.IncreaseLarge"> -->
  90. <!-- <RepeatButton.Style> -->
  91. <!-- <Style TargetType="{x:Type RepeatButton}"> -->
  92. <!-- <Setter Property="OverridesDefaultStyle" Value="True" /> -->
  93. <!-- <Setter Property="Background" Value="Transparent" /> -->
  94. <!-- <Setter Property="Focusable" Value="False" /> -->
  95. <!-- <Setter Property="IsTabStop" Value="False" /> -->
  96. <!-- <Setter Property="Template"> -->
  97. <!-- <Setter.Value> -->
  98. <!-- <ControlTemplate TargetType="{x:Type RepeatButton}"> -->
  99. <!-- <Rectangle -->
  100. <!-- Width="{TemplateBinding Width}" -->
  101. <!-- Height="{TemplateBinding Height}" -->
  102. <!-- Fill="{TemplateBinding Background}" /> -->
  103. <!-- </ControlTemplate> -->
  104. <!-- </Setter.Value> -->
  105. <!-- </Setter> -->
  106. <!-- </Style> -->
  107. <!-- </RepeatButton.Style> -->
  108. <!-- </RepeatButton> -->
  109. <!-- </Track.IncreaseRepeatButton> -->
  110. <!-- <Track.Thumb> -->
  111. <!-- <Thumb -->
  112. <!-- x:Name="Thumb" -->
  113. <!-- Width="4" -->
  114. <!-- Height="12" -->
  115. <!-- VerticalAlignment="Center" -->
  116. <!-- Focusable="False" -->
  117. <!-- OverridesDefaultStyle="True"> -->
  118. <!-- <Thumb.Template> -->
  119. <!-- <ControlTemplate TargetType="{x:Type Thumb}"> -->
  120. <!-- <Grid HorizontalAlignment="Center" VerticalAlignment="Center"> -->
  121. <!-- <Path -->
  122. <!-- x:Name="grip" -->
  123. <!-- VerticalAlignment="Center" -->
  124. <!-- Data="M0,0C0,0 11,0 11,0 11,0 11,18 11,18 11,18 0,18 0,18 0,18 0,0 0,0z" -->
  125. <!-- Fill="#FFF0F0F0" -->
  126. <!-- SnapsToDevicePixels="True" -->
  127. <!-- Stretch="Fill" -->
  128. <!-- Stroke="#FFACACAC" -->
  129. <!-- StrokeThickness="0" /> -->
  130. <!-- </Grid> -->
  131. <!-- <ControlTemplate.Triggers> -->
  132. <!-- <Trigger Property="IsMouseOver" Value="True"> -->
  133. <!-- <Setter TargetName="grip" Property="Fill" Value="#FF7EB4EA" /> -->
  134. <!-- <Setter TargetName="grip" Property="Stroke" Value="#FF7EB4EA" /> -->
  135. <!-- </Trigger> -->
  136. <!-- <Trigger Property="IsDragging" Value="True"> -->
  137. <!-- <Setter TargetName="grip" Property="Fill" Value="#FF569DE5" /> -->
  138. <!-- <Setter TargetName="grip" Property="Stroke" Value="#FF569DE5" /> -->
  139. <!-- </Trigger> -->
  140. <!-- <Trigger Property="IsEnabled" Value="False"> -->
  141. <!-- <Setter TargetName="grip" Property="Fill" Value="Transparent" /> -->
  142. <!-- <Setter TargetName="grip" Property="Stroke" Value="#FFD9D9D9" /> -->
  143. <!-- </Trigger> -->
  144. <!-- </ControlTemplate.Triggers> -->
  145. <!-- </ControlTemplate> -->
  146. <!-- </Thumb.Template> -->
  147. <!-- </Thumb> -->
  148. <!-- </Track.Thumb> -->
  149. <!-- </Track> -->
  150. <!-- </Grid> -->
  151. <!-- </Border> -->
  152. <!-- <ControlTemplate.Triggers> -->
  153. <!-- <Trigger Property="IsSelectionRangeEnabled" Value="True"> -->
  154. <!-- <Setter TargetName="PART_SelectionRange" Property="Visibility" Value="Visible" /> -->
  155. <!-- </Trigger> -->
  156. <!-- <Trigger Property="IsKeyboardFocused" Value="True"> -->
  157. <!-- <Setter TargetName="Thumb" Property="Foreground" Value="Blue" /> -->
  158. <!-- </Trigger> -->
  159. <!-- </ControlTemplate.Triggers> -->
  160. <!-- </ControlTemplate> -->
  161. <!-- </Setter.Value> -->
  162. <!-- </Setter> -->
  163. <!-- </Style> -->
  164. <!-- -->
  165. <!-- <Style x:Key="ZoomButtonStyle" TargetType="Button"> -->
  166. <!-- <Setter Property="OverridesDefaultStyle" Value="True" /> -->
  167. <!-- <Setter Property="Template"> -->
  168. <!-- <Setter.Value> -->
  169. <!-- <ControlTemplate TargetType="Button"> -->
  170. <!-- <ContentPresenter x:Name="Presenter" /> -->
  171. <!-- <ControlTemplate.Triggers> -->
  172. <!-- <Trigger Property="IsMouseOver" Value="True"> -->
  173. <!-- <Setter TargetName="Presenter" Property="TextBlock.Foreground" Value="#FF7EB4EA" /> -->
  174. <!-- </Trigger> -->
  175. <!-- <Trigger Property="IsEnabled" Value="False"> -->
  176. <!-- <Setter TargetName="Presenter" Property="TextBlock.Foreground" Value="Gray" /> -->
  177. <!-- </Trigger> -->
  178. <!-- </ControlTemplate.Triggers> -->
  179. <!-- </ControlTemplate> -->
  180. <!-- </Setter.Value> -->
  181. <!-- </Setter> -->
  182. <!-- </Style> -->
  183. <!-- </Window.Resources> -->
  184. <!-- -->
  185. <!-- <syncfusion:RibbonWindow.StatusBar> -->
  186. <!-- <syncfusion:RibbonStatusBar Height="22"> -->
  187. <!-- <Grid> -->
  188. <!-- <Grid.ColumnDefinitions> -->
  189. <!-- <ColumnDefinition Width="*" /> -->
  190. <!-- <ColumnDefinition Width="*" /> -->
  191. <!-- </Grid.ColumnDefinitions> -->
  192. <!-- <StackPanel -->
  193. <!-- HorizontalAlignment="Left" -->
  194. <!-- VerticalAlignment="Center" -->
  195. <!-- Orientation="Horizontal"> -->
  196. <!-- <TextBlock -->
  197. <!-- x:Name="ModeTextBlock" -->
  198. <!-- Margin="10,0,0,0" -->
  199. <!-- FontSize="11" -->
  200. <!-- Foreground="White" -->
  201. <!-- Text="READY" /> -->
  202. <!-- </StackPanel> -->
  203. <!-- <StackPanel -->
  204. <!-- x:Name="ZoomSilderPanel" -->
  205. <!-- Grid.Column="1" -->
  206. <!-- Margin="0,0,20,0" -->
  207. <!-- HorizontalAlignment="Right" -->
  208. <!-- VerticalAlignment="Center" -->
  209. <!-- DataContext="{Binding ElementName=spreadsheet}" -->
  210. <!-- Orientation="Horizontal"> -->
  211. <!-- <Button -->
  212. <!-- x:Name="ZoomDecreaseButton" -->
  213. <!-- Margin="0,-4,5,0" -->
  214. <!-- Background="Transparent" -->
  215. <!-- BorderThickness="0" -->
  216. <!-- Content="-" -->
  217. <!-- FontSize="16" -->
  218. <!-- FontWeight="Bold" -->
  219. <!-- Foreground="White" -->
  220. <!-- Style="{StaticResource ZoomButtonStyle}" /> -->
  221. <!-- <Slider -->
  222. <!-- x:Name="ZoomSlider" -->
  223. <!-- Width="150" -->
  224. <!-- Focusable="False" -->
  225. <!-- Foreground="White" -->
  226. <!-- Maximum="400" -->
  227. <!-- Minimum="50" -->
  228. <!-- TickFrequency="1" -->
  229. <!-- TickPlacement="None" -->
  230. <!-- ToolTip="Zoom" -->
  231. <!-- Value="{Binding ElementName=spreadsheet, Path=ActiveSheet.Zoom, Mode=OneWay}" /> -->
  232. <!-- <Button -->
  233. <!-- x:Name="ZoomIncreaseButton" -->
  234. <!-- Margin="2,-4,0,0" -->
  235. <!-- Background="Transparent" -->
  236. <!-- BorderThickness="0" -->
  237. <!-- Content="+" -->
  238. <!-- FontSize="16" -->
  239. <!-- FontWeight="Bold" -->
  240. <!-- Foreground="White" -->
  241. <!-- Style="{StaticResource ZoomButtonStyle}" /> -->
  242. <!-- <TextBlock -->
  243. <!-- x:Name="ZoomTextBlock" -->
  244. <!-- Margin="8,0,0,0" -->
  245. <!-- FontSize="11" -->
  246. <!-- Foreground="White" -->
  247. <!-- Text="{Binding ElementName=ZoomSlider, Path=Value}" /> -->
  248. <!-- <TextBlock -->
  249. <!-- FontSize="11" -->
  250. <!-- Foreground="White" -->
  251. <!-- Text="%" /> -->
  252. <!-- <b:Interaction.Behaviors> -->
  253. <!-- <local:ZoomSliderBehavior /> -->
  254. <!-- </b:Interaction.Behaviors> -->
  255. <!-- </StackPanel> -->
  256. <!-- </Grid> -->
  257. <!-- </syncfusion:RibbonStatusBar> -->
  258. <!-- </syncfusion:RibbonWindow.StatusBar> -->
  259. <DockPanel>
  260. <syncfusion:SfSpreadsheetRibbon x:Name="ribbon" DataContext= "{Binding ElementName=spreadsheet}" DockPanel.Dock="Top"/>
  261. <syncfusion:SfSpreadsheet x:Name="spreadsheet" FormulaBarVisibility="Visible" DockPanel.Dock="Top">
  262. </syncfusion:SfSpreadsheet>
  263. </DockPanel>
  264. </syncfusion:RibbonWindow>