Example #1
0
        public string GetInternalExtension(string fileName)
        {
            var extension = GetFileExtension(fileName);

            return(InternalExtension.TryGetValue(GetFileTypeByExtention(extension), out var internalExtension)
                       ? internalExtension
                       : extension);
        }
 static void OnFontWeightChanged(BindableObject bindable, object oldValue, object newValue)
 {
     InternalExtension.InternalPropertyChanged(bindable, FontWeightProperty, () => (FontWeight)newValue == FontWeight.Default, SupportedTypes);
 }
 static void OnBlendColorPropertyChanged(BindableObject bindable, object oldValue, object newValue)
 {
     InternalExtension.InternalPropertyChanged(bindable, BlendColorProperty, () => (Color)newValue == Color.Default, new List <Type> {
         typeof(Image)
     });
 }