-
Notifications
You must be signed in to change notification settings - Fork 237
[essentials] Clean up include files #80
New issue
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @adegeo
I've (hopefully) answered your TODOs inline.
| --- | ||
|
|
||
| When requesting a share or opening launcher on iPadOS you have the ability to present in a pop over control. This specifies where the pop over will appear and point an arrow directly to. This location is often the control that launched the action. You can specify the location using the `PresentationSourceBounds` property: | ||
| When requesting a share or opening launcher on iPadOS, you can present in a popover. This specifies where the pop over will appear and point an arrow directly to. This location is often the control that launched the action. You can specify the location using the `PresentationSourceBounds` property: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noticed that the first sentence says popover, while the second says pop over.
|
|
||
| This can then be used when calling `RequstAsync`: | ||
|
|
||
| <!-- TODO: I don't think this code works. I can't resolve Share.RequestAsync and there is a type mismatch on bounds.ToSystemRectangle and what is Analytics for? Is that normal to put in these examples? odd --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Remove the
Analytics.TrackEventline. That's a telemetry call into AppCenter that's irrelevant to this doc. - Share.RequestAsync should resolve against https://github.com/dotnet/maui/blob/main/src/Essentials/src/Share/Share.shared.cs
element.GetAbsoluteBoundswould resolve in a full sample - it's in the ViewHelpers class (https://github.com/dotnet/maui/blob/main/src/Essentials/samples/Samples/Helpers/ViewHelpers.cs) - also above (namespace unspecified) in this include file. See https://github.com/dotnet/maui/blob/main/src/Essentials/samples/Samples/ViewModel/ShareViewModel.cs for an example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @adegeo
This PR:
@davidbritch
Review Commit 1
Review Commit 2