C# Класс Open.Core.Common.ControlExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
AddBlocks ( System.Windows.Controls.RichTextBox richTextBox, BlockCollection blocks ) : void

Описание методов

AddXaml() публичный статический Метод

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.
Результат void

ApplyFlatScrollBarStyle() публичный статический Метод

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.
Результат void

ScrollToTop() публичный статический Метод

Scrolls to the top of a rich texbox.
public static ScrollToTop ( this richTextBox ) : void
richTextBox this The rich textbox to scroll.
Результат void