Table of Contents

Property UseDefaultMenu

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

UseDefaultMenu

public virtual bool UseDefaultMenu { get; set; }

Property Value

bool

Examples

Here is how to use a UseDefaultMenu in the C# code:

public partial class MainWindow : Window
{
    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
        var textEditor = new Alternet.Editor.Wpf.TextEditor();
        textEditor.UseDefaultMenu = false;
        textEditor.ContextMenu = MainMenu;
    }
}

Here is how to use a UseDefaultMenu in the Visual Basic code:

Partial Public Class MainWindow
    Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
        Dim textEditor = New Alternet.Editor.Wpf.TextEditor()
        textEditor.UseDefaultMenu = False
        textEditor.ContextMenu = MainMenu
    End Sub
End Class

Remarks

Set UseDefaultMenu property to false to specify a different context menu for the DefaultMenu control instead of built-in one.