Exemple #1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string stringValue = value as string;

            if (stringValue != null)
            {
                return(DataLoader.GetResourceUri("/Images/" + stringValue + ".png"));
            }
            return(null);
        }
 public DashboardViewModel()
 {
     MapFileUri    = DataLoader.GetResourceUri("/Data/CountriesGDP.shp");
     CountriesData = CountriesInfoDataReader.Load();
 }