rainmeter-studio/RainmeterStudio.SkinDesigner/SkinDesigner.cs

52 lines
1.4 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using RainmeterStudio.Core.Documents;
using RainmeterStudio.Core.Model;
namespace RainmeterStudio.SkinDesignerPlugin
{
/// <summary>
/// Skin designer document editor
/// </summary>
public class SkinDesigner : IDocumentEditor
{
/// <summary>
/// Gets the document attached to this editor instance
/// </summary>
public SkinDocument AttachedDocument { get; private set; }
/// <summary>
/// Gets the document attached to this editor instance
/// </summary>
IDocument IDocumentEditor.AttachedDocument
{
get { return AttachedDocument; }
}
/// <summary>
/// Gets the UI control to display for this editor
/// </summary>
public SkinDesignerControl EditorUI { get; private set; }
/// <summary>
/// Gets the UI control to display for this editor
/// </summary>
UIElement IDocumentEditor.EditorUI
{
get { return EditorUI; }
}
/// <summary>
/// Initializes this editor
/// </summary>
/// <param name="document">The document</param>
public SkinDesigner(SkinDocument document)
{
AttachedDocument = document;
}
}
}