TXTextControl.TextControl.CanPaste Property

Informs whether the clipboard contains a format that can be pasted into a Text Control document.

Syntax

[C#]
public bool CanPaste { get; }
[Visual Basic]
Public ReadOnly Property CanPaste() As Boolean

Limitations

Runtime only.

Read only.

Example

The following XAML example shows how to bind the CanPaste property to the IsEnabled attribute of a menu item.

<MenuItem
   Header="Paste"
   Command="ApplicationCommands.Paste"
   IsEnabled="{Binding ElementName=textControl1, Path=CanPaste}" />

See Also