-
Notifications
You must be signed in to change notification settings - Fork 0
/
ViewModel.vb
37 lines (27 loc) · 1.05 KB
/
ViewModel.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Imports System.Windows.Input
Namespace RadialMenuExample
Public Class RadialContextMenuViewModel
Public Overridable ReadOnly Property TextBoxService As ITextBoxService
Get
Return Nothing
End Get
End Property
Public Property CopyCommand As ICommand
Public Property PasteCommand As ICommand
Public Property CutCommand As ICommand
Public Property SelectAllCommand As ICommand
Public Sub New()
CopyCommand = ApplicationCommands.Copy
PasteCommand = ApplicationCommands.Paste
CutCommand = ApplicationCommands.Cut
SelectAllCommand = ApplicationCommands.SelectAll
End Sub
' A ClearSelectionCommand is automatically created from the following methods by POCO:
Public Function CanClearSelection() As Boolean
Return TextBoxService.CanClearSelection()
End Function
Public Sub ClearSelection()
TextBoxService.ClearSelection()
End Sub
End Class
End Namespace