示例#1
0
        private void ImageButton_OnClick(object sender, RoutedEventArgs e)
        {
            var path = MainUtils.LoadImageFile();

            if (path == null)
            {
                return;
            }

            Avatar.Source = new BitmapImage(new Uri(path));
        }
 private void ChooseAvatarButton_OnClick(object sender, RoutedEventArgs e)
 {
     _avatarImagePath = MainUtils.LoadImageFile();
 }