Files
Future/Future.Contract/Interfaces/IObjectEditor.cs
2025-08-30 17:19:57 +08:00

34 lines
1.2 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
namespace Future.Contract
{
/// <summary>
/// 自定义对象编辑器需要继承的接口
/// </summary>
public interface IObjectEditor
{
/// <summary>
/// 显示模式:约定自定义对象编辑器视图将以何种模式进行呈现
/// </summary>
EViewShowMode ShowMode { get; }
/// <summary>
/// 编辑视图用于实现对象属性与自定义参数编辑的可视化视图如果继承此接口的类不是UserControl的子类则需要使用此属性返回编辑视图
/// </summary>
UserControl EditorView { get; }
/// <summary>
/// 数据绑定:将要进行编辑的对象绑定到编辑视图,可重入逻辑
/// </summary>
/// <param name="value">要进行编辑的对象实例</param>
void Binding(object value);
/// <summary>
/// 编辑状态:默认是预览态(只读)或是编辑状态(可读可写)
/// </summary>
bool IsEditableOrPreview { get; set; }
}
}