add GifImage

Currently, there are only a few basic features, and more features will be added in version 2.0
This commit is contained in:
NaBian committed 2018-11-25 16:21:04 +08:00
1 parent 4d72778190
commit e4dc65675a
26 files changed
+1686 -7

No files matched your search

+8 -1
View File
@@ -38,7 +38,14 @@ namespace HandyControlDemo.ViewModel
public MainViewModel(DataService dataService)
{
Messenger.Default.Register<object>(this, MessageToken.LoadShowContent, obj => SubContent = obj);
Messenger.Default.Register<object>(this, MessageToken.LoadShowContent, obj =>
{
if (SubContent is IDisposable disposable)
{
disposable.Dispose();
}
SubContent = obj;
});
Messenger.Default.Register<object>(this, MessageToken.ClearLeftSelected, obj =>
{
if (_listBoxItemCurrent == null) return;