Browse Source
Merge pull request #10470 from AvaloniaUI/fixes/10374-carousel-bringintoview-exception
Don't throw exceptions in carousel panel.
pull/10476/head
Steven Kirk
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
10 deletions
-
src/Avalonia.Controls/VirtualizingCarouselPanel.cs
|
|
|
@ -80,16 +80,8 @@ namespace Avalonia.Controls |
|
|
|
remove => _scrollInvalidated -= value; |
|
|
|
} |
|
|
|
|
|
|
|
bool ILogicalScrollable.BringIntoView(Control target, Rect targetRect) |
|
|
|
{ |
|
|
|
throw new NotImplementedException(); |
|
|
|
} |
|
|
|
|
|
|
|
Control? ILogicalScrollable.GetControlInDirection(NavigationDirection direction, Control? from) |
|
|
|
{ |
|
|
|
throw new NotImplementedException(); |
|
|
|
} |
|
|
|
|
|
|
|
bool ILogicalScrollable.BringIntoView(Control target, Rect targetRect) => false; |
|
|
|
Control? ILogicalScrollable.GetControlInDirection(NavigationDirection direction, Control? from) => null; |
|
|
|
void ILogicalScrollable.RaiseScrollInvalidated(EventArgs e) => _scrollInvalidated?.Invoke(this, e); |
|
|
|
|
|
|
|
protected override Size MeasureOverride(Size availableSize) |
|
|
|
|