|
|
|
@ -2,7 +2,6 @@ |
|
|
|
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
|
|
|
|
|
|
|
using System; |
|
|
|
using System.Linq; |
|
|
|
using System.Reactive.Linq; |
|
|
|
using Perspex.Media; |
|
|
|
using Perspex.Styling; |
|
|
|
@ -24,7 +23,6 @@ namespace Perspex.Controls.Presenters |
|
|
|
|
|
|
|
private readonly DispatcherTimer _caretTimer; |
|
|
|
private bool _caretBlink; |
|
|
|
private IObservable<bool> _canScrollHorizontally; |
|
|
|
private Brush _highlightBrush; |
|
|
|
|
|
|
|
static TextPresenter() |
|
|
|
@ -38,9 +36,6 @@ namespace Perspex.Controls.Presenters |
|
|
|
_caretTimer.Interval = TimeSpan.FromMilliseconds(500); |
|
|
|
_caretTimer.Tick += CaretTimerTick; |
|
|
|
|
|
|
|
_canScrollHorizontally = this.GetObservable(TextWrappingProperty) |
|
|
|
.Select(x => x == TextWrapping.NoWrap); |
|
|
|
|
|
|
|
Observable.Merge( |
|
|
|
this.GetObservable(SelectionStartProperty), |
|
|
|
this.GetObservable(SelectionEndProperty)) |
|
|
|
|