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