123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- <UserControl
- x:Class="PDF_Master.Views.BOTA.AnnotationContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:bota="clr-namespace:PDF_Master.ViewModels.BOTA"
- xmlns:convert="clr-namespace:PDF_Master.DataConvert"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:data="clr-namespace:ComPDFKit.PDFDocument;assembly=ComPDFKit.Desk"
- xmlns:helper="clr-namespace:PDF_Master.Helper"
- xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:local="clr-namespace:PDF_Master.Views.BOTA"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:property="clr-namespace:PDF_Master.Properties"
- d:DataContext="{d:DesignInstance Type=bota:AnnotationContentViewModel}"
- d:DesignHeight="450"
- d:DesignWidth="300"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="pack://application:,,,/Styles/ButtonStyle.xaml" />
- <ResourceDictionary Source="pack://application:,,,/Styles/ComboxStyle.xaml" />
- <ResourceDictionary Source="pack://application:,,,/Styles/ListViewStyle.xaml" />
- <ResourceDictionary Source="pack://application:,,,/Styles/ExpanderStyle.xaml" />
- </ResourceDictionary.MergedDictionaries>
- <DataTemplate x:Key="AnnotationListItemTemplate">
- <local:AnnotationListItem />
- </DataTemplate>
- <ContextMenu x:Key="ContextMenu" Loaded="ContextMenu_Loaded">
- <MenuItem Name="MenuItemCopyText" Click="MenuItemCopyText_Click" />
- <MenuItem />
- <MenuItem />
- <MenuItem Name="MenuItemDelete" Click="MenuItemDelete_Click" />
- </ContextMenu>
- <SolidColorBrush x:Key="path.fill" Color="#616469" />
- <convert:IntToBooleanConvert x:Key="IntToBooleanConvert" />
- <convert:AnnotateFontSizeConverter x:Key="AnnotateFontSizeConverter" />
- <convert:GroupHeaderConverter x:Key="GroupHeaderConverter" />
- <convert:UnVisibleToBoolConvert x:Key="UnvisibleToBool" />
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid PreviewMouseLeftButtonDown="Grid_PreviewMouseLeftButtonDown">
- <Grid.RowDefinitions>
- <RowDefinition Height="48" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="29*" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <ListBox
- x:Name="AnnotationList"
- Grid.ColumnSpan="3"
- HorizontalContentAlignment="Stretch"
- Background="{StaticResource color.sys.layout.mg}"
- BorderThickness="0"
- ItemTemplate="{StaticResource AnnotationListItemTemplate}"
- ItemsSource="{Binding AnnotationListItems}"
- MouseDown="ListBox_MouseDown"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled"
- SelectionChanged="AnnotationList_SelectionChanged"
- SelectionMode="Extended">
- <ListBox.ItemContainerStyle>
- <Style TargetType="ListBoxItem">
- <Setter Property="HorizontalContentAlignment" Value="Stretch" />
- <EventSetter Event="PreviewMouseDown" Handler="ListBoxItem_PreviewMouseDown" />
- <EventSetter Event="PreviewMouseDoubleClick" Handler="ListBoxItem_PreviewMouseDoubleClick" />
- <Setter Property="Template" Value="{StaticResource AnnotationListItemStyle}" />
- <Setter Property="Padding" Value="0" />
- <Setter Property="Margin" Value="0,-1,0,-1" />
- <Setter Property="ContextMenu" Value="{StaticResource ContextMenu}" />
- </Style>
- </ListBox.ItemContainerStyle>
- <ListBox.GroupStyle>
- <GroupStyle>
- <GroupStyle.ContainerStyle>
- <Style TargetType="{x:Type GroupItem}">
- <Setter Property="Background" Value="{StaticResource color.sys.layout.mg}" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type GroupItem}">
- <Expander
- Name="Expander"
- Margin="-1,-1,-1,-1"
- HorizontalAlignment="Stretch"
- HorizontalContentAlignment="Stretch"
- VerticalContentAlignment="Stretch"
- Style="{StaticResource GropExpanderHeader}">
- <Expander.Header>
- <Grid
- Height="25"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Stretch">
- <Grid.RowDefinitions>
- <RowDefinition />
- </Grid.RowDefinitions>
- <TextBlock
- Name="GroupTitle"
- Margin="10,0,0,0"
- VerticalAlignment="Center"
- FontFamily="Segoe UI Semibold"
- FontSize="14"
- FontWeight="SemiBold"
- Text="{Binding Name, Converter={StaticResource GroupHeaderConverter}}"
- TextAlignment="Left" />
- <!--<TextBlock
- Name="Count"
- Margin="0,0,8,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Center"
- FontFamily="Segoe UI Semibold"
- FontSize="{Binding Source={x:Static property:Settings.Default}, Path=AnnotateFontSize, Converter={StaticResource AnnotateFontSizeConverter}}"
- FontWeight="SemiBold"
- Foreground="#FF666666"
- Text="{Binding ItemCount}"
- TextAlignment="Right" />-->
- </Grid>
- </Expander.Header>
- <!--<Expander.Content>
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Expander.Content>-->
- <ItemsPresenter />
- </Expander>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </GroupStyle.ContainerStyle>
- </GroupStyle>
- </ListBox.GroupStyle>
- <!--<ListBox.ContextMenu>
- <ContextMenu DataContext="{Binding PlacementTarget.Tag, RelativeSource={RelativeSource Self}}" FontSize="14">
- <MenuItem
- Name="MenuItemCopyText"
- CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}, Path=PlacementTarget.DataContext}"
- Header="复制文本" />
- <MenuItem
- Command="{Binding DataContext.EditPageIndexCommand, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
- CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}, Path=PlacementTarget.DataContext}"
- Header="添加笔记" />
- <MenuItem CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}, Path=PlacementTarget.DataContext}" Header="导出注释为XFDF格式 " />
- <MenuItem CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ContextMenu}, Path=PlacementTarget.DataContext}" Header="删除" />
- </ContextMenu>
- </ListBox.ContextMenu>-->
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="Loaded">
- <helper:AdvancedInvokeCommandAction
- Command="{Binding DataContext.LoadedCommand, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"
- CommandParameter="{Binding ElementName=AnnotationList}"
- PassEventArgsToCommand="True" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </ListBox>
- <StackPanel
- Name="EmptyPanel"
- Grid.ColumnSpan="2"
- VerticalAlignment="Center"
- Visibility="{Binding IsEmptyPanelVisibility}">
- <Image
- Width="128"
- Height="128"
- Source="pack://application:,,,/Resources/BOTA/empty_annotation.png" />
- <TextBlock
- Name="txtEmpty"
- Margin="0,12,0,0"
- FontFamily="Segoe UI"
- FontSize="16"
- Text="{Binding T_EmptyTitle}"
- TextAlignment="Center" />
- <TextBlock
- Name="txtEmpty2"
- Width="150"
- Margin="0,12,0,0"
- FontFamily="Segoe UI"
- FontSize="16"
- Foreground="#94989C"
- Text="{Binding T_EmptyContext}"
- TextAlignment="Center"
- TextWrapping="Wrap"
- Visibility="{Binding IsHideAnnotPanelVisibility}" />
- </StackPanel>
- <!--<StackPanel
- Name="HideAnnotPanel"
- Grid.ColumnSpan="2"
- VerticalAlignment="Center"
- Visibility="{Binding IsHideAnnotPanelVisibility}">
- <Image
- Width="128"
- Height="128"
- Source="pack://application:,,,/Resources/BOTA/HideAnnot.png" />
- <TextBlock
- Name="txtHideAnnot"
- Margin="0,12,0,0"
- FontFamily="Segoe UI"
- FontSize="16"
- Text="{Binding T_EmptyTitle}"
- TextAlignment="Center" />
- </StackPanel>-->
- </Grid>
- <Border BorderBrush="{StaticResource color.field.border.norm}" BorderThickness="0,0,0,1">
- <Grid
- Name="TopGrid"
- Grid.Row="0"
- Background="{StaticResource color.sys.layout.mg}">
- <TextBlock
- x:Name="Title"
- Margin="16,0,0,0"
- VerticalAlignment="Center"
- FontFamily="Segoe UI"
- FontSize="14"
- FontWeight="SemiBold"
- Foreground="{StaticResource color.sys.text.neutral.lv1}"
- Text="{Binding T_Title}"
- TextAlignment="Left" />
- <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
- <Grid Width="32" Height="32">
- <Button
- x:Name="BtnScreen"
- Width="32"
- Height="32"
- HorizontalAlignment="Right"
- Command="{Binding ScreenCommand}"
- CommandParameter="{Binding ElementName=BtnScreen}"
- Focusable="False"
- IsEnabled="{Binding ElementName=AnnotationList, Path=Items.Count, Converter={StaticResource IntToBooleanConvert}}"
- Style="{StaticResource PageEditToolBtn}">
- <Path
- Width="32"
- Height="32"
- Data="M15.5 14.7629V21.3136L16.5 21.7367V14.7629L20.4595 11.8299C20.485 11.8111 20.5 11.7813 20.5 11.7496V10.5H11.5V11.7496C11.5 11.7813 11.515 11.8111 11.5405 11.83L15.5 14.7629ZM15.0727 21.1328C15.0724 21.1327 15.0731 21.133 15.0727 21.1328V21.1328ZM10 9.8C10 9.35817 10.3582 9 10.8 9H21.2C21.6418 9 22 9.35817 22 9.8V11.7496C22 12.2566 21.7597 12.7335 21.3524 13.0353L18 15.5185V22.7929C18 23.3656 17.4158 23.7528 16.8883 23.5297L14.4883 22.5143C14.1923 22.3891 14 22.0989 14 21.7775V15.5185L10.6476 13.0353C10.2403 12.7335 10 12.2566 10 11.7496V9.8Z"
- Fill="{StaticResource path.fill}" />
- </Button>
- <Ellipse
- Width="6"
- Height="6"
- Margin="0,8,8,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Fill="#1770F4"
- Visibility="{Binding Screen, Mode=TwoWay}" />
- </Grid>
- <Button
- Name="BtnMore"
- Width="40"
- Margin="0,0,10,0"
- HorizontalAlignment="Right"
- Click="BtnMore_Click"
- Initialized="BtnMore_Initialized"
- Style="{StaticResource PageEditToolBtn}">
- <Path Data="M3 2C3 2.82843 2.32843 3.5 1.5 3.5C0.671573 3.5 0 2.82843 0 2C0 1.17157 0.671573 0.5 1.5 0.5C2.32843 0.5 3 1.17157 3 2ZM8.3999 2C8.3999 2.82843 7.72833 3.5 6.8999 3.5C6.07148 3.5 5.3999 2.82843 5.3999 2C5.3999 1.17157 6.07148 0.5 6.8999 0.5C7.72833 0.5 8.3999 1.17157 8.3999 2ZM12.5 3.5C13.3284 3.5 14 2.82843 14 2C14 1.17157 13.3284 0.5 12.5 0.5C11.6716 0.5 11 1.17157 11 2C11 2.82843 11.6716 3.5 12.5 3.5Z" Fill="{StaticResource path.fill}">
- <Path.RenderTransform>
- <TransformGroup>
- <TranslateTransform Y="-3" />
- </TransformGroup>
- </Path.RenderTransform>
- </Path>
- <Button.ContextMenu>
- <ContextMenu
- Name="MenuMore"
- Width="auto"
- Placement="Bottom">
- <!--<ContextMenu.ItemContainerStyle>
- <Style TargetType="MenuItem">
- <Setter Property="Padding" Value="-25,7,-35,7" />
- </Style>
- </ContextMenu.ItemContainerStyle>-->
- <MenuItem
- Name="MenuExpandAll"
- Width="auto"
- Click="MenuExpandAll_Click"
- Header="{Binding T_Expand}"
- IsEnabled="{Binding IsEmptyPanelVisibility, Converter={StaticResource UnvisibleToBool}}">
- <MenuItem.Icon>
- <Border Background="Transparent" />
- </MenuItem.Icon>
- </MenuItem>
- <MenuItem
- Name="MenuCollapseAll"
- Click="MenuCollapseAll_Click"
- Header="{Binding T_Collapse}"
- IsEnabled="{Binding IsEmptyPanelVisibility, Converter={StaticResource UnvisibleToBool}}" />
- <MenuItem Name="MenuSort" Visibility="Collapsed">
- <MenuItem.Header>
- <TextBlock Name="MenuSortText" Text="排序" />
- </MenuItem.Header>
- <MenuItem Name="MenuPageSort" Command="{Binding PageSortCommand}">
- <!--<MenuItem.Icon>
- <Path
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Data="M10.807106,0.0999999046 L15.0999992,5.39289312 L15.0999992,15.8999991 L0.899999857,15.8999991 L0.899999857,0.0999999046 L10.807106,0.0999999046 Z M10.3929999,1.0999999 L1.89999986,1.0999999 L1.89999986,14.8989999 L14.0989999,14.8989999 L14.0989999,5.8059999 L10.3929999,1.0999999 Z M8,10.53125 C8.15885417,10.53125 8.29361979,10.5833333 8.40429688,10.6875 C8.51497396,10.7916667 8.5703125,10.9166667 8.5703125,11.0625 C8.5703125,11.2057292 8.51497396,11.328776 8.40429688,11.4316406 C8.29361979,11.5345052 8.15885417,11.5859375 8,11.5859375 C7.84375,11.5859375 7.7109375,11.5345052 7.6015625,11.4316406 C7.4921875,11.328776 7.4375,11.2057292 7.4375,11.0625 C7.4375,10.9166667 7.4921875,10.7916667 7.6015625,10.6875 C7.7109375,10.5833333 7.84375,10.53125 8,10.53125 Z M6.21875,5.7734375 L6.21875,11.5 L5.3125,11.5 L5.3125,6.8828125 C5.1484375,7 4.97200521,7.09960938 4.78320312,7.18164062 C4.59440104,7.26367188 4.37890625,7.3359375 4.13671875,7.3984375 L4.13671875,7.3984375 L4.13671875,6.625 C4.28776042,6.57552083 4.43359375,6.5234375 4.57421875,6.46875 C4.71484375,6.4140625 4.85351562,6.35286458 4.99023438,6.28515625 C5.12695312,6.21744792 5.26497396,6.14192708 5.40429688,6.05859375 C5.54361979,5.97526042 5.6875,5.88020833 5.8359375,5.7734375 L5.8359375,5.7734375 L6.21875,5.7734375 Z M11.3671875,5.7734375 L11.3671875,11.5 L10.4609375,11.5 L10.4609375,6.8828125 C10.296875,7 10.1204427,7.09960938 9.93164062,7.18164062 C9.74283854,7.26367188 9.52734375,7.3359375 9.28515625,7.3984375 L9.28515625,7.3984375 L9.28515625,6.625 C9.43619792,6.57552083 9.58203125,6.5234375 9.72265625,6.46875 C9.86328125,6.4140625 10.0019531,6.35286458 10.1386719,6.28515625 C10.2753906,6.21744792 10.4134115,6.14192708 10.5527344,6.05859375 C10.6920573,5.97526042 10.8359375,5.88020833 10.984375,5.7734375 L10.984375,5.7734375 L11.3671875,5.7734375 Z M8,7.44140625 C8.15885417,7.44140625 8.29361979,7.49348958 8.40429688,7.59765625 C8.51497396,7.70182292 8.5703125,7.82682292 8.5703125,7.97265625 C8.5703125,8.11588542 8.51497396,8.23893229 8.40429688,8.34179688 C8.29361979,8.44466146 8.15885417,8.49609375 8,8.49609375 C7.84375,8.49609375 7.7109375,8.44466146 7.6015625,8.34179688 C7.4921875,8.23893229 7.4375,8.11588542 7.4375,7.97265625 C7.4375,7.82682292 7.4921875,7.70182292 7.6015625,7.59765625 C7.7109375,7.49348958 7.84375,7.44140625 8,7.44140625 Z"
- Fill="Black" />
- </MenuItem.Icon>-->
- <MenuItem.Header>
- <TextBlock Name="MenuPageSortText" Text="按页面排序" />
- </MenuItem.Header>
- </MenuItem>
- <MenuItem
- Name="MenuTimeAscending"
- Command="{Binding TimeAscendingCommand}"
- Visibility="Collapsed">
- <!--<MenuItem.Icon>
- <Path
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Data="M10.807106,0.0999999046 L15.0999992,5.39289312 L15.0999992,15.8999991 L0.899999857,15.8999991 L0.899999857,0.0999999046 L10.807106,0.0999999046 Z M10.3929999,1.0999999 L1.89999986,1.0999999 L1.89999986,14.8989999 L14.0989999,14.8989999 L14.0989999,5.8059999 L10.3929999,1.0999999 Z M8,10.53125 C8.15885417,10.53125 8.29361979,10.5833333 8.40429688,10.6875 C8.51497396,10.7916667 8.5703125,10.9166667 8.5703125,11.0625 C8.5703125,11.2057292 8.51497396,11.328776 8.40429688,11.4316406 C8.29361979,11.5345052 8.15885417,11.5859375 8,11.5859375 C7.84375,11.5859375 7.7109375,11.5345052 7.6015625,11.4316406 C7.4921875,11.328776 7.4375,11.2057292 7.4375,11.0625 C7.4375,10.9166667 7.4921875,10.7916667 7.6015625,10.6875 C7.7109375,10.5833333 7.84375,10.53125 8,10.53125 Z M6.21875,5.7734375 L6.21875,11.5 L5.3125,11.5 L5.3125,6.8828125 C5.1484375,7 4.97200521,7.09960938 4.78320312,7.18164062 C4.59440104,7.26367188 4.37890625,7.3359375 4.13671875,7.3984375 L4.13671875,7.3984375 L4.13671875,6.625 C4.28776042,6.57552083 4.43359375,6.5234375 4.57421875,6.46875 C4.71484375,6.4140625 4.85351562,6.35286458 4.99023438,6.28515625 C5.12695312,6.21744792 5.26497396,6.14192708 5.40429688,6.05859375 C5.54361979,5.97526042 5.6875,5.88020833 5.8359375,5.7734375 L5.8359375,5.7734375 L6.21875,5.7734375 Z M11.3671875,5.7734375 L11.3671875,11.5 L10.4609375,11.5 L10.4609375,6.8828125 C10.296875,7 10.1204427,7.09960938 9.93164062,7.18164062 C9.74283854,7.26367188 9.52734375,7.3359375 9.28515625,7.3984375 L9.28515625,7.3984375 L9.28515625,6.625 C9.43619792,6.57552083 9.58203125,6.5234375 9.72265625,6.46875 C9.86328125,6.4140625 10.0019531,6.35286458 10.1386719,6.28515625 C10.2753906,6.21744792 10.4134115,6.14192708 10.5527344,6.05859375 C10.6920573,5.97526042 10.8359375,5.88020833 10.984375,5.7734375 L10.984375,5.7734375 L11.3671875,5.7734375 Z M8,7.44140625 C8.15885417,7.44140625 8.29361979,7.49348958 8.40429688,7.59765625 C8.51497396,7.70182292 8.5703125,7.82682292 8.5703125,7.97265625 C8.5703125,8.11588542 8.51497396,8.23893229 8.40429688,8.34179688 C8.29361979,8.44466146 8.15885417,8.49609375 8,8.49609375 C7.84375,8.49609375 7.7109375,8.44466146 7.6015625,8.34179688 C7.4921875,8.23893229 7.4375,8.11588542 7.4375,7.97265625 C7.4375,7.82682292 7.4921875,7.70182292 7.6015625,7.59765625 C7.7109375,7.49348958 7.84375,7.44140625 8,7.44140625 Z"
- Fill="Black" />
- </MenuItem.Icon>-->
- <MenuItem.Header>
- <TextBlock Name="MenuTimeAscendingText" Text="按时间正序排列" />
- </MenuItem.Header>
- </MenuItem>
- <MenuItem
- Name="MenuTimeDescending"
- Command="{Binding TimeDescendingCommand}"
- Visibility="Collapsed">
- <!--<MenuItem.Icon>
- <Path
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Data="M10.807106,0.0999999046 L15.0999992,5.39289312 L15.0999992,15.8999991 L0.899999857,15.8999991 L0.899999857,0.0999999046 L10.807106,0.0999999046 Z M10.3929999,1.0999999 L1.89999986,1.0999999 L1.89999986,14.8989999 L14.0989999,14.8989999 L14.0989999,5.8059999 L10.3929999,1.0999999 Z M8,10.53125 C8.15885417,10.53125 8.29361979,10.5833333 8.40429688,10.6875 C8.51497396,10.7916667 8.5703125,10.9166667 8.5703125,11.0625 C8.5703125,11.2057292 8.51497396,11.328776 8.40429688,11.4316406 C8.29361979,11.5345052 8.15885417,11.5859375 8,11.5859375 C7.84375,11.5859375 7.7109375,11.5345052 7.6015625,11.4316406 C7.4921875,11.328776 7.4375,11.2057292 7.4375,11.0625 C7.4375,10.9166667 7.4921875,10.7916667 7.6015625,10.6875 C7.7109375,10.5833333 7.84375,10.53125 8,10.53125 Z M6.21875,5.7734375 L6.21875,11.5 L5.3125,11.5 L5.3125,6.8828125 C5.1484375,7 4.97200521,7.09960938 4.78320312,7.18164062 C4.59440104,7.26367188 4.37890625,7.3359375 4.13671875,7.3984375 L4.13671875,7.3984375 L4.13671875,6.625 C4.28776042,6.57552083 4.43359375,6.5234375 4.57421875,6.46875 C4.71484375,6.4140625 4.85351562,6.35286458 4.99023438,6.28515625 C5.12695312,6.21744792 5.26497396,6.14192708 5.40429688,6.05859375 C5.54361979,5.97526042 5.6875,5.88020833 5.8359375,5.7734375 L5.8359375,5.7734375 L6.21875,5.7734375 Z M11.3671875,5.7734375 L11.3671875,11.5 L10.4609375,11.5 L10.4609375,6.8828125 C10.296875,7 10.1204427,7.09960938 9.93164062,7.18164062 C9.74283854,7.26367188 9.52734375,7.3359375 9.28515625,7.3984375 L9.28515625,7.3984375 L9.28515625,6.625 C9.43619792,6.57552083 9.58203125,6.5234375 9.72265625,6.46875 C9.86328125,6.4140625 10.0019531,6.35286458 10.1386719,6.28515625 C10.2753906,6.21744792 10.4134115,6.14192708 10.5527344,6.05859375 C10.6920573,5.97526042 10.8359375,5.88020833 10.984375,5.7734375 L10.984375,5.7734375 L11.3671875,5.7734375 Z M8,7.44140625 C8.15885417,7.44140625 8.29361979,7.49348958 8.40429688,7.59765625 C8.51497396,7.70182292 8.5703125,7.82682292 8.5703125,7.97265625 C8.5703125,8.11588542 8.51497396,8.23893229 8.40429688,8.34179688 C8.29361979,8.44466146 8.15885417,8.49609375 8,8.49609375 C7.84375,8.49609375 7.7109375,8.44466146 7.6015625,8.34179688 C7.4921875,8.23893229 7.4375,8.11588542 7.4375,7.97265625 C7.4375,7.82682292 7.4921875,7.70182292 7.6015625,7.59765625 C7.7109375,7.49348958 7.84375,7.44140625 8,7.44140625 Z"
- Fill="Black" />
- </MenuItem.Icon>-->
- <MenuItem.Header>
- <TextBlock Name="MenuTimeDescendingText" Text="按时间倒序排列" />
- </MenuItem.Header>
- </MenuItem>
- </MenuItem>
- <MenuItem
- Name="MenuImport"
- Command="{Binding ImportCommentsCommand}"
- Header="{Binding T_Import}" />
- <MenuItem
- Name="MenuExport"
- Command="{Binding ExportCommentsCommand}"
- Header="{Binding T_Export}" />
- <MenuItem
- Name="MenuDeleteAll"
- Command="{Binding DeleteAllCommand}"
- Header="{Binding T_DeleteAll}" />
- </ContextMenu>
- </Button.ContextMenu>
- </Button>
- </StackPanel>
- </Grid>
- </Border>
- </Grid>
- </UserControl>
|