[Proposal] GravatarImageSource
See original GitHub issueGravatarImageSource
- Proposed
- Prototype
- Implementation: #531
- iOS Support
- Android Support
- macOS Support
- Windows Support
- Unit Tests: Not Started
- Sample: https://github.com/CommunityToolkit/Maui/blob/main/samples/CommunityToolkit.Maui.Sample/Pages/ImageSources/GravatarImageSourcePage.xaml
- Documentation: Not Startedhttps://github.com/MicrosoftDocs/CommunityToolkit/pull/127
Summary
Allows the use of Gravatar Images
Detailed Design
GravatarImageSource.shared.cs
public class GravatarImageSource : ImageSource
{
public static readonly BindableProperty EmailProperty;
public static readonly BindableProperty SizeProperty;
public static readonly BindableProperty DefaultProperty;
public static readonly BindableProperty CachingEnabledProperty;
public static readonly BindableProperty CacheValidityProperty;
public string? Email { get; set; }
public int Size { get; set; }
public DefaultGravatar Default { get; set; }
public bool CachingEnabled { get; set; }
public TimeSpan CacheValidity { get; set; }
}
Usage Syntax
XAML Usage
<Image>
<Image.Source>
<local:GravatarImageSource Email="{Binding Email}"
Size="{Binding Size}"
CachingEnabled="{Binding EnableCache}" />
</Image.Source>
</Image>
C# Usage
new Image
{
Source = new GravatarImageSource
.Bind(GravatarImageSource.EmailProperty, nameof(ViewModel.Email))
.Bind(GravatarImageSource.SizeProperty, nameof(ViewModel.Size))
.Bind(GravatarImageSource.CachingEnabled, nameof(ViewModel.EnableCache))
};
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:24 (16 by maintainers)
Top Results From Across the Web
GravatarImageSource.shared.cs
The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your ......
Read more >GravatarImageSource - .NET MAUI Community Toolkit
« GravatarImageSource » vous permet d'utiliser comme source d'image, ... MysteryPerson (par défaut) - Un plan silhouette simple de style ...
Read more >Gravatar Now Supported by .NET MAUI Community Toolkit - ESJ
That support comes with the new GravatarImageSource , which can be used anywhere that ImageSource can be used to display Gravatar images ...
Read more >firm wants to use chatGPT to write proposals… : r/consulting
This is a cool idea, but be very aware of the fact that you are giving your proposals including strategy, pricing, personal information, ......
Read more >Neos CMS Documentation
$gravatarImageSource = 'http://www.gravatar.com/avatar/' . ... sticks to the JavaScript specificiation including EcmaScript 6 proposals.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m happy to vote to approve it now. More than happy to accept the contribution.
It’s a yes from me
✅
@dansiegel You’ll notice in the sample, I kept using your Gravatar. Got to keep and give appreciation for the original effort. 😁