We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are several places, where API expects developer to work with System.Reactive library. Most of these references come from CompositeDisposable type. Such as: https://github.com/wieslawsoltes/Avalonia.Xaml.Behaviors/blob/master/src/Avalonia.Xaml.Interactions.Custom/Core/DisposingBehavior.cs#L30
CompositeDisposable
It's possible to keep the same functionality by replacing this method definition with:
-protected abstract void OnAttached(CompositeDisposable disposables); +protected abstract IDisposable OnAttached();
Where it's up to the implementation details to know what's behind IDisposable. This is a breaking change, so can only be considered in 12.0.
IDisposable
The text was updated successfully, but these errors were encountered:
There are several places, where API expects developer to work with System.Reactive library. Most of these references come from CompositeDisposable type. Such as: https://github.com/wieslawsoltes/Avalonia.Xaml.Behaviors/blob/master/src/Avalonia.Xaml.Interactions.Custom/Core/DisposingBehavior.cs#L30 It's possible to keep the same functionality by replacing this method definition with: -protected abstract void OnAttached(CompositeDisposable disposables); +protected abstract IDisposable OnAttached();
One issue is that OnAttached would conflict with existing OnAtatched that did not have any parameters.
We would need something like:
protected abstract IDisposable OnAttachedOverride();
Sorry, something went wrong.
Another issue is DisposingBehavior was inherited by AttachedToVisualTreeBehavior that stored disposable to use later by OnAttachedToVisualTree
@maxkatz6 I opened draft PR to see what it would take to do #9 if you have any input it would be appreciated.
Successfully merging a pull request may close this issue.
There are several places, where API expects developer to work with System.Reactive library.
Most of these references come from
CompositeDisposable
type. Such as:https://github.com/wieslawsoltes/Avalonia.Xaml.Behaviors/blob/master/src/Avalonia.Xaml.Interactions.Custom/Core/DisposingBehavior.cs#L30
It's possible to keep the same functionality by replacing this method definition with:
Where it's up to the implementation details to know what's behind
IDisposable
.This is a breaking change, so can only be considered in 12.0.
The text was updated successfully, but these errors were encountered: