C# Class Open.Core.Common.ControlExtensions

Afficher le fichier Open project: philcockfield/Open.TestHarness.SL

Méthodes publiques

Méthode Description
AddXaml ( this richTextBox, System.Windows.Documents.Block xaml ) : void

Adds XAML content to a RichTextBox.

This method effectively handles a Section block element if specified (adding all child Blocks to the textbox).

ApplyFlatScrollBarStyle ( this scrollViewer, double size = 10, double opacity = 1 ) : void

Applys the flat-style to the scrollbars within the given scroll-viewer.

ScrollToTop ( this richTextBox ) : void

Scrolls to the top of a rich texbox.

Private Methods

Méthode Description
AddBlocks ( System.Windows.Controls.RichTextBox richTextBox, BlockCollection blocks ) : void

Method Details

AddXaml() public static méthode

Adds XAML content to a RichTextBox.
This method effectively handles a Section block element if specified (adding all child Blocks to the textbox).
public static AddXaml ( this richTextBox, System.Windows.Documents.Block xaml ) : void
richTextBox this The textbox to add to.
xaml System.Windows.Documents.Block The block to add.
Résultat void

ApplyFlatScrollBarStyle() public static méthode

Applys the flat-style to the scrollbars within the given scroll-viewer.
public static ApplyFlatScrollBarStyle ( this scrollViewer, double size = 10, double opacity = 1 ) : void
scrollViewer this The scroll-viewer to effect.
size double The size of the scroll bars (automatically skinny).
opacity double The opacity of the scrollbar.
Résultat void

ScrollToTop() public static méthode

Scrolls to the top of a rich texbox.
public static ScrollToTop ( this richTextBox ) : void
richTextBox this The rich textbox to scroll.
Résultat void