Reorganized structure.

Created test project.
This commit is contained in:
Alexandru Macocian
2021-04-01 12:51:08 +02:00
parent dc0a15f9be
commit 166f9b499e
38 changed files with 226 additions and 93 deletions
+9
View File
@@ -0,0 +1,9 @@
<Application x:Class="WpfExtended.Test.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WpfExtended.Test"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>
+11
View File
@@ -0,0 +1,11 @@
using System.Windows;
namespace WpfExtended.Test
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

+12
View File
@@ -0,0 +1,12 @@
<Window x:Class="WpfExtended.Test.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfExtended.Test"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
</Grid>
</Window>
+18
View File
@@ -0,0 +1,18 @@
using System.Windows;
using System.Windows.Media;
namespace WpfExtended.Test
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public static DependencyProperty ImageSourceProperty =
DependencyProperty.Register(nameof(ImageSource), typeof(ImageSource), typeof(MainWindow));
public MainWindow()
{
InitializeComponent();
}
}
}
+17
View File
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Media.Effects;
namespace WpfExtended.Tests.Utilities
{
internal static class TypeCrawler
{
public static IEnumerable<Type> GetEffectTypes<T>()
{
return AppDomain.CurrentDomain.GetAssemblies()
.SelectMany(a => a.GetTypes()
.Where(t => t.IsAssignableTo(typeof(T))));
}
}
}
+15
View File
@@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net5.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<None Update="Images\Test.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>