-
Notifications
You must be signed in to change notification settings - Fork 762
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(effectiveviewport): [Android] The SCP is now the element flagged …
…as ScrollHost, like on UWP
- Loading branch information
Showing
19 changed files
with
324 additions
and
205 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/Uno.UI/UI/Xaml/Controls/ScrollContentPresenter/INativeScrollContentPresenter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Linq; | ||
|
||
namespace Windows.UI.Xaml.Controls | ||
{ | ||
internal interface INativeScrollContentPresenter | ||
{ | ||
ScrollBarVisibility HorizontalScrollBarVisibility { get; set; } | ||
ScrollBarVisibility VerticalScrollBarVisibility { get; set; } | ||
|
||
bool CanHorizontallyScroll { get; set; } | ||
bool CanVerticallyScroll { get; set; } | ||
|
||
object Content { get; set; } | ||
|
||
Thickness Padding { get; set; } | ||
|
||
bool Set( | ||
double? horizontalOffset = null, | ||
double? verticalOffset = null, | ||
float? zoomFactor = null, | ||
bool disableAnimation = true, | ||
bool isIntermediate = false); | ||
|
||
#if __ANDROID__ | ||
// To avoid massive refactor DO NOT USE, use 'Set' instead | ||
void SmoothScrollBy(int physicalDeltaX, int physicalDeltaY); | ||
#endif | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.