From 2f56f392dff06962d7df4b11cbbf9090162651d2 Mon Sep 17 00:00:00 2001
From: Brian Lagunas <835562+brianlagunas@users.noreply.github.com>
Date: Thu, 2 Apr 2026 19:37:51 -0600
Subject: [PATCH] Modernize XAMLBehaviorsSample to SDK-style project
Updates the sample project to use the modern .NET SDK-style format and enables multi-targeting for .NET 4.6.2 and .NET 8.0. This change simplifies the project file and removes redundant assembly information and configuration files.
---
.../XAMLBehaviorsSample/App.config | 6 -
.../Properties/AssemblyInfo.cs | 55 ----
.../XAMLBehaviorsSample.csproj | 252 +-----------------
3 files changed, 13 insertions(+), 300 deletions(-)
delete mode 100644 samples/XAMLBehaviorsSample/XAMLBehaviorsSample/App.config
delete mode 100644 samples/XAMLBehaviorsSample/XAMLBehaviorsSample/Properties/AssemblyInfo.cs
diff --git a/samples/XAMLBehaviorsSample/XAMLBehaviorsSample/App.config b/samples/XAMLBehaviorsSample/XAMLBehaviorsSample/App.config
deleted file mode 100644
index 8d23437..0000000
--- a/samples/XAMLBehaviorsSample/XAMLBehaviorsSample/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/samples/XAMLBehaviorsSample/XAMLBehaviorsSample/Properties/AssemblyInfo.cs b/samples/XAMLBehaviorsSample/XAMLBehaviorsSample/Properties/AssemblyInfo.cs
deleted file mode 100644
index bcc1874..0000000
--- a/samples/XAMLBehaviorsSample/XAMLBehaviorsSample/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using System.Reflection;
-using System.Resources;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using System.Windows;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("XAMLBehaviorsSample")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("XAMLBehaviorsSample")]
-[assembly: AssemblyCopyright("Copyright © 2017")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-//In order to begin building localizable applications, set
-//CultureYouAreCodingWith in your .csproj file
-//inside a . For example, if you are using US english
-//in your source files, set the to en-US. Then uncomment
-//the NeutralResourceLanguage attribute below. Update the "en-US" in
-//the line below to match the UICulture setting in the project file.
-
-//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
-
-
-[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)
-)]
-
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/samples/XAMLBehaviorsSample/XAMLBehaviorsSample/XAMLBehaviorsSample.csproj b/samples/XAMLBehaviorsSample/XAMLBehaviorsSample/XAMLBehaviorsSample.csproj
index a018ef5..7c0b08a 100644
--- a/samples/XAMLBehaviorsSample/XAMLBehaviorsSample/XAMLBehaviorsSample.csproj
+++ b/samples/XAMLBehaviorsSample/XAMLBehaviorsSample/XAMLBehaviorsSample.csproj
@@ -1,249 +1,23 @@
-
-
-
+
- Debug
- AnyCPU
- {80AD6652-D782-44F9-808E-56E73F4DC6C6}
+ net462;net8.0-windows
WinExe
- XAMLBehaviorsSample
+ true
XAMLBehaviorsSample
- v4.6.2
- 512
- {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- 4
- true
-
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
+ XAMLBehaviorsSample
+ false
+
-
-
-
-
-
-
-
-
-
-
-
- 4.0
-
-
-
-
-
-
-
- MSBuild:Compile
- Designer
-
-
- AnimationPage.xaml
-
-
- ConditionPage.xaml
-
-
- DataPage.xaml
-
-
- DataStateControl.xaml
-
-
- DataStore.xaml
-
-
- FluidMoveControl.xaml
-
-
- FluidMoveSetTagControl.xaml
-
-
- GoToStateControl.xaml
-
-
- RemoveElementControl.xaml
-
-
- SampleDataSource.xaml
-
-
- SetDataValueControl.xaml
-
-
- TouchBehaviorControl.xaml
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- MSBuild:Compile
- Designer
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- MSBuild:Compile
- Designer
-
-
- App.xaml
- Code
-
-
- CallMethodControl.xaml
-
-
- ChangePropertyControl.xaml
-
-
- ControlStoryboardControl.xaml
-
-
- InvokeCommandControl.xaml
-
-
- LaunchUriControl.xaml
-
-
- MainWindow.xaml
- Code
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
- MSBuild:Compile
- Designer
-
-
- Designer
- MSBuild:Compile
-
-
- Designer
- MSBuild:Compile
-
-
-
-
- MouseDragElementControl.xaml
-
-
- PlaySoundControl.xaml
-
-
- Code
-
-
- True
- True
- Resources.resx
-
-
- True
- Settings.settings
- True
-
-
- ResXFileCodeGenerator
- Resources.Designer.cs
-
+
+ PreserveNewest
+
+
-
- SettingsSingleFileGenerator
- Settings.Designer.cs
-
+
-
-
-
-
-
-
-
-
-
-
-
-
- {8620c598-b704-429e-bca5-7e5dde506923}
- Microsoft.Xaml.Behaviors
-
+
-
-
\ No newline at end of file
+