|
610 | 610 | </GroupBox.Resources> |
611 | 611 | <DockPanel> |
612 | 612 | <WrapPanel Margin="5" DockPanel.Dock="Top"> |
613 | | - <RadioButton x:Name="CurrentTabTextSourceRadioButton" |
| 613 | + <RadioButton x:Name="CurrentTabTextSourceRadioButton" |
614 | 614 | Margin="5,0" |
615 | 615 | Content="Current _tab" |
616 | 616 | IsChecked="{Binding TextSourceOn, Converter={converters:EnumBooleanConverter}, ConverterParameter='CurrentTab'}" /> |
617 | | - <RadioButton x:Name="CurrentSelectedTextSourceRadioButton" |
| 617 | + <RadioButton x:Name="CurrentSelectedTextSourceRadioButton" |
618 | 618 | Margin="5,0" |
619 | 619 | Content="Current se_lection" |
620 | 620 | IsChecked="{Binding TextSourceOn, Converter={converters:EnumBooleanConverter}, ConverterParameter='CurrentSelection'}"/> |
621 | | - <RadioButton x:Name="SpecifiedDirectoryTextSourceRadioButton" |
| 621 | + <RadioButton x:Name="SpecifiedDirectoryTextSourceRadioButton" |
622 | 622 | Margin="5,0" |
623 | 623 | Content="Specified _directory" |
624 | 624 | IsChecked="{Binding TextSourceOn, Converter={converters:EnumBooleanConverter}, ConverterParameter='Directory'}"/> |
625 | | - <RadioButton x:Name="CSharpScriptTextSourceRadioButton" |
| 625 | + <RadioButton x:Name="CSharpScriptTextSourceRadioButton" |
626 | 626 | Margin="5,0" |
627 | 627 | Content="C# _Script" |
628 | 628 | IsChecked="{Binding TextSourceOn, Converter={converters:EnumBooleanConverter}, ConverterParameter='CSharpScript'}"/> |
629 | 629 | </WrapPanel> |
630 | | - |
| 630 | + |
631 | 631 | <StackPanel Margin="5" |
632 | 632 | DockPanel.Dock="Top" |
633 | 633 | Visibility="{Binding IsChecked, ElementName=SpecifiedDirectoryTextSourceRadioButton, Converter={converters:CustomBoolToVisibilityConverter}}"> |
|
643 | 643 | ItemsSource="{Binding TextSourceDirectoryPathHistory}" |
644 | 644 | IsEditable="True"/> |
645 | 645 | </DockPanel> |
646 | | - |
| 646 | + |
647 | 647 | <Grid Margin="0,5"> |
648 | 648 | <Grid.ColumnDefinitions> |
649 | 649 | <ColumnDefinition Width="Auto" /> |
|
674 | 674 | </StackPanel> |
675 | 675 | </StackPanel> |
676 | 676 |
|
677 | | - <Border BorderBrush="Gray" |
678 | | - BorderThickness="1" |
679 | | - Visibility="{Binding IsChecked, ElementName=CSharpScriptTextSourceRadioButton, Converter={converters:CustomBoolToVisibilityConverter}}"> |
680 | | - <avalonEdit:TextEditor |
681 | | - Name="TextSourceEditor" |
682 | | - FontFamily="Consolas" |
683 | | - FontSize="12" |
684 | | - SyntaxHighlighting="C#" |
685 | | - ShowLineNumbers="True" |
686 | | - ScrollViewer.HorizontalScrollBarVisibility="Auto" /> |
687 | | - </Border> |
| 677 | + <DockPanel Visibility="{Binding IsChecked, ElementName=CSharpScriptTextSourceRadioButton, Converter={converters:CustomBoolToVisibilityConverter}}" > |
| 678 | + <WrapPanel DockPanel.Dock="Top"> |
| 679 | + <WrapPanel.Resources> |
| 680 | + <Style BasedOn="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" TargetType="Button" /> |
| 681 | + <Style BasedOn="{StaticResource {x:Static ToolBar.ToggleButtonStyleKey}}" TargetType="ToggleButton" /> |
| 682 | + </WrapPanel.Resources> |
| 683 | + <ToggleButton x:Name="ToggleShowLinesNumberInCSharpTextSourceButton" |
| 684 | + IsChecked="{Binding ShowLinesNumbersCSharpTextSourceEditorOption}"> |
| 685 | + <StackPanel Orientation="Horizontal"> |
| 686 | + <Image Source="{StaticResource ShowLinesNumbers}" Width="16" Height="16" ToolTip="Show/Hide lines numbers"/> |
| 687 | + </StackPanel> |
| 688 | + </ToggleButton> |
| 689 | + <ToggleButton x:Name="ToggleShowSpacesInCSharpTextSourceButton" |
| 690 | + IsChecked="{Binding ShowSpaceCharsCSharpTextSourceEditorOption}"> |
| 691 | + <StackPanel Orientation="Horizontal"> |
| 692 | + <Image Source="{StaticResource ShowSpaces}" Width="16" Height="16" ToolTip="Show/Hide Spaces and tabulations" /> |
| 693 | + </StackPanel> |
| 694 | + </ToggleButton> |
| 695 | + <ToggleButton x:Name="ToggleShowReturnsInCSharpTextSourceButton" |
| 696 | + IsChecked="{Binding ShowEndOfLinesCSharpTextSourceEditorOption}"> |
| 697 | + <StackPanel Orientation="Horizontal"> |
| 698 | + <Image Source="{StaticResource ShowReturns}" Width="16" Height="16" ToolTip="Show/Hide end of lines" /> |
| 699 | + </StackPanel> |
| 700 | + </ToggleButton> |
| 701 | + |
| 702 | + </WrapPanel> |
| 703 | + <Border BorderBrush="Gray" |
| 704 | + BorderThickness="1"> |
| 705 | + <avalonEdit:TextEditor |
| 706 | + Name="TextSourceEditor" |
| 707 | + FontFamily="Consolas" |
| 708 | + FontSize="12" |
| 709 | + SyntaxHighlighting="C#" |
| 710 | + ShowLineNumbers="{Binding ShowLinesNumbersCSharpTextSourceEditorOption}" |
| 711 | + ScrollViewer.HorizontalScrollBarVisibility="Auto" > |
| 712 | + <i:Interaction.Behaviors> |
| 713 | + <behaviors:SimplePropertyBindingBehavior PropertyName="Options.ShowSpaces" Value="{Binding ShowSpaceCharsCSharpTextSourceEditorOption}" /> |
| 714 | + <behaviors:SimplePropertyBindingBehavior PropertyName="Options.ShowTabs" Value="{Binding ShowSpaceCharsCSharpTextSourceEditorOption}" /> |
| 715 | + <behaviors:SimplePropertyBindingBehavior PropertyName="Options.ShowEndOfLine" Value="{Binding ShowEndOfLinesCSharpTextSourceEditorOption}" /> |
| 716 | + </i:Interaction.Behaviors> |
| 717 | + </avalonEdit:TextEditor> |
| 718 | + </Border> |
| 719 | + </DockPanel> |
688 | 720 | </DockPanel> |
689 | | - |
690 | 721 | </GroupBox> |
691 | 722 | </DockPanel> |
692 | 723 | </TabItem> |
|
0 commit comments