From 6bcafc823e836ecd5790f87178a906333699f868 Mon Sep 17 00:00:00 2001
From: alielie <alielie@git.com>
Date: 星期四, 10 四月 2025 10:46:47 +0800
Subject: [PATCH] 优化插件结构;
---
Plugin.TestBuilder/Container/ProgramList.xaml | 24 ++++++++++--------------
1 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/WPFProject/UI/Test/ProgramList.xaml b/Plugin.TestBuilder/Container/ProgramList.xaml
similarity index 62%
rename from WPFProject/UI/Test/ProgramList.xaml
rename to Plugin.TestBuilder/Container/ProgramList.xaml
index 8601d25..aef8888 100644
--- a/WPFProject/UI/Test/ProgramList.xaml
+++ b/Plugin.TestBuilder/Container/ProgramList.xaml
@@ -1,12 +1,12 @@
-锘�<UserControl x:Class="WPFProject.UI.Test.ProgramList"
+锘�<UserControl x:Class="Plugin.TestBuilder.ProgramList"
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:local="clr-namespace:WPFProject.UI.Test"
- xmlns:vm="clr-namespace:WPFProject.ViewModels"
+ xmlns:local="clr-namespace:Plugin.TestBuilder"
xmlns:dd="urn:gong-wpf-dragdrop"
-
+ xmlns:pw="https://opensource.panuon.com/wpf"
+ xmlns:pu="https://opensource.panuon.com/wpf-ui"
mc:Ignorable="d"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
@@ -14,23 +14,19 @@
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="/WPFProject;component/Style/ListViewStyle.xaml"/>
+ <pu:StyleDictionary Includes="ListBox"/>
</ResourceDictionary.MergedDictionaries>
-
- <Style TargetType="Label"></Style>
</ResourceDictionary>
</UserControl.Resources>
-
+
<Grid>
- <ListView ItemsSource="{Binding Programs}" ItemContainerStyle="{StaticResource a}"
- VerticalContentAlignment="Center"
-
+ <ListBox ItemsSource="{Binding Programs}" Style="{StaticResource DefaultListBox}" VerticalContentAlignment="Center"
SelectionChanged="ListView_SelectionChanged">
- <ListView.ItemTemplate>
+ <ListBox.ItemTemplate>
<DataTemplate>
<ContentControl Content="{Binding Name}"/>
</DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
+ </ListBox.ItemTemplate>
+ </ListBox>
</Grid>
</UserControl>
--
Gitblit v1.9.1