Files
HandyControl/HandyControlDemo/ViewModel/ImageBrowserDemoViewModel.cs
T
2018-09-04 15:42:37 +08:00

13 lines
386 B
C#

using System;
using GalaSoft.MvvmLight.Command;
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;
}
}