New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.hello.
I want to know if the SfavatarView check if imagsourceUri exist or not.
if he doesn't exist, he will display characters.
which best way within I can proceed.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
try
{
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(value.ToString());
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
if (response != null && response.StatusCode == HttpStatusCode.OK)
{
return value.ToString();
}
else
{
return null;
}
}
catch (Exception exception)
{
return null;
}
} |
private void ChangeType() {
if (avatar.ImageSource == null)
{
avatar.ContentType = ContentType.Initials;
avatar.AvatarName = "Alex";
avatar.InitialsType = InitialsType.SingleCharacter;
avatar.InitialsColor = Color.Black;
avatar.BackgroundColor = Color.Bisque;
}
} |