private void ImageSelect_Click(object sender, RoutedEventArgs e) { string filePath = Repository.GetFile(); if (filePath != null) { UserSettings.BackgroundString = filePath; UserSettings.Background = new Uri(filePath, UriKind.RelativeOrAbsolute); BackgroundSet(); UserSettings.BackgroundUpdate(); } }