Changeset 8597


Ignore:
Timestamp:
Feb 4, 2020, 7:19:34 PM (2 years ago)
Author:
Sven Rech
Message:

PlayfairAnalyzer: Fixed context menu

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/PlayfairAnalyzer/AssignmentPresentation.xaml

    r8563 r8597  
    2424
    2525        <crypanalysisviewcontrol:CrypAnalysisResultListView ItemsSource="{Binding}" ResultItemAction="HandleResultItemAction">
    26             <crypanalysisviewcontrol:CrypAnalysisResultListView.ItemContainerStyle>
    27                 <Style TargetType="ListViewItem">
    28                     <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
    29                 </Style>
    30             </crypanalysisviewcontrol:CrypAnalysisResultListView.ItemContainerStyle>
    3126            <crypanalysisviewcontrol:CrypAnalysisResultListView.View>
    3227                <GridView>
     
    4742                    <GridViewColumn Header="{Loc KeyHeader}" DisplayMemberBinding="{Binding Path=Key}" Width="180" />
    4843                    <GridViewColumn Header="{Loc TextHeader}" DisplayMemberBinding="{Binding Path=Text}" Width="170" />
    49                     <GridViewColumn x:Name="Test" Header="{Loc ElapsedHeader}"
     44                    <GridViewColumn Header="{Loc ElapsedHeader}"
    5045                                    Width="{Binding Settings.AdvancedBestListView, ElementName=presentation, Converter={StaticResource GridViewColumnVisibilityConverter}, ConverterParameter=Auto}">
    5146                        <GridViewColumn.CellTemplate>
  • trunk/LibSource/CrypAnalysisViewControl/CrypAnalysisResultListView.cs

    r8393 r8597  
    3434            var itemContainerStyle = new Style(typeof(ListViewItem), ItemContainerStyle);
    3535            itemContainerStyle.Setters.Add(new EventSetter(MouseDoubleClickEvent, new MouseButtonEventHandler(ItemDoubleClickHandler)));
     36            itemContainerStyle.Setters.Add(new Setter(HorizontalContentAlignmentProperty, HorizontalAlignment.Stretch));
    3637            ItemContainerStyle = itemContainerStyle;
    3738        }
Note: See TracChangeset for help on using the changeset viewer.