private static void InitializeCachedImageService() { ImageService.Instance.Initialize(); CachedImage.FixedOnMeasureBehavior = true; CachedImageRenderer.Init(); var ignore = typeof(SvgCachedImage); var ignore2 = new CircleTransformation(); var ignore3 = new TintTransformation(); }
public RecordVoiceMessagePage() { InitializeComponent(); Application.Current.Resources.TryGetValue("HeaderButtonIdleColorHex", out var idleColorHex); tint = new TintTransformation(idleColorHex?.ToString() ?? "#ffffff") { EnableSolidColor = true }; }
private void RefreshTintTransformations() { Application.Current.Resources.TryGetValue("HeaderButtonIdleColorHex", out var idleColorHex); Application.Current.Resources.TryGetValue("HeaderButtonPressedColorHex", out var pressedColorHex); Application.Current.Resources.TryGetValue("LogoutHeaderButtonPressedColorHex", out var pressedLogoutColorHex); idle = new TintTransformation(idleColorHex?.ToString() ?? "#ffffff") { EnableSolidColor = true }; pressed = new TintTransformation(pressedColorHex?.ToString() ?? "#00b4dd") { EnableSolidColor = true }; pressedLogout = new TintTransformation(pressedLogoutColorHex?.ToString() ?? "#cc0000") { EnableSolidColor = true }; }