// ReSharper disable once CheckNamespace namespace WPFluent.Controls; /// /// Extends the control with additional properties. /// public class RichTextBox : System.Windows.Controls.RichTextBox { /// /// Identifies the dependency property. /// public static readonly DependencyProperty IsTextSelectionEnabledProperty = DependencyProperty.Register( nameof(IsTextSelectionEnabled), typeof(bool), typeof(RichTextBox), new PropertyMetadata(false)); /// /// Gets or sets a value indicating whether the user can select text in the control. /// public bool IsTextSelectionEnabled { get => (bool)GetValue(IsTextSelectionEnabledProperty); set => SetValue(IsTextSelectionEnabledProperty, value); } }