Fixes, UI improvements
child container, preview, etc
This commit is contained in:
@@ -67,71 +67,6 @@ namespace FileTime.Avalonia.ViewModels
|
||||
|
||||
public List<ItemNamePart> DisplayName => ItemNameConverterService.GetDisplayName(this);
|
||||
|
||||
/*[Obsolete($"This property is for databinding only, use {nameof(GetContainers)} method instead.")]
|
||||
public ObservableCollection<ContainerViewModel> Containers
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!_isInitialized) Task.Run(Refresh).Wait();
|
||||
}
|
||||
catch(Exception e) { }
|
||||
return _containers;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value != _containers)
|
||||
{
|
||||
_containers = value;
|
||||
OnPropertyChanged(nameof(Containers));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[Obsolete($"This property is for databinding only, use {nameof(GetElements)} method instead.")]
|
||||
public ObservableCollection<ElementViewModel> Elements
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!_isInitialized) Task.Run(Refresh).Wait();
|
||||
}
|
||||
catch(Exception e) { }
|
||||
return _elements;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value != _elements)
|
||||
{
|
||||
_elements = value;
|
||||
OnPropertyChanged(nameof(Elements));
|
||||
}
|
||||
}
|
||||
}
|
||||
[Obsolete($"This property is for databinding only, use {nameof(GetItems)} method instead.")]
|
||||
public ObservableCollection<IItemViewModel> Items
|
||||
{
|
||||
get
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!_isInitialized) Task.Run(Refresh).Wait();
|
||||
}
|
||||
catch(Exception e) { }
|
||||
return _items;
|
||||
}
|
||||
set
|
||||
{
|
||||
if (value != _items)
|
||||
{
|
||||
_items = value;
|
||||
OnPropertyChanged(nameof(Items));
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
public Task Containers => GetContainers();
|
||||
public Task Elements => GetElements();
|
||||
public Task Items => GetItems();
|
||||
|
||||
Reference in New Issue
Block a user