Exemple #1
0
        public object ProvideValue(IServiceProvider serviceProvider)
        {
            if (Text == null)
            {
                return(string.Empty);
            }

            var icon = FontMaterialDesignCollection.FindByKey(Text);

            return(icon?.Character);
        }
Exemple #2
0
 protected void Initialize()
 {
     _settings = new ObservableRangeCollection <SettingModel>()
     {
         new SettingModel()
         {
             Type = SettingTypes.Account,
             Icon = FontMaterialDesignCollection
                    .FindByKey("mdi-account", Color.FromHex("#4a820c")),
             Title            = "Account",
             Description      = "Manage your account",
             Category         = "Personal",
             NavigationTarget = "NavigationPage/AccountPage?message=Account"
         },
         new SettingModel()
         {
             Type = SettingTypes.Profiles,
             Icon = FontMaterialDesignCollection
                    .FindByKey("mdi-file-document-edit", Color.FromHex("#4a820c")),
             Title            = "Profiles",
             Description      = "Manage your vehicle profile",
             Category         = "Personal",
             NavigationTarget = "NavigationPage/ProfilePage?message=Profiles"
         },
         new SettingModel()
         {
             Type = SettingTypes.Preferences,
             Icon = FontMaterialDesignCollection
                    .FindByKey("mdi-settings", Color.FromHex("#4a820c")),
             Title            = "Preferences",
             Description      = "Set your personal preferences",
             Category         = "Personal",
             NavigationTarget = "NavigationPage/PreferencePage?message=Preferences"
         },
         new SettingModel()
         {
             Type = SettingTypes.Notifications,
             Icon = FontMaterialDesignCollection
                    .FindByKey("mdi-bell", Color.FromHex("#4a820c")),
             Title            = "Notifications",
             Description      = "Badge and push notifications",
             Category         = "Personal",
             NavigationTarget = "NavigationPage/NotificationPage?message=Notifications"
         },
         //new SettingModel()
         //{
         //    Type = SettingTypes.SocialSharing,
         //    Icon = FontMaterialDesignCollection
         //        .FindByKey("mdi-share-variant", Color.FromHex("#4a820c")),
         //    Title = "Social Sharing",
         //    Description = "Support our work and follow us on Facebook, Twitter and Instagram",
         //    Category = "Personal",
         //    NavigationTarget = "NavigationPage/SocialSharingPage?message=Social%20Sharing"
         //},
         //new SettingModel()
         //{
         //    Type = SettingTypes.Membership,
         //    Icon = FontMaterialDesignCollection
         //        .FindByKey("mdi-star-circle", Color.FromHex("#fdd835")),
         //    Title = "Premium Membership",
         //    Description = "Work offline and ads free, add, edit and remove items, and much more",
         //    Category = "In-App Purchase",
         //    NavigationTarget = "NavigationPage/SplashPage"
         //},
         //new SettingModel()
         //{
         //    Type = SettingTypes.RestorePurchase,
         //    Icon = FontMaterialDesignCollection
         //        .FindByKey("mdi-restore-clock", Color.FromHex("#7bb241")),
         //    Title = "Restore Purchase",
         //    Description = "Restore your in-app purchase",
         //    Category = "In-App Purchase",
         //    NavigationTarget = "NavigationPage/SplashPage"
         //},
         //new SettingModel()
         //{
         //    Type = SettingTypes.RestoreTemplates,
         //    Icon = FontMaterialDesignCollection
         //        .FindByKey("mdi-backup-restore", Color.FromHex("#7bb241")),
         //    Title = "Restore Template Package",
         //    Description = "Restore all templates from the predefined package",
         //    Category = "In-App Purchase",
         //    NavigationTarget = "NavigationPage/SplashPage"
         //},
         new SettingModel()
         {
             Type = SettingTypes.Website,
             Icon = FontMaterialDesignCollection
                    .FindByKey("mdi-web", Color.FromHex("#ade470")),
             Title            = "Website",
             Description      = "Explore our website to discover more",
             Category         = "More Online",
             NavigationTarget = "https://easycamperapps.com/"
         },
         new SettingModel()
         {
             Type = SettingTypes.Blog,
             Icon = FontMaterialDesignCollection
                    .FindByKey("mdi-message-text-outline", Color.FromHex("#ade470")),
             Title            = "Blog",
             Description      = "Read our blog for the latest news",
             Category         = "More Online",
             NavigationTarget = "https://easycamperapps.com/posts/"
         },
         new SettingModel()
         {
             Type = SettingTypes.Support,
             Icon = FontMaterialDesignCollection
                    .FindByKey("mdi-school", Color.FromHex("#ade470")),
             Title            = "Support",
             Description      = "Get online support",
             Category         = "More Online",
             NavigationTarget = "https://easycamperapps.com/support/"
         },
         new SettingModel()
         {
             Type = SettingTypes.Feedback,
             Icon = FontMaterialDesignCollection
                    .FindByKey("mdi-message-text", Color.FromHex("#ade470")),
             Title            = "Feedback",
             Description      = "Give us your feedback",
             Category         = "More Online",
             NavigationTarget = "https://easycamperapps.com/contact/"
         }
     };
 }