Added ToolboxItem class and dummy view model

This commit is contained in:
2014-10-11 10:31:31 +03:00
parent 20fea8776a
commit e1d286d0e0
3 changed files with 95 additions and 2 deletions

View File

@ -0,0 +1,60 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using RainmeterStudio.Core.Editor.Features;
namespace RainmeterStudio.UI.ViewModel
{
public class ToolboxItemViewModel
{
/// <summary>
/// Gets the toolbox item
/// </summary>
public ToolboxItem Item { get; private set; }
/// <summary>
/// Gets the display text of the toolbox item
/// </summary>
public string DisplayText
{
get
{
return Item.Name;
}
}
/// <summary>
/// Gets the tooltip text of the toolbox item
/// </summary>
public string ToolTip
{
get
{
return "Placeholder tooltip for " + Item.Name;
}
}
/// <summary>
/// Gets the icon
/// </summary>
public ImageSource Icon
{
get
{
return null;
}
}
/// <summary>
/// Initializes the toolbox item view model
/// </summary>
/// <param name="item"></param>
public ToolboxItemViewModel(ToolboxItem item)
{
Item = item;
}
}
}