C# Class Yuhan.WPF.TextEditor.RichTextEditor

Interaction logic for FsRichTextBox.xaml
Inheritance: System.Windows.Controls.UserControl
Datei anzeigen Open project: hansuky/Yuhan

Public Properties

Property Type Description
CodeControlsVisibilityProperty System.Windows.DependencyProperty
DocumentProperty System.Windows.DependencyProperty
ToolbarBackgroundProperty System.Windows.DependencyProperty
ToolbarBorderBrushProperty System.Windows.DependencyProperty
ToolbarBorderThicknessProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
Initialize void
OnAlignmentButtonClick void
OnCodeBlockClick void
OnDocumentChanged void
OnFontFamilyComboSelectionChanged void
OnFontSizeComboSelectionChanged void
OnInlineCodeClick void
OnListButtonClick void
OnNormalTextClick void
OnTextBoxSelectionChanged void
OnTextChanged void
SetButtonGroupSelection void
SetToolbar void

Public Methods

Method Description
RichTextEditor ( ) : System

Default constructor.

UpdateDocumentBindings ( ) : void

Forces an update of the Document property.

Private Methods

Method Description
Initialize ( ) : void

Initializes the control.

OnAlignmentButtonClick ( object sender, RoutedEventArgs e ) : void

Implements single-select on the alignment button group.

OnCodeBlockClick ( object sender, RoutedEventArgs e ) : void

Formats code blocks.

OnDocumentChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Called when the Document property is changed

OnFontFamilyComboSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void

Changes the font family of selected text.

OnFontSizeComboSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void

Changes the font size of selected text.

OnInlineCodeClick ( object sender, RoutedEventArgs e ) : void

Formats inline code.

OnListButtonClick ( object sender, RoutedEventArgs e ) : void

Implements single-select on the alignment button group.

OnNormalTextClick ( object sender, RoutedEventArgs e ) : void

Formats regular text

OnTextBoxSelectionChanged ( object sender, RoutedEventArgs e ) : void

Updates the toolbar when the text selection changes.

OnTextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void

Invoked when the user changes text in this user control.

SetButtonGroupSelection ( System.Windows.Controls.Primitives.ToggleButton clickedButton, System.Windows.Controls.Primitives.ToggleButton currentSelectedButton, IEnumerable buttonGroup, bool ignoreClickWhenSelected ) : void

Sets a selection in a button group.

SetToolbar ( ) : void

Sets the toolbar.

Method Details

RichTextEditor() public method

Default constructor.
public RichTextEditor ( ) : System
return System

UpdateDocumentBindings() public method

Forces an update of the Document property.
public UpdateDocumentBindings ( ) : void
return void

Property Details

CodeControlsVisibilityProperty public_oe static_oe property

public static DependencyProperty,System.Windows CodeControlsVisibilityProperty
return System.Windows.DependencyProperty

DocumentProperty public_oe static_oe property

public static DependencyProperty,System.Windows DocumentProperty
return System.Windows.DependencyProperty

ToolbarBackgroundProperty public_oe static_oe property

public static DependencyProperty,System.Windows ToolbarBackgroundProperty
return System.Windows.DependencyProperty

ToolbarBorderBrushProperty public_oe static_oe property

public static DependencyProperty,System.Windows ToolbarBorderBrushProperty
return System.Windows.DependencyProperty

ToolbarBorderThicknessProperty public_oe static_oe property

public static DependencyProperty,System.Windows ToolbarBorderThicknessProperty
return System.Windows.DependencyProperty