Skip to content

Conversation

@adegeo
Copy link
Contributor

@adegeo adegeo commented Aug 4, 2021

This PR:

  • Cleans up the includes
  • Deletes the xamarin video include and all ## Related Video sections from all the essentials articles

@davidbritch

Review Commit 1
Review Commit 2

@adegeo adegeo requested a review from davidbritch August 4, 2021 23:39
Copy link
Contributor

@davidbritch davidbritch left a 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:
Copy link
Contributor

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 -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Remove the Analytics.TrackEvent line. That's a telemetry call into AppCenter that's irrelevant to this doc.
  2. Share.RequestAsync should resolve against https://github.com/dotnet/maui/blob/main/src/Essentials/src/Share/Share.shared.cs
  3. element.GetAbsoluteBounds would 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.

Copy link
Contributor

@davidbritch davidbritch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adegeo

@davidbritch davidbritch merged commit e90285c into adegeo-essentials-ported Aug 5, 2021
@davidbritch davidbritch deleted the adegeo-essentials-2 branch August 5, 2021 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants