Add capability-first account and calendar setup flow

This commit is contained in:
Burak Kaan Köse
2026-04-20 19:38:30 +02:00
parent 54148716bb
commit d85812ed7b
41 changed files with 1369 additions and 333 deletions
+20
View File
@@ -72,6 +72,26 @@ public static class XamlHelpers
return null;
}
}
public static Microsoft.UI.Xaml.Media.Imaging.BitmapImage? StringToBitmapImage(string? imagePath)
{
if (string.IsNullOrWhiteSpace(imagePath))
return null;
try
{
var uri = imagePath.StartsWith("/")
? new Uri($"ms-appx://{imagePath}")
: new Uri(imagePath, UriKind.Absolute);
return new Microsoft.UI.Xaml.Media.Imaging.BitmapImage(uri);
}
catch
{
return null;
}
}
public static InfoBarSeverity InfoBarSeverityConverter(InfoBarMessageType messageType)
{
return messageType switch