private static void InitializeCachedImageService()
 {
     ImageService.Instance.Initialize();
     CachedImage.FixedOnMeasureBehavior = true;
     CachedImageRenderer.Init();
     var ignore  = typeof(SvgCachedImage);
     var ignore2 = new CircleTransformation();
     var ignore3 = new TintTransformation();
 }
Exemple #2
0
        public RecordVoiceMessagePage()
        {
            InitializeComponent();

            Application.Current.Resources.TryGetValue("HeaderButtonIdleColorHex", out var idleColorHex);
            tint = new TintTransformation(idleColorHex?.ToString() ?? "#ffffff")
            {
                EnableSolidColor = true
            };
        }
Exemple #3
0
        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
            };
        }