|
|
|
@ -28,39 +28,63 @@ namespace ICSharpCode.AvalonEdit.Folding |
|
|
|
internal const double SizeFactor = Constants.PixelPerPoint; |
|
|
|
internal const double SizeFactor = Constants.PixelPerPoint; |
|
|
|
|
|
|
|
|
|
|
|
#region Brushes
|
|
|
|
#region Brushes
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// FoldingMarkerBrush dependency property.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public static readonly DependencyProperty FoldingMarkerBrushProperty = |
|
|
|
public static readonly DependencyProperty FoldingMarkerBrushProperty = |
|
|
|
DependencyProperty.RegisterAttached("FoldingMarkerBrush", typeof(Brush), typeof(FoldingMargin), |
|
|
|
DependencyProperty.RegisterAttached("FoldingMarkerBrush", typeof(Brush), typeof(FoldingMargin), |
|
|
|
new FrameworkPropertyMetadata(Brushes.Gray, FrameworkPropertyMetadataOptions.Inherits, OnUpdateBrushes)); |
|
|
|
new FrameworkPropertyMetadata(Brushes.Gray, FrameworkPropertyMetadataOptions.Inherits, OnUpdateBrushes)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Gets/sets the Brush used for displaying the lines of folding markers.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public Brush FoldingMarkerBrush { |
|
|
|
public Brush FoldingMarkerBrush { |
|
|
|
get { return (Brush)GetValue(FoldingMarkerBrushProperty); } |
|
|
|
get { return (Brush)GetValue(FoldingMarkerBrushProperty); } |
|
|
|
set { SetValue(FoldingMarkerBrushProperty, value); } |
|
|
|
set { SetValue(FoldingMarkerBrushProperty, value); } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// FoldingMarkerBackgroundBrush dependency property.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public static readonly DependencyProperty FoldingMarkerBackgroundBrushProperty = |
|
|
|
public static readonly DependencyProperty FoldingMarkerBackgroundBrushProperty = |
|
|
|
DependencyProperty.RegisterAttached("FoldingMarkerBackgroundBrush", typeof(Brush), typeof(FoldingMargin), |
|
|
|
DependencyProperty.RegisterAttached("FoldingMarkerBackgroundBrush", typeof(Brush), typeof(FoldingMargin), |
|
|
|
new FrameworkPropertyMetadata(Brushes.White, FrameworkPropertyMetadataOptions.Inherits, OnUpdateBrushes)); |
|
|
|
new FrameworkPropertyMetadata(Brushes.White, FrameworkPropertyMetadataOptions.Inherits, OnUpdateBrushes)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Gets/sets the Brush used for displaying the background of folding markers.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public Brush FoldingMarkerBackgroundBrush { |
|
|
|
public Brush FoldingMarkerBackgroundBrush { |
|
|
|
get { return (Brush)GetValue(FoldingMarkerBackgroundBrushProperty); } |
|
|
|
get { return (Brush)GetValue(FoldingMarkerBackgroundBrushProperty); } |
|
|
|
set { SetValue(FoldingMarkerBackgroundBrushProperty, value); } |
|
|
|
set { SetValue(FoldingMarkerBackgroundBrushProperty, value); } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// SelectedFoldingMarkerBrush dependency property.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public static readonly DependencyProperty SelectedFoldingMarkerBrushProperty = |
|
|
|
public static readonly DependencyProperty SelectedFoldingMarkerBrushProperty = |
|
|
|
DependencyProperty.RegisterAttached("SelectedFoldingMarkerBrush", |
|
|
|
DependencyProperty.RegisterAttached("SelectedFoldingMarkerBrush", |
|
|
|
typeof(Brush), typeof(FoldingMargin), |
|
|
|
typeof(Brush), typeof(FoldingMargin), |
|
|
|
new FrameworkPropertyMetadata(Brushes.Black, FrameworkPropertyMetadataOptions.Inherits, OnUpdateBrushes)); |
|
|
|
new FrameworkPropertyMetadata(Brushes.Black, FrameworkPropertyMetadataOptions.Inherits, OnUpdateBrushes)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Gets/sets the Brush used for displaying the lines of selected folding markers.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public Brush SelectedFoldingMarkerBrush { |
|
|
|
public Brush SelectedFoldingMarkerBrush { |
|
|
|
get { return (Brush)GetValue(SelectedFoldingMarkerBrushProperty); } |
|
|
|
get { return (Brush)GetValue(SelectedFoldingMarkerBrushProperty); } |
|
|
|
set { SetValue(SelectedFoldingMarkerBrushProperty, value); } |
|
|
|
set { SetValue(SelectedFoldingMarkerBrushProperty, value); } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// SelectedFoldingMarkerBackgroundBrush dependency property.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public static readonly DependencyProperty SelectedFoldingMarkerBackgroundBrushProperty = |
|
|
|
public static readonly DependencyProperty SelectedFoldingMarkerBackgroundBrushProperty = |
|
|
|
DependencyProperty.RegisterAttached("SelectedFoldingMarkerBackgroundBrush", |
|
|
|
DependencyProperty.RegisterAttached("SelectedFoldingMarkerBackgroundBrush", |
|
|
|
typeof(Brush), typeof(FoldingMargin), |
|
|
|
typeof(Brush), typeof(FoldingMargin), |
|
|
|
new FrameworkPropertyMetadata(Brushes.White, FrameworkPropertyMetadataOptions.Inherits, OnUpdateBrushes)); |
|
|
|
new FrameworkPropertyMetadata(Brushes.White, FrameworkPropertyMetadataOptions.Inherits, OnUpdateBrushes)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// Gets/sets the Brush used for displaying the background of selected folding markers.
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
public Brush SelectedFoldingMarkerBackgroundBrush { |
|
|
|
public Brush SelectedFoldingMarkerBackgroundBrush { |
|
|
|
get { return (Brush)GetValue(SelectedFoldingMarkerBackgroundBrushProperty); } |
|
|
|
get { return (Brush)GetValue(SelectedFoldingMarkerBackgroundBrushProperty); } |
|
|
|
set { SetValue(SelectedFoldingMarkerBackgroundBrushProperty, value); } |
|
|
|
set { SetValue(SelectedFoldingMarkerBackgroundBrushProperty, value); } |
|
|
|
|