TXTextControl.TextControl.CanCopy Property

Informs whether a part of a Text Control document has been selected and can be copied to the clipboard.

Syntax

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

Limitations

Runtime only.

Read only.

Example

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

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

See Also