整理整理

This commit is contained in:
艾竹
2023-01-25 15:58:05 +08:00
parent 4c5d535aad
commit b7af3534a2
84 changed files with 190 additions and 702 deletions

View File

@@ -7,8 +7,11 @@
<ItemGroup>
<ProjectReference Include="..\AIStudio.Wpf.DiagramDesigner\AIStudio.Wpf.DiagramDesigner.csproj" />
<ProjectReference Include="..\AIStudio.Wpf.DiagramHelper\AIStudio.Wpf.DiagramHelper.csproj" />
<ProjectReference Include="..\AIStudio.Wpf.Flowchart\AIStudio.Wpf.Flowchart.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Views\Animations\" />
</ItemGroup>
</Project>

View File

@@ -44,7 +44,7 @@ namespace AIStudio.Wpf.DiagramDesigner.Demo
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
ListBox_SelectionChanged(null, null);
listbox.SelectedIndex = 0;
}
private void Button_Click(object sender, RoutedEventArgs e)

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace AIStudio.Wpf.DiagramDesigner.Demo.ViewModels
{
class SimpleViewModel : BindableBase
{
public DiagramViewModel DiagramViewModel
{
get; private set;
}
public SimpleViewModel()
{
//DesignerItemViewModelBase timer = new TimerDesignerItemViewModel() { Left = 0, Top = 10 };
//DiagramViewModel.DirectAddItemCommand.Execute(timer);
}
}
}

View File

@@ -0,0 +1,14 @@
<UserControl x:Class="AIStudio.Wpf.DiagramDesigner.Demo.Views.SimpleView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:dd="https://gitee.com/akwkevin/aistudio.-wpf.-diagram"
xmlns:local="clr-namespace:AIStudio.Wpf.DiagramDesigner.Demo.Views"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<!-- Diagram Control -->
<dd:DiagramControl x:Name="diagram" DataContext="{Binding DiagramViewModel}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" />
</Grid>
</UserControl>

View File

@@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace AIStudio.Wpf.DiagramDesigner.Demo.Views
{
/// <summary>
/// SimpleView.xaml 的交互逻辑
/// </summary>
public partial class SimpleView : UserControl
{
public SimpleView()
{
InitializeComponent();
}
}
}