123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- <syncfusion:RibbonWindow x:Class="PRSDesktop.SecondaryWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
- syncfusion:SkinStorage.VisualStyle="Office2013"
- mc:Ignorable="d"
- Title="SecondaryWindow"
- Height="450"
- Width="800"
- Loaded="Window_Loaded"
- SizeChanged="Window_SizeChanged"
- LocationChanged="Window_LocationChanged"
- Closing="Window_Closing"
- Office2010Icon="pack://application:,,,/Resources/appicon.png">
- <syncfusion:RibbonWindow.Resources>
- <ResourceDictionary>
- <Style x:Key="RibbonStyle" TargetType="syncfusion:Ribbon" BasedOn="{StaticResource Office2013RibbonStyle}">
- <Style.Triggers>
- <Trigger Property="RibbonState" Value="Normal">
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type syncfusion:Ribbon}">
- <AdornerDecorator
- Name="PART_AdornerDecorator"
- Margin="0,-53,0,0"
- Panel.ZIndex="100"
- DockPanel.Dock="Top">
- <Border>
- <Grid ClipToBounds="True">
- <Grid.RowDefinitions>
- <RowDefinition>
- <RowDefinition.Style>
- <Style>
- <Setter Property="RowDefinition.Height" Value="28" />
- <Style.Triggers>
- <Trigger
- Property="syncfusion:SkinStorage.EnableTouch"
- Value="True">
- <Setter Property="RowDefinition.Height"
- Value="48" />
- </Trigger>
- </Style.Triggers>
- </Style>
- </RowDefinition.Style>
- </RowDefinition>
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <DockPanel Grid.Row="0" Panel.ZIndex="200">
- <syncfusion:RibbonWindowPanel
- x:Name="PART_RibbonWindowPanel"
- MinHeight="28"
- Panel.ZIndex="100"
- DockPanel.Dock="Top">
- <Border
- x:Name="PART_TitleBorder"
- Width="{TemplateBinding ActualWidth}"
- Height="30"
- Margin="0,0,0,-20"
- Visibility="Collapsed" />
- <ContentPresenter Content="{TemplateBinding BackStageButton}"
- Focusable="False" />
- <ContentPresenter
- Margin="30,0,0,0"
- HorizontalAlignment="Center"
- syncfusion:WindowChrome.IsHitTestVisibleInChrome="True"
- Content="{TemplateBinding QuickAccessToolBar}">
- <ContentPresenter.Style>
- <Style>
- <Setter Property="FrameworkElement.Height"
- Value="25" />
- <Style.Triggers>
- <Trigger
- Property="syncfusion:SkinStorage.EnableTouch"
- Value="True">
- <Setter Property="FrameworkElement.Height"
- Value="40" />
- </Trigger>
- </Style.Triggers>
- </Style>
- </ContentPresenter.Style>
- </ContentPresenter>
- </syncfusion:RibbonWindowPanel>
- <Border
- Width="5"
- Height="1"
- Margin="0,-14,0,0"
- DockPanel.Dock="Left" />
- <Border
- Width="41"
- Height="0"
- Margin="0,-14,0,0"
- Panel.ZIndex="11"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="0,0,0,0"
- DockPanel.Dock="Left" />
- <Border
- Width="5"
- Height="0.02"
- Margin="0,-14,0,0"
- Panel.ZIndex="12"
- DockPanel.Dock="Right" />
- <Border
- Panel.ZIndex="12"
- BorderThickness="0"
- DockPanel.Dock="Right">
- <Border.Style>
- <Style>
- <Setter Property="Border.Margin" Value="0,-24,0,1" />
- <Setter Property="Border.Height" Value="23" />
- <Style.Triggers>
- <Trigger
- Property="syncfusion:SkinStorage.EnableTouch"
- Value="True">
- <Setter Property="Border.Margin"
- Value="0,-39,0,1" />
- <Setter Property="Border.Height" Value="40" />
- </Trigger>
- </Style.Triggers>
- </Style>
- </Border.Style>
- <ContentPresenter ContentSource="TabPanelItem" />
- </Border>
- <Border
- x:Name="ribbonTabBorder" Visibility="Collapsed"
- Panel.ZIndex="10"
- BorderBrush="{TemplateBinding BorderBrush}"
- DockPanel.Dock="Bottom">
- <Border.Style>
- <Style>
- <!--<Setter Property="Border.Margin" Value="17,-25,0,2"/>-->
- <Style.Triggers>
- <DataTrigger
- Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type syncfusion:Ribbon}}, Path=BackStageButton.Visibility}"
- Value="Visible">
- <Setter Property="Border.Margin"
- Value="17,-25,0,2" />
- </DataTrigger>
- <DataTrigger
- Binding="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type syncfusion:Ribbon}}, Path=BackStageButton.Visibility}"
- Value="Collapsed">
- <Setter Property="Border.Margin"
- Value="-46,-25,0,2" />
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Border.Style>
- <ItemsPresenter Focusable="False"
- KeyboardNavigation.IsTabStop="False" />
- </Border>
- </DockPanel>
- <Border
- x:Name="ribBorder"
- Grid.Row="1"
- Margin="0,-1,0,0"
- Padding="0"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="1">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <syncfusion:RibbonTabItemsControl
- DisplayMemberPath="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedTabItem.DisplayMemberPath}"
- Focusable="False"
- ItemContainerStyle="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedTabItem.ItemContainerStyle}"
- ItemContainerStyleSelector="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedTabItem.ItemContainerStyleSelector}"
- ItemStringFormat="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedTabItem.ItemStringFormat}"
- ItemTemplate="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedTabItem.ItemTemplate}"
- ItemTemplateSelector="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedTabItem.ItemTemplateSelector}"
- ItemsSource="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=SelectedTabItem.Items}">
- <syncfusion:RibbonTabItemsControl.ItemsPanel>
- <ItemsPanelTemplate>
- <syncfusion:RibbonLayoutPanel />
- </ItemsPanelTemplate>
- </syncfusion:RibbonTabItemsControl.ItemsPanel>
- </syncfusion:RibbonTabItemsControl>
- <Grid Grid.Column="1" HorizontalAlignment="Right">
- <syncfusion:RibbonToggleButton
- x:Name="ToggleButton"
- Width="29"
- Height="22"
- HorizontalAlignment="Right"
- VerticalAlignment="Bottom"
- Panel.ZIndex="12"
- syncfusion:Ribbon.IsQATItem="False"
- Style="{DynamicResource RibbonToggleButtonStyle}"
- Visibility="{TemplateBinding MinimizeButtonVisibility}" />
- </Grid>
- </Grid>
- </Border>
- </Grid>
- </Border>
- </AdornerDecorator>
- <ControlTemplate.Triggers>
- <!-- <Trigger Property="componentModel:DesignerProperties.IsInDesignMode" -->
- <!-- Value="True"> -->
- <!-- <Setter TargetName="PART_AdornerDecorator" Property="Margin" -->
- <!-- Value="0,-53,0,0" /> -->
- <!-- </Trigger> -->
- <Trigger Property="syncfusion:SkinStorage.EnableTouch" Value="True">
- <Setter TargetName="ribbonTabBorder" Property="Margin" Value="17,-27,0,2" />
- <Setter TargetName="ribBorder" Property="Margin" Value="0,-3,0,0" />
- <Setter TargetName="PART_RibbonWindowPanel" Property="MinHeight" Value="73" />
- </Trigger>
- <Trigger Property="syncfusion:SkinStorage.EnableTouch" Value="False">
- <Setter TargetName="PART_RibbonWindowPanel" Property="MinHeight" Value="53" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Trigger>
- </Style.Triggers>
- </Style>
- </ResourceDictionary>
- </syncfusion:RibbonWindow.Resources>
- <syncfusion:RibbonWindow.HeaderItems>
- <syncfusion:ButtonAdv x:Name="Wiki" Height="25" Label="Online Documentation" SizeMode="Normal"
- Click="Wiki_Click" SmallIcon="pack://application:,,,/Resources/help.png" />
- </syncfusion:RibbonWindow.HeaderItems>
- <syncfusion:RibbonWindow.StatusBar>
- <syncfusion:RibbonStatusBar Height="30" Background="DimGray" />
- </syncfusion:RibbonWindow.StatusBar>
- <Grid Background="WhiteSmoke">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <!--syncfusion:Ribbon x:Name="_ribbon" Grid.Row="0" syncfusion:Ribbon.IsAutoSizeFormEnabled="False"
- RibbonState="Normal" MinimizeButtonVisibility="Collapsed" Background="White"
- Style="{StaticResource RibbonStyle}" Margin="-1"-->
- <syncfusion:Ribbon x:Name="_ribbon" Grid.Row="0" syncfusion:Ribbon.IsAutoSizeFormEnabled="False"
- RibbonState="Normal" MinimizeButtonVisibility="Collapsed" Background="White"
- Margin="-1">
- <syncfusion:RibbonTab x:Name="SecondaryTab" Caption="Quotes" IsChecked="False" Visibility="Visible">
- <syncfusion:RibbonBar x:Name="Actions" Header="Actions" LauncherClick="ManageModulesClick"
- IsLauncherButtonVisible="True">
- <syncfusion:RibbonButton x:Name="Refresh" SizeForm="Large" Label="Refresh"
- LargeIcon="pack://application:,,,/Resources/refresh.png"
- Click="RefreshMenu_Click" MinWidth="60" />
- <syncfusion:RibbonSeparator x:Name="Separator" Visibility="Collapsed" />
- </syncfusion:RibbonBar>
- <syncfusion:RibbonBar x:Name="Print" Header="Print" LauncherClick="ManageReportsClick"
- IsLauncherButtonVisible="True" />
- </syncfusion:RibbonTab>
- </syncfusion:Ribbon>
- <Border x:Name="ContentBorder" Grid.Row="2" Margin="-1" Padding="3" />
- </Grid>
- </syncfusion:RibbonWindow>
|