HandyControl/HandyControlDemo/ViewModel/ImageBrowserDemoViewModel.cs
2018-09-11 12:00:52 +08:00

13 lines
389 B
C#

using System;
using GalaSoft.MvvmLight.CommandWpf;
using HandyControl.Controls;
namespace HandyControlDemo.ViewModel
{
public class ImageBrowserDemoViewModel
{
public RelayCommand OpenImgCmd => new Lazy<RelayCommand>(() =>
new RelayCommand(() =>
new ImageBrowser(new Uri("pack://application:,,,/Resources/Img/1.jpg")).Show())).Value;
}
}