Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@4856 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
5 changed files with 81 additions and 1 deletions
@ -0,0 +1,37 @@
@@ -0,0 +1,37 @@
|
||||
/* |
||||
* Created by SharpDevelop. |
||||
* User: daniel |
||||
* Date: 31.08.2009 |
||||
* Time: 21:06 |
||||
* |
||||
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
||||
*/ |
||||
using ICSharpCode.AvalonEdit.Utils; |
||||
using System; |
||||
|
||||
namespace ICSharpCode.AvalonEdit.Editing |
||||
{ |
||||
/// <summary>
|
||||
/// Contains classes for handling weak events on the Caret class.
|
||||
/// </summary>
|
||||
public static class CaretWeakEventManager |
||||
{ |
||||
/// <summary>
|
||||
/// Handles the Caret.PositionChanged event.
|
||||
/// </summary>
|
||||
public sealed class PositionChanged : WeakEventManagerBase<PositionChanged, Caret> |
||||
{ |
||||
/// <inheritdoc/>
|
||||
protected override void StartListening(Caret source) |
||||
{ |
||||
source.PositionChanged += DeliverEvent; |
||||
} |
||||
|
||||
/// <inheritdoc/>
|
||||
protected override void StopListening(Caret source) |
||||
{ |
||||
source.PositionChanged -= DeliverEvent; |
||||
} |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue