|
77 | 77 | </DataTrigger> |
78 | 78 | </Style.Triggers> |
79 | 79 | </Style> |
80 | | - |
| 80 | + |
81 | 81 | </Window.Resources> |
82 | 82 | <DockPanel Background="WhiteSmoke" > |
83 | 83 | <Menu DockPanel.Dock="Top" BorderBrush="Silver" BorderThickness="0,0,0,1"> |
84 | 84 | <MenuItem Header="_File" > |
85 | 85 | <MenuItem Header="_New" Click="New_MenuItem_Click" > |
86 | 86 | <MenuItem.Icon> |
87 | 87 | <Image Source="{StaticResource NewPicture}" /> |
88 | | - </MenuItem.Icon> |
| 88 | + </MenuItem.Icon> |
89 | 89 | </MenuItem> |
90 | 90 | <Separator/> |
91 | 91 | <MenuItem Header="_Open" Click="Open_MenuItem_Click"> |
92 | 92 | <MenuItem.Icon> |
93 | | - <Image Source="{StaticResource OpenPicture}" /> |
| 93 | + <Image Source="{StaticResource OpenPicture}" /> |
94 | 94 | </MenuItem.Icon> |
95 | 95 | </MenuItem> |
96 | 96 | <MenuItem Header="Save _As..." Click="Save_as_MenuItem_Click" > |
|
582 | 582 | </Grid.RowDefinitions> |
583 | 583 | <DockPanel> |
584 | 584 | <Grid DockPanel.Dock="Top"> |
| 585 | + <Grid.ColumnDefinitions> |
| 586 | + <ColumnDefinition Width="185*"/> |
| 587 | + <ColumnDefinition Width="279*"/> |
| 588 | + </Grid.ColumnDefinitions> |
585 | 589 | <Grid.RowDefinitions> |
586 | 590 | <RowDefinition Height="Auto" /> |
587 | 591 | </Grid.RowDefinitions> |
588 | 592 | <Label Content="_Find..." |
589 | 593 | VerticalAlignment="Center" |
590 | | - Margin="2,0" |
| 594 | + Margin="2,1" |
591 | 595 | Padding="0" |
592 | 596 | Target="{Binding ElementName=FindLanguageElementTextBox}" |
593 | | - Foreground="Gray" /> |
| 597 | + Foreground="Gray" Grid.ColumnSpan="2" /> |
594 | 598 | <TextBox x:Name="FindLanguageElementTextBox" |
595 | 599 | TextChanged="FindLanguageElementTextBox_TextChanged" |
596 | 600 | PreviewKeyDown="FindLanguageElementTextBox_PreviewKeyDown" |
597 | | - local:TextBoxHelper.ClearOnKey="Esc"> |
| 601 | + local:TextBoxHelper.ClearOnKey="Esc" Grid.ColumnSpan="2"> |
598 | 602 | <TextBox.Background> |
599 | 603 | <MultiBinding Converter="{converters:ExpressionEvalMultiBindingConverter Expression='bindings[0] || bindings[1].Length > 0 ? Brushes.White : Brushes.Transparent'}"> |
600 | 604 | <Binding ElementName="FindLanguageElementTextBox" Path="IsFocused" /> |
|
608 | 612 | Background="Transparent" |
609 | 613 | HorizontalAlignment="Right" |
610 | 614 | VerticalAlignment="Center" |
611 | | - Visibility="{Binding Text, ElementName=FindLanguageElementTextBox, Converter={converters:ExpressionEvalConverter Expression='binding.Length > 0 ? Visibility.Visible : Visibility.Collapsed'}}"> |
| 615 | + Visibility="{Binding Text, ElementName=FindLanguageElementTextBox, Converter={converters:ExpressionEvalConverter Expression='binding.Length > 0 ? Visibility.Visible : Visibility.Collapsed'}}" Grid.Column="1" Margin="0,9"> |
612 | 616 | <Path x:Name="ButtonPath" |
613 | 617 | Margin="3" |
614 | 618 | Stroke="Black" |
|
724 | 728 | </Grid> |
725 | 729 | </TabItem> |
726 | 730 | <TabItem x:Name="RegOptionsTabItem" Header="Regex Op_tions" > |
727 | | - <ItemsControl Name="icRegexOptions"> |
728 | | - <ItemsControl.ItemTemplate> |
729 | | - <DataTemplate> |
730 | | - <CheckBox IsChecked="{Binding Selected}" |
731 | | - Content="{Binding Name}" /> |
732 | | - </DataTemplate> |
733 | | - </ItemsControl.ItemTemplate> |
734 | | - </ItemsControl> |
| 731 | + <StackPanel> |
| 732 | + <ItemsControl Name="icRegexOptions"> |
| 733 | + <ItemsControl.ItemTemplate> |
| 734 | + <DataTemplate> |
| 735 | + <CheckBox IsChecked="{Binding Selected}" |
| 736 | + Content="{Binding Name}" |
| 737 | + ToolTip="{Binding Description}"/> |
| 738 | + </DataTemplate> |
| 739 | + </ItemsControl.ItemTemplate> |
| 740 | + </ItemsControl> |
| 741 | + <TextBlock> |
| 742 | + <Hyperlink NavigateUri="https://docs.microsoft.com/en-us/dotnet/api/system.text.regularexpressions.regexoptions" |
| 743 | + RequestNavigate="Hyperlink_RequestNavigate"> |
| 744 | + More informations on Regex options |
| 745 | + </Hyperlink> |
| 746 | + </TextBlock> |
| 747 | + |
| 748 | + </StackPanel> |
735 | 749 | </TabItem> |
736 | 750 | <TabItem x:Name="TextSourceTabItem" Header="Ot_her Options"> |
737 | 751 | <DockPanel> |
|
0 commit comments