Change size above ExtraLarge for sfAvatarView

Hi!


I would like to have a avatar that is larger then ExtraLarge, when you edit/preview the Avatar it would be nice to have it a little bigger then your preset ExtraLarge, is that possible?

Regards
Ulf

3 Replies 1 reply marked as answer

SP Sakthivel Palaniyappan Syncfusion Team December 30, 2020 11:26 AM UTC

Hi Ulf,

Greetings from Syncfusion,

We have analyzed your query, and we can achieve your requirement by setting WidthRequest, HeightRequest and CornerRadius as like below code snippet.

XAML:
 
 
<sfavatar:SfAvatarView ContentType="Initials" x:Name="avatarView" 
                               HorizontalOptions="Center" 
                               VerticalOptions="Center" 
                               InitialsType="DoubleCharacter" 
                               AvatarName="Naresh Rambaran" 
                               InitialsColor="White" 
                               WidthRequest="300" 
                               HeightRequest="300" 
                               CornerRadius="150" 
                               FontAttributes="Bold" 
                               FontSize="50" 
                               BackgroundColor="#D73925"/> 
 

We have created sample based on your requirement , please find the sample from below.

Sample link:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/AvatarViewSample-2041072128.zip

Please let us know if you have any other queries.

Regards,
Sakthivel P.
 


Marked as answer

UJ Ulf J December 30, 2020 02:43 PM UTC

Perfect, thank you!


SP Sakthivel Palaniyappan Syncfusion Team December 31, 2020 02:28 PM UTC

Hi Ulf,

Thanks for the update.  Please get back us if you need any other assistance on this.

Regards,
Sakthivel P.
 


Loader.
Up arrow icon