Summary
Specifies a contract for a scrolling control that supports scroll anchoring.
- Namespace
- Avalonia
.Controls - Implementing Types
graph BT
Type["IScrollAnchorProvider"]
class Type type-node
Implementing0["ScrollContentPresenter"]-.->Type
click Implementing0 "/api/Avalonia.Controls.Presenters/ScrollContentPresenter"
Implementing1["ScrollViewer"]-.->Type
click Implementing1 "/api/Avalonia.Controls/ScrollViewer"
Syntax
public interface IScrollAnchorProvider
Properties
Name | Value | Summary |
---|---|---|
CurrentAnchor | IControl? |
The currently chosen anchor element to use for scroll anchoring.
|
Methods
Name | Value | Summary |
---|---|---|
Register |
void |
Registers a control as a potential scroll anchor candidate.
|
Unregister |
void |
Unregisters a control as a potential scroll anchor candidate.
|