修改项目名称
This commit is contained in:
@@ -16,7 +16,7 @@ using System.Windows.Media.Imaging;
|
|||||||
using System.Windows.Navigation;
|
using System.Windows.Navigation;
|
||||||
using System.Windows.Shapes;
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
namespace Deedy.Design
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 按照步骤 1a 或 1b 操作,然后执行步骤 2 以在 XAML 文件中使用此自定义控件。
|
/// 按照步骤 1a 或 1b 操作,然后执行步骤 2 以在 XAML 文件中使用此自定义控件。
|
||||||
@@ -44,14 +44,14 @@ namespace Deedy.Design
|
|||||||
/// 步骤 2)
|
/// 步骤 2)
|
||||||
/// 继续操作并在 XAML 文件中使用控件。
|
/// 继续操作并在 XAML 文件中使用控件。
|
||||||
///
|
///
|
||||||
/// <MyNamespace:DeedyViewer/>
|
/// <MyNamespace:ActionViewer/>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DeedyViewer : Control, IDeedyViewer
|
public class ActionViewer : Control, IActionViewer
|
||||||
{
|
{
|
||||||
static DeedyViewer()
|
static ActionViewer()
|
||||||
{
|
{
|
||||||
DefaultStyleKeyProperty.OverrideMetadata(typeof(DeedyViewer), new FrameworkPropertyMetadata(typeof(DeedyViewer)));
|
DefaultStyleKeyProperty.OverrideMetadata(typeof(ActionViewer), new FrameworkPropertyMetadata(typeof(ActionViewer)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public event PropertyChangedEventHandler? PropertyChanged;
|
public event PropertyChangedEventHandler? PropertyChanged;
|
||||||
@@ -98,8 +98,8 @@ namespace Deedy.Design
|
|||||||
set { SetValue(DeedyActionProperty, value); }
|
set { SetValue(DeedyActionProperty, value); }
|
||||||
}
|
}
|
||||||
public static readonly DependencyProperty DeedyActionProperty =
|
public static readonly DependencyProperty DeedyActionProperty =
|
||||||
DependencyProperty.Register("DeedyAction", typeof(IDeedyAction), typeof(DeedyViewer), new PropertyMetadata(null,
|
DependencyProperty.Register("DeedyAction", typeof(IDeedyAction), typeof(ActionViewer), new PropertyMetadata(null,
|
||||||
(d, e) => (d as DeedyViewer)?.DeedyAction_PropertyChangedCallback(d, e)));
|
(d, e) => (d as ActionViewer)?.DeedyAction_PropertyChangedCallback(d, e)));
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 处理「DeedyActionViewer.DeedyAction」属性变更
|
/// 处理「DeedyActionViewer.DeedyAction」属性变更
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -6,7 +6,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Deedy.Design
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
public class DeedyElementCollection : ObservableCollection<IDeedyElement>
|
public class DeedyElementCollection : ObservableCollection<IDeedyElement>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Deedy.Design
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
public interface IContainerElement : IDeedyElement
|
public interface IContainerElement : IDeedyElement
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Deedy.Design
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
public interface IVariableContainer : IContainerElement
|
public interface IVariableContainer : IContainerElement
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,8 +8,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Remove="DeedyAction.cs~RF1708d6d.TMP" />
|
<Folder Include="Attribute\" />
|
||||||
<None Remove="DeedyVisual.cs~RF13b8243.TMP" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
@@ -6,7 +6,7 @@ using System.Runtime.CompilerServices;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Deedy.Design
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
public abstract class DeedyAction : IDeedyAction
|
public abstract class DeedyAction : IDeedyAction
|
||||||
{
|
{
|
||||||
@@ -15,7 +15,7 @@ namespace Deedy.Design
|
|||||||
public string DERemark { get; set; } = "";
|
public string DERemark { get; set; } = "";
|
||||||
public string DEIdentify { get; set; } = "";
|
public string DEIdentify { get; set; } = "";
|
||||||
public IDeedyElement? DeedyParent { get; protected internal set; }
|
public IDeedyElement? DeedyParent { get; protected internal set; }
|
||||||
public IDeedyViewer? DeedyViewer { get; protected internal set; }
|
public IActionViewer? DeedyViewer { get; protected internal set; }
|
||||||
public DeedyElementCollection Children { get; set; } = new();
|
public DeedyElementCollection Children { get; set; } = new();
|
||||||
|
|
||||||
public IDeedyElement DeedyRoot => (this.DeedyParent == null) ? this : this.DeedyParent.DeedyRoot;
|
public IDeedyElement DeedyRoot => (this.DeedyParent == null) ? this : this.DeedyParent.DeedyRoot;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Deedy.Design
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
public static class DeedyHelper
|
public static class DeedyHelper
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Runtime.CompilerServices;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Deedy.Design
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
public class DeedyLayout : IDeedyLayout
|
public class DeedyLayout : IDeedyLayout
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Deedy.Design
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
public interface IDeedyLayout : IVariableContainer
|
public interface IDeedyLayout : IVariableContainer
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Deedy.Design
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
public interface IDeedyViewer : INotifyPropertyChanged
|
public interface IActionViewer : INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
[AllowNull]
|
[AllowNull]
|
||||||
public IDeedyAction DeedyAction { get; set; }
|
public IDeedyAction DeedyAction { get; set; }
|
||||||
@@ -4,10 +4,10 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Deedy.Design
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
public interface IDeedyAction : IDeedyElement
|
public interface IDeedyAction : IDeedyElement
|
||||||
{
|
{
|
||||||
public IDeedyViewer? DeedyViewer { get; }
|
public IActionViewer? DeedyViewer { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ using System.Runtime.CompilerServices;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Deedy.Design
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
public interface IDeedyElement : INotifyPropertyChanged
|
public interface IDeedyElement : INotifyPropertyChanged
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Deedy.Design
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
public interface IDeedyVisual : IDeedyElement
|
public interface IDeedyVisual : IDeedyElement
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
<ResourceDictionary
|
<ResourceDictionary
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:local="clr-namespace:Deedy.Design">
|
xmlns:local="clr-namespace:Deedy.Activity">
|
||||||
|
|
||||||
|
|
||||||
<Style TargetType="{x:Type local:DeedyViewer}">
|
<Style TargetType="{x:Type local:ActionViewer}">
|
||||||
<Setter Property="Template">
|
<Setter Property="Template">
|
||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate TargetType="{x:Type local:DeedyViewer}">
|
<ControlTemplate TargetType="{x:Type local:ActionViewer}">
|
||||||
<Border Background="{TemplateBinding Background}"
|
<Border Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}">
|
BorderThickness="{TemplateBinding BorderThickness}">
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.12.35527.113 d17.12
|
VisualStudioVersion = 17.12.35527.113
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Deedy.Design", "Deedy.Design\Deedy.Design.csproj", "{31386106-38FB-4CF6-A379-936CC292AFAE}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Deedy.Activity", "Deedy.Design\Deedy.Activity.csproj", "{31386106-38FB-4CF6-A379-936CC292AFAE}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
|||||||
Reference in New Issue
Block a user