public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { var val = value.ToString(); var path = ""; if (val.ToLower() == "completo") { path = ApplicationPath.GetPathByFileNameFromResources("check-30.png"); } if (val.ToLower() == "pendiente") { path = ApplicationPath.GetPathByFileNameFromResources("attention-30.png"); } return(string.Format("/SigiFluent;component/{0}", path)); }
private void UpdateConnectionStatus(string iconname, string tooltip) { IconConnectionStatusPath = ApplicationPath.GetPathByFileNameFromResources(iconname); LabelStatus = tooltip; }