diff --git a/AIStudio.Wpf.DiagramDesigner.Test/App.xaml b/AIStudio.Wpf.DiagramDesigner.Test/App.xaml index 79745bd..cf8e9da 100644 --- a/AIStudio.Wpf.DiagramDesigner.Test/App.xaml +++ b/AIStudio.Wpf.DiagramDesigner.Test/App.xaml @@ -13,9 +13,7 @@ - - - + diff --git a/AIStudio.Wpf.DiagramDesigner.Test/MainWindow.xaml b/AIStudio.Wpf.DiagramDesigner.Test/MainWindow.xaml index 0efb080..83cf1a9 100644 --- a/AIStudio.Wpf.DiagramDesigner.Test/MainWindow.xaml +++ b/AIStudio.Wpf.DiagramDesigner.Test/MainWindow.xaml @@ -4,16 +4,15 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:AIStudio.Wpf.DiagramDesigner.Test" - xmlns:dd="https://gitee.com/akwkevin/aistudio.-wpf.-diagram" - xmlns:controls="clr-namespace:AIStudio.Wpf.DiagramHelper.Controls;assembly=AIStudio.Wpf.DiagramHelper" - xmlns:flowchart="clr-namespace:AIStudio.Wpf.Flowchart;assembly=AIStudio.Wpf.Flowchart" + xmlns:dd="https://gitee.com/akwkevin/aistudio.-wpf.-diagram" xmlns:options="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" mc:Ignorable="d" Title="MainWindow" Height="450" Width="800"> - + + #FF0078D7 @@ -69,69 +68,77 @@ - - - - - - - - + + + + + + + + + + - - - + + - - + + - - + - + - - + ItemsSource="{Binding Path=DataContext.Roles,RelativeSource={RelativeSource AncestorType={x:Type Window}}}"> + + + + + + + - + + + + + + + diff --git a/AIStudio.Wpf.DiagramDesigner.Test/ViewModels/MainWindowViewModel.cs b/AIStudio.Wpf.DiagramDesigner.Test/ViewModels/MainWindowViewModel.cs index 210419a..52b510b 100644 --- a/AIStudio.Wpf.DiagramDesigner.Test/ViewModels/MainWindowViewModel.cs +++ b/AIStudio.Wpf.DiagramDesigner.Test/ViewModels/MainWindowViewModel.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Text; using System.Windows; using AIStudio.Wpf.Flowchart; +using AIStudio.Wpf.Flowchart.ViewModels; namespace AIStudio.Wpf.DiagramDesigner.Test.ViewModels { diff --git a/AIStudio.Wpf.DiagramDesigner/Styles/DesignerItems.xaml b/AIStudio.Wpf.DiagramDesigner/Styles/DesignerItems.xaml new file mode 100644 index 0000000..4b9a3b4 --- /dev/null +++ b/AIStudio.Wpf.DiagramDesigner/Styles/DesignerItems.xaml @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AIStudio.Wpf.DiagramDesigner/Styles/Expander.xaml b/AIStudio.Wpf.DiagramDesigner/Styles/Expander.xaml new file mode 100644 index 0000000..5974bb0 --- /dev/null +++ b/AIStudio.Wpf.DiagramDesigner/Styles/Expander.xaml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AIStudio.Wpf.DiagramDesigner/Styles/GroupBox.xaml b/AIStudio.Wpf.DiagramDesigner/Styles/GroupBox.xaml new file mode 100644 index 0000000..f418927 --- /dev/null +++ b/AIStudio.Wpf.DiagramDesigner/Styles/GroupBox.xaml @@ -0,0 +1,47 @@ + + + + + + + + + \ No newline at end of file diff --git a/AIStudio.Wpf.DiagramDesigner/Styles/ScrollBar.xaml b/AIStudio.Wpf.DiagramDesigner/Styles/ScrollBar.xaml new file mode 100644 index 0000000..f81c8a5 --- /dev/null +++ b/AIStudio.Wpf.DiagramDesigner/Styles/ScrollBar.xaml @@ -0,0 +1,186 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AIStudio.Wpf.DiagramDesigner/Styles/ScrollViewer.xaml b/AIStudio.Wpf.DiagramDesigner/Styles/ScrollViewer.xaml new file mode 100644 index 0000000..07fa158 --- /dev/null +++ b/AIStudio.Wpf.DiagramDesigner/Styles/ScrollViewer.xaml @@ -0,0 +1,43 @@ + + + + + + \ No newline at end of file diff --git a/AIStudio.Wpf.DiagramDesigner/Styles/Shared.xaml b/AIStudio.Wpf.DiagramDesigner/Styles/Shared.xaml new file mode 100644 index 0000000..fd557d4 --- /dev/null +++ b/AIStudio.Wpf.DiagramDesigner/Styles/Shared.xaml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AIStudio.Wpf.DiagramDesigner/Styles/ToolTip.xaml b/AIStudio.Wpf.DiagramDesigner/Styles/ToolTip.xaml new file mode 100644 index 0000000..bdc742c --- /dev/null +++ b/AIStudio.Wpf.DiagramDesigner/Styles/ToolTip.xaml @@ -0,0 +1,38 @@ + + + + + + + + + + \ No newline at end of file diff --git a/AIStudio.Wpf.DiagramDesigner/Styles/ZoomBox.xaml b/AIStudio.Wpf.DiagramDesigner/Styles/ZoomBox.xaml new file mode 100644 index 0000000..53efc24 --- /dev/null +++ b/AIStudio.Wpf.DiagramDesigner/Styles/ZoomBox.xaml @@ -0,0 +1,245 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/AIStudio.Wpf.DiagramHelper/Properties/AssemblyInfo.cs b/AIStudio.Wpf.DiagramHelper/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..0ff8867 --- /dev/null +++ b/AIStudio.Wpf.DiagramHelper/Properties/AssemblyInfo.cs @@ -0,0 +1,16 @@ +using System.Windows; +using System.Windows.Markup; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] + +[assembly: XmlnsDefinition("https://gitee.com/akwkevin/aistudio.-wpf.-diagram", "AIStudio.Wpf.DiagramHelper")] +[assembly: XmlnsDefinition("https://gitee.com/akwkevin/aistudio.-wpf.-diagram", "AIStudio.Wpf.DiagramHelper.Controls")] + +[assembly: XmlnsPrefix("https://gitee.com/akwkevin/aistudio.-wpf.-diagram", "dd")] \ No newline at end of file diff --git a/AIStudio.Wpf.DiagramHelper/Themes/Generic.xaml b/AIStudio.Wpf.DiagramHelper/Themes/Generic.xaml new file mode 100644 index 0000000..01a6b5d --- /dev/null +++ b/AIStudio.Wpf.DiagramHelper/Themes/Generic.xaml @@ -0,0 +1,8 @@ + + + + + + + \ No newline at end of file diff --git a/AIStudio.Wpf.Flowchart/AIStudio.Wpf.Flowchart.csproj b/AIStudio.Wpf.Flowchart/AIStudio.Wpf.Flowchart.csproj index 5e54e3e..050d2fb 100644 --- a/AIStudio.Wpf.Flowchart/AIStudio.Wpf.Flowchart.csproj +++ b/AIStudio.Wpf.Flowchart/AIStudio.Wpf.Flowchart.csproj @@ -12,4 +12,11 @@ + + + $(DefaultXamlRuntime) + Designer + + + diff --git a/AIStudio.Wpf.Flowchart/Controls/FlowchartEditor.xaml b/AIStudio.Wpf.Flowchart/Controls/FlowchartEditor.xaml new file mode 100644 index 0000000..d745e31 --- /dev/null +++ b/AIStudio.Wpf.Flowchart/Controls/FlowchartEditor.xaml @@ -0,0 +1,98 @@ + + + + + + + + + + + + + + + + + + +