C# Class Open.Core.Common.ControlExtensions

Mostrar archivo Open project: philcockfield/Open.TestHarness.SL

Public Methods

Method 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

Method Description
AddBlocks ( System.Windows.Controls.RichTextBox richTextBox, BlockCollection blocks ) : void

Method Details

AddXaml() public static method

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.
return void

ApplyFlatScrollBarStyle() public static method

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.
return void

ScrollToTop() public static method

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