Example #1
0
        public void OnButtonClicked(object param)
        {
            ImageBrowser   imageBrowser = param as ImageBrowser;
            OpenFileDialog dialog       = new OpenFileDialog();

            dialog.Filter = "Small Icon (*.png, *.jpeg)|*.png*;*.jpeg";
            if (dialog.ShowDialog().Value)
            {
                BitmapImage bmp = new BitmapImage(new Uri(dialog.FileName, UriKind.RelativeOrAbsolute));
                imageBrowser.ImageSource = bmp;
            }
        }
Example #2
0
 public object Create(PropertyInfo propertyInfo)
 {
     imgbrowser = new ImageBrowser();
     return(imgbrowser);
 }