<avalonedit:TextEditor ScrollViewer.ScrollChanged="TextEditor_ScrollChanged">
public class MySubClass : TextEditor { public MySubClass() { // Cannot convert type 'MyProgram.MySubClass' to 'System.Windows.Controls.ScrollViewer' ((ScrollViewer)this).ScrollChanged += ScrollChanged; // Cannot convert type 'ICSharpCode.AvalonEdit.Editing.TextArea' to 'System.Windows.Controls.ScrollViewer' ((ScrollViewer)TextArea).ScrollChanged += ScrollChanged; }
UIHelper.FindChildren(this)
public class MySubClass : TextEditor { public MySubClass() { AddHandler(ScrollViewer.ScrollChangedEvent, new ScrollChangedEventHandler(ScrollChanged)); }
AddHandler(ScrollViewer.ScrollChangedEvent, new ScrollChangedEventHandler(ScrollChanged));
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)