Browse Source
Replaced ContentControl with ContentPresenter where possible. git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5076 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
21 changed files with 250 additions and 28 deletions
@ -1,19 +1,30 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<gui:OptionPanel |
<gui:OptionPanel |
||||||
x:Class="ICSharpCode.AvalonEdit.AddIn.Options.GeneralEditorOptions" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:winforms="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration" xmlns:core="http://icsharpcode.net/sharpdevelop/core" xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop"> |
x:Class="ICSharpCode.AvalonEdit.AddIn.Options.GeneralEditorOptions" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:winforms="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration" xmlns:core="http://icsharpcode.net/sharpdevelop/core" xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop" xmlns:local="clr-namespace:ICSharpCode.AvalonEdit.AddIn.Options"> |
||||||
<StackPanel> |
<StackPanel> |
||||||
<GroupBox |
<GroupBox |
||||||
Header="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.FontGroupBox}"> |
Header="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.FontGroupBox}"> |
||||||
<winforms:WindowsFormsHost> |
<winforms:WindowsFormsHost Height="112"> |
||||||
<gui:FontSelectionPanel x:Name="fontSelectionPanel" /> |
<gui:FontSelectionPanel x:Name="fontSelectionPanel" /> |
||||||
</winforms:WindowsFormsHost> |
</winforms:WindowsFormsHost> |
||||||
</GroupBox> |
</GroupBox> |
||||||
<GroupBox |
<GroupBox |
||||||
Header="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.GeneralOptionsGroupBox}"> |
Header="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.GeneralOptionsGroupBox}"> |
||||||
<StackPanel> |
<StackPanel> |
||||||
<CheckBox Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.FoldingCheckBox}" /> |
<CheckBox |
||||||
<CheckBox Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.ShowQuickClassBrowserCheckBox}" /> |
IsChecked="{core:OptionBinding local:CodeEditorOptions.WordWrap}" |
||||||
<CheckBox Content="(TODO: translate) show line numbers" /> |
Content="(TODO: translate) Word-wrap" /> |
||||||
|
<CheckBox |
||||||
|
IsEnabled="False" |
||||||
|
IsChecked="True" |
||||||
|
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.FoldingCheckBox}" /> |
||||||
|
<CheckBox |
||||||
|
IsEnabled="False" |
||||||
|
IsChecked="True" |
||||||
|
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.General.ShowQuickClassBrowserCheckBox}" /> |
||||||
|
<CheckBox |
||||||
|
IsChecked="{core:OptionBinding local:CodeEditorOptions.ShowLineNumbers}" |
||||||
|
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.Markers.LineNumberCheckBox}" /> |
||||||
</StackPanel> |
</StackPanel> |
||||||
</GroupBox> |
</GroupBox> |
||||||
</StackPanel> |
</StackPanel> |
||||||
|
|||||||
@ -0,0 +1,29 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<gui:OptionPanel |
||||||
|
x:Class="ICSharpCode.AvalonEdit.AddIn.Options.TextViewOptions" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:core="http://icsharpcode.net/sharpdevelop/core" xmlns:gui="clr-namespace:ICSharpCode.SharpDevelop.Gui;assembly=ICSharpCode.SharpDevelop" xmlns:local="clr-namespace:ICSharpCode.AvalonEdit.AddIn.Options"> |
||||||
|
<StackPanel> |
||||||
|
<GroupBox |
||||||
|
Header="{core:Localize Dialog.Options.IDEOptions.TextEditor.Markers.MarkersGroupBox}"> |
||||||
|
<StackPanel> |
||||||
|
<CheckBox |
||||||
|
IsChecked="{core:OptionBinding local:CodeEditorOptions.ShowSpaces}" |
||||||
|
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.Markers.SpacesCheckBox}" /> |
||||||
|
<CheckBox |
||||||
|
IsChecked="{core:OptionBinding local:CodeEditorOptions.ShowTabs}" |
||||||
|
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.Markers.TabsCheckBox}" /> |
||||||
|
<CheckBox |
||||||
|
IsChecked="{core:OptionBinding local:CodeEditorOptions.ShowEndOfLine}" |
||||||
|
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.Markers.EOLMarkersCheckBox}" /> |
||||||
|
<CheckBox |
||||||
|
Margin="0,16,0,0" |
||||||
|
IsChecked="True" |
||||||
|
IsEnabled="False" |
||||||
|
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.Markers.UnderLineErrorsCheckBox}" /> |
||||||
|
<CheckBox |
||||||
|
IsChecked="True" |
||||||
|
IsEnabled="False" |
||||||
|
Content="{core:Localize Dialog.Options.IDEOptions.TextEditor.Markers.HiglightBracketCheckBox}" /> |
||||||
|
</StackPanel> |
||||||
|
</GroupBox> |
||||||
|
</StackPanel> |
||||||
|
</gui:OptionPanel> |
||||||
@ -0,0 +1,32 @@ |
|||||||
|
// <file>
|
||||||
|
// <copyright see="prj:///doc/copyright.txt"/>
|
||||||
|
// <license see="prj:///doc/license.txt"/>
|
||||||
|
// <owner name="Daniel Grunwald"/>
|
||||||
|
// <version>$Revision$</version>
|
||||||
|
// </file>
|
||||||
|
|
||||||
|
using System; |
||||||
|
using System.Collections.Generic; |
||||||
|
using System.Text; |
||||||
|
using System.Windows; |
||||||
|
using System.Windows.Controls; |
||||||
|
using System.Windows.Data; |
||||||
|
using System.Windows.Documents; |
||||||
|
using System.Windows.Input; |
||||||
|
using System.Windows.Media; |
||||||
|
|
||||||
|
using ICSharpCode.SharpDevelop.Gui; |
||||||
|
|
||||||
|
namespace ICSharpCode.AvalonEdit.AddIn.Options |
||||||
|
{ |
||||||
|
/// <summary>
|
||||||
|
/// Interaction logic for TextViewOptions.xaml
|
||||||
|
/// </summary>
|
||||||
|
public partial class TextViewOptions : OptionPanel |
||||||
|
{ |
||||||
|
public TextViewOptions() |
||||||
|
{ |
||||||
|
InitializeComponent(); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue