C# Class Microsoft.Windows.Controls.Ribbon.RibbonTwoLineText

Inheritance: System.Windows.Controls.Control
Show file Open project: kasicass/kasicass Class Usage Examples

Public Properties

Property Type Description
BaselineOffsetProperty DependencyProperty
HasTwoLinesProperty DependencyProperty
LineHeightProperty DependencyProperty
LineStackingStrategyProperty DependencyProperty
PaddingProperty DependencyProperty
PathDataProperty DependencyProperty
PathFillProperty DependencyProperty
PathStrokeProperty DependencyProperty
TextAlignmentProperty DependencyProperty
TextDecorationsProperty DependencyProperty
TextEffectsProperty DependencyProperty
TextProperty DependencyProperty
TextTrimmingProperty DependencyProperty

Private Properties

Property Type Description
MeasureWithConstraint void
MeasureWithoutConstraint void
RibbonTwoLineText System

Public Methods

Method Description
GetHasTwoLines ( DependencyObject element ) : bool

Gets or sets a value indicating whether the RibbonTwoLineText should be allowed to layout on two lines or if it should be restricted to one.

GetPathData ( DependencyObject element ) : Geometry
OnApplyTemplate ( ) : void
SetHasTwoLines ( DependencyObject element, bool value ) : void
SetPathData ( DependencyObject element, Geometry value ) : void

Protected Methods

Method Description
MeasureOverride ( Size availableSize ) : Size
OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer

Private Methods

Method Description
MeasureWithConstraint ( Size availableSize, TextPointer &secondLinePointer ) : void

Layout Text into two lines when width is restricted and determine if a LineBreak occurs.

MeasureWithoutConstraint ( TextPointer &secondLinePointer ) : void

Layout Text into two lines without any constraint and determine if a LineBreak occurs.

RibbonTwoLineText ( ) : System

Method Details

GetHasTwoLines() public static method

Gets or sets a value indicating whether the RibbonTwoLineText should be allowed to layout on two lines or if it should be restricted to one.
public static GetHasTwoLines ( DependencyObject element ) : bool
element DependencyObject
return bool

GetPathData() public static method

public static GetPathData ( DependencyObject element ) : Geometry
element DependencyObject
return Geometry

MeasureOverride() protected method

protected MeasureOverride ( Size availableSize ) : Size
availableSize Size
return Size

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnCreateAutomationPeer() protected method

protected OnCreateAutomationPeer ( ) : System.Windows.Automation.Peers.AutomationPeer
return System.Windows.Automation.Peers.AutomationPeer

SetHasTwoLines() public static method

public static SetHasTwoLines ( DependencyObject element, bool value ) : void
element DependencyObject
value bool
return void

SetPathData() public static method

public static SetPathData ( DependencyObject element, Geometry value ) : void
element DependencyObject
value Geometry
return void

Property Details

BaselineOffsetProperty public static property

public static DependencyProperty BaselineOffsetProperty
return DependencyProperty

HasTwoLinesProperty public static property

Using a DependencyProperty as the backing store for HasTwoLinesProperty. This enables animation, styling, binding, etc...
public static DependencyProperty HasTwoLinesProperty
return DependencyProperty

LineHeightProperty public static property

Adds RibbonTwoLineText as an owner of this property.
public static DependencyProperty LineHeightProperty
return DependencyProperty

LineStackingStrategyProperty public static property

Adds RibbonTwoLineText as an owner of this property.
public static DependencyProperty LineStackingStrategyProperty
return DependencyProperty

PaddingProperty public static property

public static DependencyProperty PaddingProperty
return DependencyProperty

PathDataProperty public static property

Defines Path data for the label's appending Geometry.
public static DependencyProperty PathDataProperty
return DependencyProperty

PathFillProperty public static property

Using a DependencyProperty as the backing store for PathFillProperty. This enables animation, styling, binding, etc...
public static DependencyProperty PathFillProperty
return DependencyProperty

PathStrokeProperty public static property

Using a DependencyProperty as the backing store for PathStrokeProperty. This enables animation, styling, binding, etc...
public static DependencyProperty PathStrokeProperty
return DependencyProperty

TextAlignmentProperty public static property

Adds RibbonTwoLineText as an owner of this property.
public static DependencyProperty TextAlignmentProperty
return DependencyProperty

TextDecorationsProperty public static property

public static DependencyProperty TextDecorationsProperty
return DependencyProperty

TextEffectsProperty public static property

public static DependencyProperty TextEffectsProperty
return DependencyProperty

TextProperty public static property

Using a DependencyProperty as the backing store for TextProperty. This enables animation, styling, binding, etc...
public static DependencyProperty TextProperty
return DependencyProperty

TextTrimmingProperty public static property

Adds RibbonTwoLineText as an owner of this property.
public static DependencyProperty TextTrimmingProperty
return DependencyProperty