123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- <syncfusion:RibbonWindow x:Class="InABox.DynamicGrid.Spreadsheet.SpreadsheetWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:InABox.DynamicGrid.Spreadsheet"
- mc:Ignorable="d"
- xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- Title="DynamicSpreadsheetWindow" Height="800" Width="1000" BorderBrush="DimGray" BorderThickness="0.75" WindowStartupLocation="CenterScreen" WindowState="Maximized">
-
- <!-- <Window.Resources> -->
- <!-- <Style TargetType="{x:Type Slider}"> -->
- <!-- <Setter Property="Stylus.IsPressAndHoldEnabled" Value="False" /> -->
- <!-- <Setter Property="Background" Value="Transparent" /> -->
- <!-- <Setter Property="BorderBrush" Value="Transparent" /> -->
- <!-- <Setter Property="VerticalAlignment" Value="Center" /> -->
- <!-- <Setter Property="Template"> -->
- <!-- <Setter.Value> -->
- <!-- <ControlTemplate TargetType="{x:Type Slider}"> -->
- <!-- <Border -->
- <!-- x:Name="border" -->
- <!-- Background="{TemplateBinding Background}" -->
- <!-- BorderBrush="{TemplateBinding BorderBrush}" -->
- <!-- BorderThickness="{TemplateBinding BorderThickness}" -->
- <!-- SnapsToDevicePixels="True"> -->
- <!-- <Grid> -->
- <!-- <Grid.RowDefinitions> -->
- <!-- <RowDefinition Height="Auto" /> -->
- <!-- <RowDefinition Height="Auto" MinHeight="{TemplateBinding MinHeight}" /> -->
- <!-- <RowDefinition Height="Auto" /> -->
- <!-- </Grid.RowDefinitions> -->
- <!-- <TickBar -->
- <!-- x:Name="TopTick" -->
- <!-- Grid.Row="0" -->
- <!-- Height="4" -->
- <!-- Margin="0,0,0,2" -->
- <!-- Fill="{TemplateBinding Foreground}" -->
- <!-- Placement="Top" -->
- <!-- Visibility="Collapsed" /> -->
- <!-- <TickBar -->
- <!-- x:Name="BottomTick" -->
- <!-- Grid.Row="2" -->
- <!-- Height="4" -->
- <!-- Margin="0,2,0,0" -->
- <!-- Fill="{TemplateBinding Foreground}" -->
- <!-- Placement="Bottom" -->
- <!-- Visibility="Collapsed" /> -->
- <!-- <Border -->
- <!-- x:Name="TrackBackground" -->
- <!-- Grid.Row="1" -->
- <!-- Height="1" -->
- <!-- Margin="5,0" -->
- <!-- VerticalAlignment="Center" -->
- <!-- Background="White" -->
- <!-- BorderBrush="#FFD6D6D6" -->
- <!-- BorderThickness="0"> -->
- <!-- <Canvas Margin="-6,-1"> -->
- <!-- <Rectangle -->
- <!-- x:Name="PART_SelectionRange" -->
- <!-- Height="2" -->
- <!-- Fill="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" -->
- <!-- Visibility="Hidden" /> -->
- <!-- </Canvas> -->
- <!-- </Border> -->
- <!-- <Track x:Name="PART_Track" Grid.Row="1"> -->
- <!-- <Track.DecreaseRepeatButton> -->
- <!-- <RepeatButton Command="Slider.DecreaseLarge"> -->
- <!-- <RepeatButton.Style> -->
- <!-- <Style TargetType="{x:Type RepeatButton}"> -->
- <!-- <Setter Property="OverridesDefaultStyle" Value="True" /> -->
- <!-- <Setter Property="Background" Value="Transparent" /> -->
- <!-- <Setter Property="Focusable" Value="False" /> -->
- <!-- <Setter Property="IsTabStop" Value="False" /> -->
- <!-- <Setter Property="Template"> -->
- <!-- <Setter.Value> -->
- <!-- <ControlTemplate TargetType="{x:Type RepeatButton}"> -->
- <!-- <Rectangle -->
- <!-- Width="{TemplateBinding Width}" -->
- <!-- Height="{TemplateBinding Height}" -->
- <!-- Fill="{TemplateBinding Background}" /> -->
- <!-- </ControlTemplate> -->
- <!-- </Setter.Value> -->
- <!-- </Setter> -->
- <!-- </Style> -->
- <!-- </RepeatButton.Style> -->
- <!-- </RepeatButton> -->
- <!-- </Track.DecreaseRepeatButton> -->
- <!-- <Track.IncreaseRepeatButton> -->
- <!-- <RepeatButton Command="Slider.IncreaseLarge"> -->
- <!-- <RepeatButton.Style> -->
- <!-- <Style TargetType="{x:Type RepeatButton}"> -->
- <!-- <Setter Property="OverridesDefaultStyle" Value="True" /> -->
- <!-- <Setter Property="Background" Value="Transparent" /> -->
- <!-- <Setter Property="Focusable" Value="False" /> -->
- <!-- <Setter Property="IsTabStop" Value="False" /> -->
- <!-- <Setter Property="Template"> -->
- <!-- <Setter.Value> -->
- <!-- <ControlTemplate TargetType="{x:Type RepeatButton}"> -->
- <!-- <Rectangle -->
- <!-- Width="{TemplateBinding Width}" -->
- <!-- Height="{TemplateBinding Height}" -->
- <!-- Fill="{TemplateBinding Background}" /> -->
- <!-- </ControlTemplate> -->
- <!-- </Setter.Value> -->
- <!-- </Setter> -->
- <!-- </Style> -->
- <!-- </RepeatButton.Style> -->
- <!-- </RepeatButton> -->
- <!-- </Track.IncreaseRepeatButton> -->
- <!-- <Track.Thumb> -->
- <!-- <Thumb -->
- <!-- x:Name="Thumb" -->
- <!-- Width="4" -->
- <!-- Height="12" -->
- <!-- VerticalAlignment="Center" -->
- <!-- Focusable="False" -->
- <!-- OverridesDefaultStyle="True"> -->
- <!-- <Thumb.Template> -->
- <!-- <ControlTemplate TargetType="{x:Type Thumb}"> -->
- <!-- <Grid HorizontalAlignment="Center" VerticalAlignment="Center"> -->
- <!-- <Path -->
- <!-- x:Name="grip" -->
- <!-- VerticalAlignment="Center" -->
- <!-- 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" -->
- <!-- Fill="#FFF0F0F0" -->
- <!-- SnapsToDevicePixels="True" -->
- <!-- Stretch="Fill" -->
- <!-- Stroke="#FFACACAC" -->
- <!-- StrokeThickness="0" /> -->
- <!-- </Grid> -->
- <!-- <ControlTemplate.Triggers> -->
- <!-- <Trigger Property="IsMouseOver" Value="True"> -->
- <!-- <Setter TargetName="grip" Property="Fill" Value="#FF7EB4EA" /> -->
- <!-- <Setter TargetName="grip" Property="Stroke" Value="#FF7EB4EA" /> -->
- <!-- </Trigger> -->
- <!-- <Trigger Property="IsDragging" Value="True"> -->
- <!-- <Setter TargetName="grip" Property="Fill" Value="#FF569DE5" /> -->
- <!-- <Setter TargetName="grip" Property="Stroke" Value="#FF569DE5" /> -->
- <!-- </Trigger> -->
- <!-- <Trigger Property="IsEnabled" Value="False"> -->
- <!-- <Setter TargetName="grip" Property="Fill" Value="Transparent" /> -->
- <!-- <Setter TargetName="grip" Property="Stroke" Value="#FFD9D9D9" /> -->
- <!-- </Trigger> -->
- <!-- </ControlTemplate.Triggers> -->
- <!-- </ControlTemplate> -->
- <!-- </Thumb.Template> -->
- <!-- </Thumb> -->
- <!-- </Track.Thumb> -->
- <!-- </Track> -->
- <!-- </Grid> -->
- <!-- </Border> -->
- <!-- <ControlTemplate.Triggers> -->
- <!-- <Trigger Property="IsSelectionRangeEnabled" Value="True"> -->
- <!-- <Setter TargetName="PART_SelectionRange" Property="Visibility" Value="Visible" /> -->
- <!-- </Trigger> -->
- <!-- <Trigger Property="IsKeyboardFocused" Value="True"> -->
- <!-- <Setter TargetName="Thumb" Property="Foreground" Value="Blue" /> -->
- <!-- </Trigger> -->
- <!-- </ControlTemplate.Triggers> -->
- <!-- </ControlTemplate> -->
- <!-- </Setter.Value> -->
- <!-- </Setter> -->
- <!-- </Style> -->
- <!-- -->
- <!-- <Style x:Key="ZoomButtonStyle" TargetType="Button"> -->
- <!-- <Setter Property="OverridesDefaultStyle" Value="True" /> -->
- <!-- <Setter Property="Template"> -->
- <!-- <Setter.Value> -->
- <!-- <ControlTemplate TargetType="Button"> -->
- <!-- <ContentPresenter x:Name="Presenter" /> -->
- <!-- <ControlTemplate.Triggers> -->
- <!-- <Trigger Property="IsMouseOver" Value="True"> -->
- <!-- <Setter TargetName="Presenter" Property="TextBlock.Foreground" Value="#FF7EB4EA" /> -->
- <!-- </Trigger> -->
- <!-- <Trigger Property="IsEnabled" Value="False"> -->
- <!-- <Setter TargetName="Presenter" Property="TextBlock.Foreground" Value="Gray" /> -->
- <!-- </Trigger> -->
- <!-- </ControlTemplate.Triggers> -->
- <!-- </ControlTemplate> -->
- <!-- </Setter.Value> -->
- <!-- </Setter> -->
- <!-- </Style> -->
- <!-- </Window.Resources> -->
- <!-- -->
- <!-- <syncfusion:RibbonWindow.StatusBar> -->
- <!-- <syncfusion:RibbonStatusBar Height="22"> -->
- <!-- <Grid> -->
- <!-- <Grid.ColumnDefinitions> -->
- <!-- <ColumnDefinition Width="*" /> -->
- <!-- <ColumnDefinition Width="*" /> -->
- <!-- </Grid.ColumnDefinitions> -->
- <!-- <StackPanel -->
- <!-- HorizontalAlignment="Left" -->
- <!-- VerticalAlignment="Center" -->
- <!-- Orientation="Horizontal"> -->
- <!-- <TextBlock -->
- <!-- x:Name="ModeTextBlock" -->
- <!-- Margin="10,0,0,0" -->
- <!-- FontSize="11" -->
- <!-- Foreground="White" -->
- <!-- Text="READY" /> -->
- <!-- </StackPanel> -->
- <!-- <StackPanel -->
- <!-- x:Name="ZoomSilderPanel" -->
- <!-- Grid.Column="1" -->
- <!-- Margin="0,0,20,0" -->
- <!-- HorizontalAlignment="Right" -->
- <!-- VerticalAlignment="Center" -->
- <!-- DataContext="{Binding ElementName=spreadsheet}" -->
- <!-- Orientation="Horizontal"> -->
- <!-- <Button -->
- <!-- x:Name="ZoomDecreaseButton" -->
- <!-- Margin="0,-4,5,0" -->
- <!-- Background="Transparent" -->
- <!-- BorderThickness="0" -->
- <!-- Content="-" -->
- <!-- FontSize="16" -->
- <!-- FontWeight="Bold" -->
- <!-- Foreground="White" -->
- <!-- Style="{StaticResource ZoomButtonStyle}" /> -->
- <!-- <Slider -->
- <!-- x:Name="ZoomSlider" -->
- <!-- Width="150" -->
- <!-- Focusable="False" -->
- <!-- Foreground="White" -->
- <!-- Maximum="400" -->
- <!-- Minimum="50" -->
- <!-- TickFrequency="1" -->
- <!-- TickPlacement="None" -->
- <!-- ToolTip="Zoom" -->
- <!-- Value="{Binding ElementName=spreadsheet, Path=ActiveSheet.Zoom, Mode=OneWay}" /> -->
- <!-- <Button -->
- <!-- x:Name="ZoomIncreaseButton" -->
- <!-- Margin="2,-4,0,0" -->
- <!-- Background="Transparent" -->
- <!-- BorderThickness="0" -->
- <!-- Content="+" -->
- <!-- FontSize="16" -->
- <!-- FontWeight="Bold" -->
- <!-- Foreground="White" -->
- <!-- Style="{StaticResource ZoomButtonStyle}" /> -->
- <!-- <TextBlock -->
- <!-- x:Name="ZoomTextBlock" -->
- <!-- Margin="8,0,0,0" -->
- <!-- FontSize="11" -->
- <!-- Foreground="White" -->
- <!-- Text="{Binding ElementName=ZoomSlider, Path=Value}" /> -->
- <!-- <TextBlock -->
- <!-- FontSize="11" -->
- <!-- Foreground="White" -->
- <!-- Text="%" /> -->
- <!-- <b:Interaction.Behaviors> -->
- <!-- <local:ZoomSliderBehavior /> -->
- <!-- </b:Interaction.Behaviors> -->
- <!-- </StackPanel> -->
- <!-- </Grid> -->
- <!-- </syncfusion:RibbonStatusBar> -->
- <!-- </syncfusion:RibbonWindow.StatusBar> -->
-
- <DockPanel>
- <syncfusion:SfSpreadsheetRibbon x:Name="ribbon" DataContext= "{Binding ElementName=spreadsheet}" DockPanel.Dock="Top"/>
- <syncfusion:SfSpreadsheet x:Name="spreadsheet" FormulaBarVisibility="Visible" DockPanel.Dock="Top">
- </syncfusion:SfSpreadsheet>
- </DockPanel>
- </syncfusion:RibbonWindow>
|