1
Private Sub ChangeCursor(ByVal target As FrameworkElement, ByVal cursor As Cursor)
target.Dispatcher.Invoke(DispatcherPriority.Normal,
New DispatcherOperationCallback(_
Function()
Mouse.OverrideCursor = cursor
Return Nothing
End Function),
Nothing)
End Sub
Private Sub ChangeCursor(ByVal target As FrameworkElement, ByRef cursor As Cursor)
target.Dispatcher.Invoke(DispatcherPriority.Normal,
New DispatcherOperationCallback(_
Function(cursor1 as Cursor)
Mouse.OverrideCursor = cursor1
Return Nothing
End Function),
cursor)
End Sub
呃......再來一次? – 2010-02-02 16:27:38