Initial commit: .NET practice project
Added CSharp, Nots, and Wpf directories with various practice exercises and projects. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
commit
90d09449ae
1196 files changed
+26114
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<UserControl x:Class="ModuleA.Views.ViewA"
|
||||
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:ModuleA.Views"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="450" d:DesignWidth="800">
|
||||
<Grid>
|
||||
<TextBlock FontSize="30" Text="模块A 中 页面A" />
|
||||
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
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 ModuleA.Views
|
||||
{
|
||||
/// <summary>
|
||||
/// ViewA.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class ViewA : UserControl
|
||||
{
|
||||
public ViewA()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
<UserControl x:Class="ModuleA.Views.ViewC"
|
||||
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:ModuleA.Views"
|
||||
mc:Ignorable="d"
|
||||
d:DesignHeight="300" d:DesignWidth="300">
|
||||
<Grid>
|
||||
<TextBlock Text="View C 提示文字" FontSize="30"/>
|
||||
|
||||
<StackPanel Margin="0,100,0,0">
|
||||
<Button Command="{Binding ConfirmCommand}">确定</Button>
|
||||
<Button Command="{Binding CancelCommand}">取消</Button>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</UserControl>
|
||||
@@ -0,0 +1,19 @@
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using ModuleA.Event;
|
||||
using Prism.Events;
|
||||
|
||||
namespace ModuleA.Views;
|
||||
|
||||
public partial class ViewC : UserControl
|
||||
{
|
||||
public ViewC(IEventAggregator aggregator)
|
||||
{
|
||||
InitializeComponent();
|
||||
var messageEvent = aggregator.GetEvent<MessageEvent>();
|
||||
messageEvent.Subscribe(arg =>
|
||||
{
|
||||
MessageBox.Show(arg);
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user