question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Proposal] GravatarImageSource

See original GitHub issue

GravatarImageSource

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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:24 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
bijingtoncommented, Jul 28, 2022

I’m happy to vote to approve it now. More than happy to accept the contribution.

It’s a yes from me

2reactions
GeorgeLeitheadcommented, Jul 28, 2022

This is a great direction @GeorgeLeithead

@dansiegel You’ll notice in the sample, I kept using your Gravatar. Got to keep and give appreciation for the original effort. 😁

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found