mirror of
https://gitee.com/handyorg/HandyControl.git
synced 2024-12-05 05:17:52 +08:00
13 lines
389 B
C#
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;
|
|
}
|
|
} |