Class GuideAdorner
public class GuideAdorner : BorderAdorner, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
- Inheritance
-
GuideAdorner
- Implements
- Inherited Members
- Extension Methods
Constructors
GuideAdorner(UIElement, FrameworkElement)
public GuideAdorner(UIElement adornedElement, FrameworkElement child)
Parameters
adornedElement
UIElementchild
FrameworkElement
Fields
BeginGuideProperty
应用窗体关闭和显示
public static readonly DependencyProperty BeginGuideProperty
Field Value
GuidTextForegroundProperty
说明
public static readonly DependencyProperty GuidTextForegroundProperty
Field Value
GuideFillProperty
说明
public static readonly DependencyProperty GuideFillProperty
Field Value
GuideParentProperty
说明
public static readonly DependencyProperty GuideParentProperty
Field Value
GuideStrokeProperty
说明
public static readonly DependencyProperty GuideStrokeProperty
Field Value
GuideTextOffsetProperty
说明
public static readonly DependencyProperty GuideTextOffsetProperty
Field Value
IsShowProperty
说明
public static readonly DependencyProperty IsShowProperty
Field Value
Properties
Child
public FrameworkElement Child { get; }
Property Value
Foreground
public Brush Foreground { get; set; }
Property Value
Text
public string Text { get; set; }
Property Value
TextOffset
public Point TextOffset { get; set; }
Property Value
Methods
GetBeginGuide(DependencyObject)
public static bool GetBeginGuide(DependencyObject obj)
Parameters
obj
DependencyObject
Returns
GetGuidTextForeground(DependencyObject)
public static Brush GetGuidTextForeground(DependencyObject d)
Parameters
Returns
GetGuideFill(DependencyObject)
public static Brush GetGuideFill(DependencyObject d)
Parameters
Returns
GetGuideParent(DependencyObject)
public static UIElement GetGuideParent(DependencyObject d)
Parameters
Returns
GetGuideStroke(DependencyObject)
public static Brush GetGuideStroke(DependencyObject d)
Parameters
Returns
GetGuideTextOffset(DependencyObject)
public static Point GetGuideTextOffset(DependencyObject d)
Parameters
Returns
GetIsShow(DependencyObject)
public static bool GetIsShow(DependencyObject d)
Parameters
Returns
OnBeginGuideChanged(DependencyObject, DependencyPropertyChangedEventArgs)
public static void OnBeginGuideChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
Parameters
OnRender(DrawingContext)
When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
protected override void OnRender(DrawingContext dc)
Parameters
SetBeginGuide(DependencyObject, bool)
public static void SetBeginGuide(DependencyObject obj, bool value)
Parameters
obj
DependencyObjectvalue
bool
SetGuidTextForeground(DependencyObject, Brush)
public static void SetGuidTextForeground(DependencyObject obj, Brush value)
Parameters
obj
DependencyObjectvalue
Brush
SetGuideFill(DependencyObject, Brush)
public static void SetGuideFill(DependencyObject obj, Brush value)
Parameters
obj
DependencyObjectvalue
Brush
SetGuideParent(DependencyObject, UIElement)
public static void SetGuideParent(DependencyObject obj, UIElement value)
Parameters
obj
DependencyObjectvalue
UIElement
SetGuideStroke(DependencyObject, Brush)
public static void SetGuideStroke(DependencyObject obj, Brush value)
Parameters
obj
DependencyObjectvalue
Brush
SetGuideTextOffset(DependencyObject, Point)
public static void SetGuideTextOffset(DependencyObject obj, Point value)
Parameters
obj
DependencyObjectvalue
Point
SetIsShow(DependencyObject, bool)
public static void SetIsShow(DependencyObject obj, bool value)
Parameters
obj
DependencyObjectvalue
bool