Browse Source
Simplify getting changed property values
Co-authored-by: Max Katz <maxkatz6@outlook.com>
pull/7958/head
robloo
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
src/Avalonia.Controls/Calendar/CalendarDatePicker.cs
|
|
|
@ -291,8 +291,7 @@ namespace Avalonia.Controls |
|
|
|
// Text
|
|
|
|
else if (change.Property == TextProperty) |
|
|
|
{ |
|
|
|
var oldValue = change.GetOldValue<string>(); |
|
|
|
var value = change.GetNewValue<string>(); |
|
|
|
var (oldValue, value) = change.GetOldAndNewValue<string>(); |
|
|
|
|
|
|
|
if (!_suspendTextChangeHandler) |
|
|
|
{ |
|
|
|
|