diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..49bc29c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +bin/* +obj/* diff --git a/.vs/ProjectEvaluation/saprecorderapp.metadata.v7.bin b/.vs/ProjectEvaluation/saprecorderapp.metadata.v7.bin index 8f99cec..ca2de9d 100644 Binary files a/.vs/ProjectEvaluation/saprecorderapp.metadata.v7.bin and b/.vs/ProjectEvaluation/saprecorderapp.metadata.v7.bin differ diff --git a/.vs/ProjectEvaluation/saprecorderapp.projects.v7.bin b/.vs/ProjectEvaluation/saprecorderapp.projects.v7.bin index c402271..2309564 100644 Binary files a/.vs/ProjectEvaluation/saprecorderapp.projects.v7.bin and b/.vs/ProjectEvaluation/saprecorderapp.projects.v7.bin differ diff --git a/.vs/SAPRecorderApp/DesignTimeBuild/.dtbcache.v2 b/.vs/SAPRecorderApp/DesignTimeBuild/.dtbcache.v2 index 3183c18..918720e 100644 Binary files a/.vs/SAPRecorderApp/DesignTimeBuild/.dtbcache.v2 and b/.vs/SAPRecorderApp/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/SAPRecorderApp/FileContentIndex/158b00bb-4f52-4114-8c5c-e14263dc2124.vsidx b/.vs/SAPRecorderApp/FileContentIndex/158b00bb-4f52-4114-8c5c-e14263dc2124.vsidx new file mode 100644 index 0000000..a7d76f1 Binary files /dev/null and b/.vs/SAPRecorderApp/FileContentIndex/158b00bb-4f52-4114-8c5c-e14263dc2124.vsidx differ diff --git a/.vs/SAPRecorderApp/FileContentIndex/3c124d32-551a-40c1-bef4-b2ec265158c4.vsidx b/.vs/SAPRecorderApp/FileContentIndex/3c124d32-551a-40c1-bef4-b2ec265158c4.vsidx new file mode 100644 index 0000000..a7d76f1 Binary files /dev/null and b/.vs/SAPRecorderApp/FileContentIndex/3c124d32-551a-40c1-bef4-b2ec265158c4.vsidx differ diff --git a/.vs/SAPRecorderApp/FileContentIndex/4ee1f92f-9bf9-4ad0-8c4d-86bd63692856.vsidx b/.vs/SAPRecorderApp/FileContentIndex/4ee1f92f-9bf9-4ad0-8c4d-86bd63692856.vsidx new file mode 100644 index 0000000..67d3179 Binary files /dev/null and b/.vs/SAPRecorderApp/FileContentIndex/4ee1f92f-9bf9-4ad0-8c4d-86bd63692856.vsidx differ diff --git a/.vs/SAPRecorderApp/FileContentIndex/92968b58-6e87-4087-9456-c49e8b0ad4b2.vsidx b/.vs/SAPRecorderApp/FileContentIndex/92968b58-6e87-4087-9456-c49e8b0ad4b2.vsidx new file mode 100644 index 0000000..a7d76f1 Binary files /dev/null and b/.vs/SAPRecorderApp/FileContentIndex/92968b58-6e87-4087-9456-c49e8b0ad4b2.vsidx differ diff --git a/.vs/SAPRecorderApp/FileContentIndex/a3cdbefd-2e68-40dc-ae50-1e4b98bcddb8.vsidx b/.vs/SAPRecorderApp/FileContentIndex/a3cdbefd-2e68-40dc-ae50-1e4b98bcddb8.vsidx deleted file mode 100644 index 9670103..0000000 Binary files a/.vs/SAPRecorderApp/FileContentIndex/a3cdbefd-2e68-40dc-ae50-1e4b98bcddb8.vsidx and /dev/null differ diff --git a/.vs/SAPRecorderApp/FileContentIndex/b8de8f72-346a-4af6-9e3d-cfb25e56a580.vsidx b/.vs/SAPRecorderApp/FileContentIndex/b8de8f72-346a-4af6-9e3d-cfb25e56a580.vsidx new file mode 100644 index 0000000..20d0426 Binary files /dev/null and b/.vs/SAPRecorderApp/FileContentIndex/b8de8f72-346a-4af6-9e3d-cfb25e56a580.vsidx differ diff --git a/.vs/SAPRecorderApp/v17/.futdcache.v2 b/.vs/SAPRecorderApp/v17/.futdcache.v2 index ee3dc24..2fd2638 100644 Binary files a/.vs/SAPRecorderApp/v17/.futdcache.v2 and b/.vs/SAPRecorderApp/v17/.futdcache.v2 differ diff --git a/.vs/SAPRecorderApp/v17/.suo b/.vs/SAPRecorderApp/v17/.suo index 0769f5a..f007bc5 100644 Binary files a/.vs/SAPRecorderApp/v17/.suo and b/.vs/SAPRecorderApp/v17/.suo differ diff --git a/MainWindow.xaml b/MainWindow.xaml index bfcb3a1..6ff3d7b 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -3,73 +3,85 @@ x:Class="SAPRecorderApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" - xmlns:local="using:SAPRecorderApp" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - mc:Ignorable="d" - > + mc:Ignorable="d"> + + + + + - + - + - - + - - - - - - + - - + - - - - - + + + + + + + + + + + + - + + + diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index d4989ff..5ac8024 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -6,24 +6,8 @@ using Microsoft.UI.Xaml.Controls.Primitives; using Microsoft.UI.Xaml.Data; using Microsoft.UI.Xaml.Input; using Microsoft.UI.Xaml.Media; -using Microsoft.UI.Xaml.Navigation; -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Runtime.InteropServices.WindowsRuntime; -using System.Threading.Tasks; -using Windows.Devices.Display; -using Windows.Devices.Enumeration; -using Windows.Graphics; -using WinRT.Interop; - using Windows.ApplicationModel; -using Rect = Windows.Foundation.Rect; -using Microsoft.UI; // Needed for WindowId. -using Microsoft.UI.Windowing; // Needed for AppWindow. -using WinRT.Interop; // To learn more about WinUI, the WinUI project structure, @@ -42,27 +26,39 @@ namespace SAPRecorderApp Activated += MainWindow_Activated; - this.AppWindow.MoveAndResize(new Windows.Graphics.RectInt32(1600, 100, 500, 1000)); + this.AppWindow.MoveAndResize(new Windows.Graphics.RectInt32(1600, 100, 600, 1000)); - var m_AppWindow = GetAppWindowForCurrentWindow(); - var titleBar = m_AppWindow.TitleBar; - // Hide system title bar. - titleBar.ExtendsContentIntoTitleBar = true; + //var m_AppWindow = GetAppWindowForCurrentWindow(); + //var titleBar = m_AppWindow.TitleBar; + //// Hide system title bar. + //titleBar.ExtendsContentIntoTitleBar = true; + var m_AppWindow = this.AppWindow; + ExtendsContentIntoTitleBar = true; + if (ExtendsContentIntoTitleBar == true) + { + m_AppWindow.TitleBar.PreferredHeightOption = TitleBarHeightOption.Tall; + } + + TitleBarTextBlock.Text = AppInfo.Current.DisplayInfo.DisplayName; + + SystemBackdrop = new DesktopAcrylicBackdrop(); } - private void myButton_Click(object sender, RoutedEventArgs e) + private void RecordButton_Click(object sender, RoutedEventArgs e) { - if (myButton.Content == "Recording") - { - myButton.Content = "Record"; - } - else - { - myButton.Content = "Recording"; - } - + } + + private void CopyButton_Click(object sender, RoutedEventArgs e) + { + //Clipboard.SetContent(recordTextBox.Text); + } + + + private void ClearButton_Click(object sender, RoutedEventArgs e) + { + recordTextBox.Text = ""; } @@ -72,7 +68,7 @@ namespace SAPRecorderApp // if (!displayList.Any()) return; // var monitorInfo = await DisplayMonitor.FromIdAsync(displayList[0].Id); - + // var winSize = new SizeInt32(); // winSize.Height = Convert.ToInt32(monitorInfo.NativeResolutionInRawPixels.Height / 10); // winSize.Width = Convert.ToInt32(monitorInfo.NativeResolutionInRawPixels.Width / 10); @@ -97,11 +93,11 @@ namespace SAPRecorderApp //} } - private AppWindow GetAppWindowForCurrentWindow() - { - IntPtr hWnd = WindowNative.GetWindowHandle(this); - WindowId wndId = Win32Interop.GetWindowIdFromWindow(hWnd); - return AppWindow.GetFromWindowId(wndId); - } + //private AppWindow GetAppWindowForCurrentWindow() + //{ + // IntPtr hWnd = WindowNative.GetWindowHandle(this); + // WindowId wndId = Win32Interop.GetWindowIdFromWindow(hWnd); + // return AppWindow.GetFromWindowId(wndId); + //} } } diff --git a/Properties/PublishProfiles/win10-arm64.pubxml b/Properties/PublishProfiles/win10-arm64.pubxml index a7fdd16..4967ba1 100644 --- a/Properties/PublishProfiles/win10-arm64.pubxml +++ b/Properties/PublishProfiles/win10-arm64.pubxml @@ -5,14 +5,16 @@ https://go.microsoft.com/fwlink/?LinkID=208121. FileSystem - ARM64 + x64 win10-arm64 - bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ - true - False + bin\\\win10-arm64\publish\ + false + false False - True - diff --git a/Properties/PublishProfiles/win10-arm64.pubxml.user b/Properties/PublishProfiles/win10-arm64.pubxml.user new file mode 100644 index 0000000..72042d1 --- /dev/null +++ b/Properties/PublishProfiles/win10-arm64.pubxml.user @@ -0,0 +1,6 @@ + + + False|2024-01-04T16:06:39.6533629Z;False|2024-01-05T00:05:36.4969953+08:00;False|2024-01-05T00:03:26.4536979+08:00;False|2024-01-05T00:02:59.3435869+08:00; + + + \ No newline at end of file diff --git a/Properties/PublishProfiles/win10-x86.pubxml b/Properties/PublishProfiles/win10-x86.pubxml index 34d14d4..7c6257f 100644 --- a/Properties/PublishProfiles/win10-x86.pubxml +++ b/Properties/PublishProfiles/win10-x86.pubxml @@ -7,12 +7,14 @@ https://go.microsoft.com/fwlink/?LinkID=208121. FileSystem x86 win10-x86 - bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\ - true - False + bin\\\win10-x86\publish\ + false + false False - True - diff --git a/Properties/PublishProfiles/win10-x86.pubxml.user b/Properties/PublishProfiles/win10-x86.pubxml.user new file mode 100644 index 0000000..5b4ec52 --- /dev/null +++ b/Properties/PublishProfiles/win10-x86.pubxml.user @@ -0,0 +1,10 @@ + + + + + True|2024-01-04T16:11:10.2241756Z;True|2024-01-05T00:10:19.9868526+08:00; + + + \ No newline at end of file diff --git a/SAPRecorderApp.csproj.user b/SAPRecorderApp.csproj.user index 5fc5cf7..3c8c39e 100644 --- a/SAPRecorderApp.csproj.user +++ b/SAPRecorderApp.csproj.user @@ -1,6 +1,8 @@  - + + <_LastSelectedProfileId>D:\CS\SAPRecorderApp\Properties\PublishProfiles\win10-x86.pubxml + Designer diff --git a/obj/SAPRecorderApp.csproj.nuget.dgspec.json b/obj/SAPRecorderApp.csproj.nuget.dgspec.json index f9bd6c5..9f598e2 100644 --- a/obj/SAPRecorderApp.csproj.nuget.dgspec.json +++ b/obj/SAPRecorderApp.csproj.nuget.dgspec.json @@ -1,23 +1,23 @@ { "format": 1, "restore": { - "C:\\Users\\32075\\OneDrive\\文档\\Code\\csex\\SAPRecorderApp\\SAPRecorderApp.csproj": {} + "D:\\CS\\SAPRecorderApp\\SAPRecorderApp.csproj": {} }, "projects": { - "C:\\Users\\32075\\OneDrive\\文档\\Code\\csex\\SAPRecorderApp\\SAPRecorderApp.csproj": { + "D:\\CS\\SAPRecorderApp\\SAPRecorderApp.csproj": { "version": "1.0.0", "restore": { - "projectUniqueName": "C:\\Users\\32075\\OneDrive\\文档\\Code\\csex\\SAPRecorderApp\\SAPRecorderApp.csproj", + "projectUniqueName": "D:\\CS\\SAPRecorderApp\\SAPRecorderApp.csproj", "projectName": "SAPRecorderApp", - "projectPath": "C:\\Users\\32075\\OneDrive\\文档\\Code\\csex\\SAPRecorderApp\\SAPRecorderApp.csproj", - "packagesPath": "C:\\Users\\32075\\.nuget\\packages\\", - "outputPath": "C:\\Users\\32075\\OneDrive\\文档\\Code\\csex\\SAPRecorderApp\\obj\\", + "projectPath": "D:\\CS\\SAPRecorderApp\\SAPRecorderApp.csproj", + "packagesPath": "C:\\Users\\wn\\.nuget\\packages\\", + "outputPath": "D:\\CS\\SAPRecorderApp\\obj\\", "projectStyle": "PackageReference", "fallbackFolders": [ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" ], "configFilePaths": [ - "C:\\Users\\32075\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Users\\wn\\AppData\\Roaming\\NuGet\\NuGet.Config", "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" ], @@ -25,9 +25,9 @@ "net8.0-windows10.0.19041.0" ], "sources": { - "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, "C:\\Program Files\\dotnet\\library-packs": {}, - "https://api.nuget.org/v3/index.json": {} + "https://api.nuget.org/v3/index.json": {}, + "https://pkgs.dev.azure.com/ms/DevHome/_packaging/DevHomeDependencies/nuget/v3/index.json": {} }, "frameworks": { "net8.0-windows10.0.19041": { diff --git a/obj/SAPRecorderApp.csproj.nuget.g.props b/obj/SAPRecorderApp.csproj.nuget.g.props index ba45863..2ca74bc 100644 --- a/obj/SAPRecorderApp.csproj.nuget.g.props +++ b/obj/SAPRecorderApp.csproj.nuget.g.props @@ -5,12 +5,12 @@ NuGet $(MSBuildThisFileDirectory)project.assets.json $(UserProfile)\.nuget\packages\ - C:\Users\32075\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + C:\Users\wn\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages PackageReference 6.7.0 - + @@ -18,6 +18,6 @@ - C:\Users\32075\.nuget\packages\microsoft.windowsappsdk\1.4.231115000 + C:\Users\wn\.nuget\packages\microsoft.windowsappsdk\1.4.231115000 \ No newline at end of file diff --git a/obj/project.assets.json b/obj/project.assets.json index fbbcceb..7ceaf03 100644 --- a/obj/project.assets.json +++ b/obj/project.assets.json @@ -1188,23 +1188,23 @@ ] }, "packageFolders": { - "C:\\Users\\32075\\.nuget\\packages\\": {}, + "C:\\Users\\wn\\.nuget\\packages\\": {}, "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} }, "project": { "version": "1.0.0", "restore": { - "projectUniqueName": "C:\\Users\\32075\\OneDrive\\文档\\Code\\csex\\SAPRecorderApp\\SAPRecorderApp.csproj", + "projectUniqueName": "D:\\CS\\SAPRecorderApp\\SAPRecorderApp.csproj", "projectName": "SAPRecorderApp", - "projectPath": "C:\\Users\\32075\\OneDrive\\文档\\Code\\csex\\SAPRecorderApp\\SAPRecorderApp.csproj", - "packagesPath": "C:\\Users\\32075\\.nuget\\packages\\", - "outputPath": "C:\\Users\\32075\\OneDrive\\文档\\Code\\csex\\SAPRecorderApp\\obj\\", + "projectPath": "D:\\CS\\SAPRecorderApp\\SAPRecorderApp.csproj", + "packagesPath": "C:\\Users\\wn\\.nuget\\packages\\", + "outputPath": "D:\\CS\\SAPRecorderApp\\obj\\", "projectStyle": "PackageReference", "fallbackFolders": [ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" ], "configFilePaths": [ - "C:\\Users\\32075\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Users\\wn\\AppData\\Roaming\\NuGet\\NuGet.Config", "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" ], @@ -1212,9 +1212,9 @@ "net8.0-windows10.0.19041.0" ], "sources": { - "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, "C:\\Program Files\\dotnet\\library-packs": {}, - "https://api.nuget.org/v3/index.json": {} + "https://api.nuget.org/v3/index.json": {}, + "https://pkgs.dev.azure.com/ms/DevHome/_packaging/DevHomeDependencies/nuget/v3/index.json": {} }, "frameworks": { "net8.0-windows10.0.19041": { diff --git a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/App.g.cs.backup b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/App.g.cs.backup deleted file mode 100644 index e69de29..0000000 diff --git a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/MainWindow.g.cs.backup b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/MainWindow.g.cs.backup deleted file mode 100644 index e69de29..0000000 diff --git a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/SAPRecorderApp.assets.cache b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/SAPRecorderApp.assets.cache index afa0aac..65e7936 100644 Binary files a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/SAPRecorderApp.assets.cache and b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/SAPRecorderApp.assets.cache differ diff --git a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/SAPRecorderApp.csproj.FileListAbsolute.txt b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/SAPRecorderApp.csproj.FileListAbsolute.txt index e69de29..a11f151 100644 --- a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/SAPRecorderApp.csproj.FileListAbsolute.txt +++ b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/SAPRecorderApp.csproj.FileListAbsolute.txt @@ -0,0 +1,63 @@ +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.exe +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\App.xbf +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\MainWindow.xbf +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.deps.json +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.runtimeconfig.json +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.pdb +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\resources.pri +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\AppxManifest.xml +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.InteractiveExperiences.Projection.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.WinUI.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.AppLifecycle.Projection.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.AppNotifications.Builder.Projection.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.AppNotifications.Projection.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.ApplicationModel.Resources.Projection.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.ApplicationModel.WindowsAppRuntime.Projection.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.PushNotifications.Projection.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.Security.AccessControl.Projection.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.System.Power.Projection.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.System.Projection.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.Widgets.Providers.Projection.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.WindowsAppRuntime.Bootstrap.Net.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.WindowsAppRuntime.Bootstrap.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\Microsoft.Windows.SDK.NET.dll +D:\CS\SAPRecorderApp\bin\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\WinRT.Runtime.dll +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.csproj.AssemblyReference.cache +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\App.g.i.cs +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\App.g.cs +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\MainWindow.g.i.cs +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\MainWindow.g.cs +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\XamlTypeInfo.g.cs +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\App.xaml +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\MainWindow.xaml +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\App.xbf +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\MainWindow.xbf +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\XamlSaveStateFile.xml +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.GeneratedMSBuildEditorConfig.editorconfig +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.AssemblyInfoInputs.cache +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.AssemblyInfo.cs +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.csproj.CoreCompileInputs.cache +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.csproj.CopyComplete +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.dll +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\refint\SAPRecorderApp.dll +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.pdb +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.genruntimeconfig.cache +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\ref\SAPRecorderApp.dll +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\priconfig.xml +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\priconfig.xml.intermediate +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\unfiltered.layout.resfiles +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\unfiltered.layout.resfiles.intermediate +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\filtered.layout.resfiles +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\filtered.layout.resfiles.intermediate +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\excluded.layout.resfiles +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\excluded.layout.resfiles.intermediate +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\resources.resfiles +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\resources.resfiles.intermediate +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\pri.resfiles +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\pri.resfiles.intermediate +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\qualifiers.txt +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\qualifiers.txt.intermediate +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\MultipleQualifiersPerDimensionFound.txt +D:\CS\SAPRecorderApp\obj\x86\Debug\net8.0-windows10.0.19041.0\win10-x86\ProjectArchitectures.txt diff --git a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/XamlTypeInfo.g.cs.backup b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/XamlTypeInfo.g.cs.backup deleted file mode 100644 index e26b368..0000000 --- a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/XamlTypeInfo.g.cs.backup +++ /dev/null @@ -1,956 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - - -namespace SAPRecorderApp -{ - public partial class App : global::Microsoft.UI.Xaml.Markup.IXamlMetadataProvider - { - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2311")] - private global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlMetaDataProvider __appProvider; - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2311")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - private global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlMetaDataProvider _AppProvider - { - get - { - if (__appProvider == null) - { - __appProvider = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlMetaDataProvider(); - } - return __appProvider; - } - } - - /// - /// GetXamlType(Type) - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2311")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlType(global::System.Type type) - { - return _AppProvider.GetXamlType(type); - } - - /// - /// GetXamlType(String) - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2311")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlType(string fullName) - { - return _AppProvider.GetXamlType(fullName); - } - - /// - /// GetXmlnsDefinitions() - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2311")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public global::Microsoft.UI.Xaml.Markup.XmlnsDefinition[] GetXmlnsDefinitions() - { - return _AppProvider.GetXmlnsDefinitions(); - } - } -} - -namespace SAPRecorderApp.SAPRecorderApp_XamlTypeInfo -{ - /// - /// Main class for providing metadata for the app or library - /// - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2311")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - public sealed class XamlMetaDataProvider : global::Microsoft.UI.Xaml.Markup.IXamlMetadataProvider - { - private global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlTypeInfoProvider _provider = null; - - private global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlTypeInfoProvider Provider - { - get - { - if (_provider == null) - { - _provider = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlTypeInfoProvider(); - } - return _provider; - } - } - - /// - /// GetXamlType(Type) - /// - [global::Windows.Foundation.Metadata.DefaultOverload] - public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlType(global::System.Type type) - { - return Provider.GetXamlTypeByType(type); - } - - /// - /// GetXamlType(String) - /// - public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlType(string fullName) - { - return Provider.GetXamlTypeByName(fullName); - } - - /// - /// GetXmlnsDefinitions() - /// - public global::Microsoft.UI.Xaml.Markup.XmlnsDefinition[] GetXmlnsDefinitions() - { - return new global::Microsoft.UI.Xaml.Markup.XmlnsDefinition[0]; - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2311")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal partial class XamlTypeInfoProvider - { - public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlTypeByType(global::System.Type type) - { - global::Microsoft.UI.Xaml.Markup.IXamlType xamlType; - lock (_xamlTypeCacheByType) - { - if (_xamlTypeCacheByType.TryGetValue(type, out xamlType)) - { - return xamlType; - } - int typeIndex = LookupTypeIndexByType(type); - if(typeIndex != -1) - { - xamlType = CreateXamlType(typeIndex); - } - var userXamlType = xamlType as global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType; - if(xamlType == null || (userXamlType != null && userXamlType.IsReturnTypeStub && !userXamlType.IsLocalType)) - { - global::Microsoft.UI.Xaml.Markup.IXamlType libXamlType = CheckOtherMetadataProvidersForType(type); - if (libXamlType != null) - { - if(libXamlType.IsConstructible || xamlType == null) - { - xamlType = libXamlType; - } - } - } - if (xamlType != null) - { - _xamlTypeCacheByName.Add(xamlType.FullName, xamlType); - _xamlTypeCacheByType.Add(xamlType.UnderlyingType, xamlType); - } - } - return xamlType; - } - - public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlTypeByName(string typeName) - { - if (string.IsNullOrEmpty(typeName)) - { - return null; - } - global::Microsoft.UI.Xaml.Markup.IXamlType xamlType; - lock (_xamlTypeCacheByType) - { - if (_xamlTypeCacheByName.TryGetValue(typeName, out xamlType)) - { - return xamlType; - } - int typeIndex = LookupTypeIndexByName(typeName); - if(typeIndex != -1) - { - xamlType = CreateXamlType(typeIndex); - } - var userXamlType = xamlType as global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType; - if(xamlType == null || (userXamlType != null && userXamlType.IsReturnTypeStub && !userXamlType.IsLocalType)) - { - global::Microsoft.UI.Xaml.Markup.IXamlType libXamlType = CheckOtherMetadataProvidersForName(typeName); - if (libXamlType != null) - { - if(libXamlType.IsConstructible || xamlType == null) - { - xamlType = libXamlType; - } - } - } - if (xamlType != null) - { - _xamlTypeCacheByName.Add(xamlType.FullName, xamlType); - _xamlTypeCacheByType.Add(xamlType.UnderlyingType, xamlType); - } - } - return xamlType; - } - - public global::Microsoft.UI.Xaml.Markup.IXamlMember GetMemberByLongName(string longMemberName) - { - if (string.IsNullOrEmpty(longMemberName)) - { - return null; - } - global::Microsoft.UI.Xaml.Markup.IXamlMember xamlMember; - lock (_xamlMembers) - { - if (_xamlMembers.TryGetValue(longMemberName, out xamlMember)) - { - return xamlMember; - } - xamlMember = CreateXamlMember(longMemberName); - if (xamlMember != null) - { - _xamlMembers.Add(longMemberName, xamlMember); - } - } - return xamlMember; - } - - global::System.Collections.Generic.Dictionary - _xamlTypeCacheByName = new global::System.Collections.Generic.Dictionary(); - - global::System.Collections.Generic.Dictionary - _xamlTypeCacheByType = new global::System.Collections.Generic.Dictionary(); - - global::System.Collections.Generic.Dictionary - _xamlMembers = new global::System.Collections.Generic.Dictionary(); - - string[] _typeNameTable = null; - global::System.Type[] _typeTable = null; - - private void InitTypeTables() - { - _typeNameTable = new string[15]; - _typeNameTable[0] = "Microsoft.UI.Xaml.Controls.XamlControlsResources"; - _typeNameTable[1] = "Microsoft.UI.Xaml.ResourceDictionary"; - _typeNameTable[2] = "Object"; - _typeNameTable[3] = "Boolean"; - _typeNameTable[4] = "Microsoft.UI.Xaml.Media.MicaBackdrop"; - _typeNameTable[5] = "Microsoft.UI.Xaml.Media.SystemBackdrop"; - _typeNameTable[6] = "Microsoft.UI.Composition.SystemBackdrops.MicaKind"; - _typeNameTable[7] = "System.Enum"; - _typeNameTable[8] = "System.ValueType"; - _typeNameTable[9] = "SAPRecorderApp.MainWindow"; - _typeNameTable[10] = "Microsoft.UI.Xaml.Window"; - _typeNameTable[11] = "Microsoft.UI.Xaml.Controls.TreeViewNode"; - _typeNameTable[12] = "Microsoft.UI.Xaml.DependencyObject"; - _typeNameTable[13] = "System.Collections.Generic.IList`1"; - _typeNameTable[14] = "Int32"; - - _typeTable = new global::System.Type[15]; - _typeTable[0] = typeof(global::Microsoft.UI.Xaml.Controls.XamlControlsResources); - _typeTable[1] = typeof(global::Microsoft.UI.Xaml.ResourceDictionary); - _typeTable[2] = typeof(global::System.Object); - _typeTable[3] = typeof(global::System.Boolean); - _typeTable[4] = typeof(global::Microsoft.UI.Xaml.Media.MicaBackdrop); - _typeTable[5] = typeof(global::Microsoft.UI.Xaml.Media.SystemBackdrop); - _typeTable[6] = typeof(global::Microsoft.UI.Composition.SystemBackdrops.MicaKind); - _typeTable[7] = typeof(global::System.Enum); - _typeTable[8] = typeof(global::System.ValueType); - _typeTable[9] = typeof(global::SAPRecorderApp.MainWindow); - _typeTable[10] = typeof(global::Microsoft.UI.Xaml.Window); - _typeTable[11] = typeof(global::Microsoft.UI.Xaml.Controls.TreeViewNode); - _typeTable[12] = typeof(global::Microsoft.UI.Xaml.DependencyObject); - _typeTable[13] = typeof(global::System.Collections.Generic.IList); - _typeTable[14] = typeof(global::System.Int32); - } - - private int LookupTypeIndexByName(string typeName) - { - if (_typeNameTable == null) - { - InitTypeTables(); - } - for (int i=0; i<_typeNameTable.Length; i++) - { - if(0 == string.CompareOrdinal(_typeNameTable[i], typeName)) - { - return i; - } - } - return -1; - } - - private int LookupTypeIndexByType(global::System.Type type) - { - if (_typeTable == null) - { - InitTypeTables(); - } - for(int i=0; i<_typeTable.Length; i++) - { - if(type == _typeTable[i]) - { - return i; - } - } - return -1; - } - - private object Activate_0_XamlControlsResources() { return new global::Microsoft.UI.Xaml.Controls.XamlControlsResources(); } - private object Activate_4_MicaBackdrop() { return new global::Microsoft.UI.Xaml.Media.MicaBackdrop(); } - private object Activate_9_MainWindow() { return new global::SAPRecorderApp.MainWindow(); } - private object Activate_11_TreeViewNode() { return new global::Microsoft.UI.Xaml.Controls.TreeViewNode(); } - private void MapAdd_0_XamlControlsResources(object instance, object key, object item) - { - var collection = (global::System.Collections.Generic.IDictionary)instance; - var newKey = (global::System.Object)key; - var newItem = (global::System.Object)item; - collection.Add(newKey, newItem); - } - private void VectorAdd_13_IList(object instance, object item) - { - var collection = (global::System.Collections.Generic.ICollection)instance; - var newItem = (global::Microsoft.UI.Xaml.Controls.TreeViewNode)item; - collection.Add(newItem); - } - - private global::Microsoft.UI.Xaml.Markup.IXamlType CreateXamlType(int typeIndex) - { - global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlSystemBaseType xamlType = null; - global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType userType; - string typeName = _typeNameTable[typeIndex]; - global::System.Type type = _typeTable[typeIndex]; - - switch (typeIndex) - { - - case 0: // Microsoft.UI.Xaml.Controls.XamlControlsResources - userType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Microsoft.UI.Xaml.ResourceDictionary")); - userType.Activator = Activate_0_XamlControlsResources; - userType.DictionaryAdd = MapAdd_0_XamlControlsResources; - userType.AddMemberName("UseCompactResources"); - xamlType = userType; - break; - - case 1: // Microsoft.UI.Xaml.ResourceDictionary - xamlType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); - break; - - case 2: // Object - xamlType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); - break; - - case 3: // Boolean - xamlType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); - break; - - case 4: // Microsoft.UI.Xaml.Media.MicaBackdrop - userType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Microsoft.UI.Xaml.Media.SystemBackdrop")); - userType.Activator = Activate_4_MicaBackdrop; - userType.AddMemberName("Kind"); - xamlType = userType; - break; - - case 5: // Microsoft.UI.Xaml.Media.SystemBackdrop - xamlType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); - break; - - case 6: // Microsoft.UI.Composition.SystemBackdrops.MicaKind - userType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.Enum")); - userType.AddEnumValue("Base", global::Microsoft.UI.Composition.SystemBackdrops.MicaKind.Base); - userType.AddEnumValue("BaseAlt", global::Microsoft.UI.Composition.SystemBackdrops.MicaKind.BaseAlt); - xamlType = userType; - break; - - case 7: // System.Enum - userType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("System.ValueType")); - xamlType = userType; - break; - - case 8: // System.ValueType - userType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Object")); - xamlType = userType; - break; - - case 9: // SAPRecorderApp.MainWindow - userType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Microsoft.UI.Xaml.Window")); - userType.Activator = Activate_9_MainWindow; - userType.SetIsLocalType(); - xamlType = userType; - break; - - case 10: // Microsoft.UI.Xaml.Window - xamlType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); - break; - - case 11: // Microsoft.UI.Xaml.Controls.TreeViewNode - userType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType(this, typeName, type, GetXamlTypeByName("Microsoft.UI.Xaml.DependencyObject")); - userType.Activator = Activate_11_TreeViewNode; - userType.AddMemberName("Children"); - userType.AddMemberName("Content"); - userType.AddMemberName("Depth"); - userType.AddMemberName("HasChildren"); - userType.AddMemberName("HasUnrealizedChildren"); - userType.AddMemberName("IsExpanded"); - userType.AddMemberName("Parent"); - userType.SetIsBindable(); - xamlType = userType; - break; - - case 12: // Microsoft.UI.Xaml.DependencyObject - xamlType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); - break; - - case 13: // System.Collections.Generic.IList`1 - userType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType(this, typeName, type, null); - userType.CollectionAdd = VectorAdd_13_IList; - userType.SetIsReturnTypeStub(); - xamlType = userType; - break; - - case 14: // Int32 - xamlType = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlSystemBaseType(typeName, type); - break; - } - return xamlType; - } - - private global::System.Collections.Generic.List _otherProviders; - private global::System.Collections.Generic.List OtherProviders - { - get - { - if(_otherProviders == null) - { - var otherProviders = new global::System.Collections.Generic.List(); - global::Microsoft.UI.Xaml.Markup.IXamlMetadataProvider provider; - provider = new global::Microsoft.UI.Xaml.XamlTypeInfo.XamlControlsXamlMetaDataProvider() as global::Microsoft.UI.Xaml.Markup.IXamlMetadataProvider; - otherProviders.Add(provider); - _otherProviders = otherProviders; - } - return _otherProviders; - } - } - - private global::Microsoft.UI.Xaml.Markup.IXamlType CheckOtherMetadataProvidersForName(string typeName) - { - global::Microsoft.UI.Xaml.Markup.IXamlType xamlType = null; - global::Microsoft.UI.Xaml.Markup.IXamlType foundXamlType = null; - foreach(global::Microsoft.UI.Xaml.Markup.IXamlMetadataProvider xmp in OtherProviders) - { - xamlType = xmp.GetXamlType(typeName); - if(xamlType != null) - { - if(xamlType.IsConstructible) // not Constructible means it might be a Return Type Stub - { - return xamlType; - } - foundXamlType = xamlType; - } - } - return foundXamlType; - } - - private global::Microsoft.UI.Xaml.Markup.IXamlType CheckOtherMetadataProvidersForType(global::System.Type type) - { - global::Microsoft.UI.Xaml.Markup.IXamlType xamlType = null; - global::Microsoft.UI.Xaml.Markup.IXamlType foundXamlType = null; - foreach(global::Microsoft.UI.Xaml.Markup.IXamlMetadataProvider xmp in OtherProviders) - { - xamlType = xmp.GetXamlType(type); - if(xamlType != null) - { - if(xamlType.IsConstructible) // not Constructible means it might be a Return Type Stub - { - return xamlType; - } - foundXamlType = xamlType; - } - } - return foundXamlType; - } - - private object get_0_XamlControlsResources_UseCompactResources(object instance) - { - var that = (global::Microsoft.UI.Xaml.Controls.XamlControlsResources)instance; - return that.UseCompactResources; - } - private void set_0_XamlControlsResources_UseCompactResources(object instance, object Value) - { - var that = (global::Microsoft.UI.Xaml.Controls.XamlControlsResources)instance; - that.UseCompactResources = (global::System.Boolean)Value; - } - private object get_1_MicaBackdrop_Kind(object instance) - { - var that = (global::Microsoft.UI.Xaml.Media.MicaBackdrop)instance; - return that.Kind; - } - private void set_1_MicaBackdrop_Kind(object instance, object Value) - { - var that = (global::Microsoft.UI.Xaml.Media.MicaBackdrop)instance; - that.Kind = (global::Microsoft.UI.Composition.SystemBackdrops.MicaKind)Value; - } - private object get_2_TreeViewNode_Children(object instance) - { - var that = (global::Microsoft.UI.Xaml.Controls.TreeViewNode)instance; - return that.Children; - } - private object get_3_TreeViewNode_Content(object instance) - { - var that = (global::Microsoft.UI.Xaml.Controls.TreeViewNode)instance; - return that.Content; - } - private void set_3_TreeViewNode_Content(object instance, object Value) - { - var that = (global::Microsoft.UI.Xaml.Controls.TreeViewNode)instance; - that.Content = (global::System.Object)Value; - } - private object get_4_TreeViewNode_Depth(object instance) - { - var that = (global::Microsoft.UI.Xaml.Controls.TreeViewNode)instance; - return that.Depth; - } - private object get_5_TreeViewNode_HasChildren(object instance) - { - var that = (global::Microsoft.UI.Xaml.Controls.TreeViewNode)instance; - return that.HasChildren; - } - private object get_6_TreeViewNode_HasUnrealizedChildren(object instance) - { - var that = (global::Microsoft.UI.Xaml.Controls.TreeViewNode)instance; - return that.HasUnrealizedChildren; - } - private void set_6_TreeViewNode_HasUnrealizedChildren(object instance, object Value) - { - var that = (global::Microsoft.UI.Xaml.Controls.TreeViewNode)instance; - that.HasUnrealizedChildren = (global::System.Boolean)Value; - } - private object get_7_TreeViewNode_IsExpanded(object instance) - { - var that = (global::Microsoft.UI.Xaml.Controls.TreeViewNode)instance; - return that.IsExpanded; - } - private void set_7_TreeViewNode_IsExpanded(object instance, object Value) - { - var that = (global::Microsoft.UI.Xaml.Controls.TreeViewNode)instance; - that.IsExpanded = (global::System.Boolean)Value; - } - private object get_8_TreeViewNode_Parent(object instance) - { - var that = (global::Microsoft.UI.Xaml.Controls.TreeViewNode)instance; - return that.Parent; - } - - private global::Microsoft.UI.Xaml.Markup.IXamlMember CreateXamlMember(string longMemberName) - { - global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlMember xamlMember = null; - global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType userType; - - switch (longMemberName) - { - case "Microsoft.UI.Xaml.Controls.XamlControlsResources.UseCompactResources": - userType = (global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("Microsoft.UI.Xaml.Controls.XamlControlsResources"); - xamlMember = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlMember(this, "UseCompactResources", "Boolean"); - xamlMember.SetIsDependencyProperty(); - xamlMember.Getter = get_0_XamlControlsResources_UseCompactResources; - xamlMember.Setter = set_0_XamlControlsResources_UseCompactResources; - break; - case "Microsoft.UI.Xaml.Media.MicaBackdrop.Kind": - userType = (global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("Microsoft.UI.Xaml.Media.MicaBackdrop"); - xamlMember = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlMember(this, "Kind", "Microsoft.UI.Composition.SystemBackdrops.MicaKind"); - xamlMember.SetIsDependencyProperty(); - xamlMember.Getter = get_1_MicaBackdrop_Kind; - xamlMember.Setter = set_1_MicaBackdrop_Kind; - break; - case "Microsoft.UI.Xaml.Controls.TreeViewNode.Children": - userType = (global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("Microsoft.UI.Xaml.Controls.TreeViewNode"); - xamlMember = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlMember(this, "Children", "System.Collections.Generic.IList`1"); - xamlMember.Getter = get_2_TreeViewNode_Children; - xamlMember.SetIsReadOnly(); - break; - case "Microsoft.UI.Xaml.Controls.TreeViewNode.Content": - userType = (global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("Microsoft.UI.Xaml.Controls.TreeViewNode"); - xamlMember = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlMember(this, "Content", "Object"); - xamlMember.SetIsDependencyProperty(); - xamlMember.Getter = get_3_TreeViewNode_Content; - xamlMember.Setter = set_3_TreeViewNode_Content; - break; - case "Microsoft.UI.Xaml.Controls.TreeViewNode.Depth": - userType = (global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("Microsoft.UI.Xaml.Controls.TreeViewNode"); - xamlMember = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlMember(this, "Depth", "Int32"); - xamlMember.SetIsDependencyProperty(); - xamlMember.Getter = get_4_TreeViewNode_Depth; - xamlMember.SetIsReadOnly(); - break; - case "Microsoft.UI.Xaml.Controls.TreeViewNode.HasChildren": - userType = (global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("Microsoft.UI.Xaml.Controls.TreeViewNode"); - xamlMember = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlMember(this, "HasChildren", "Boolean"); - xamlMember.SetIsDependencyProperty(); - xamlMember.Getter = get_5_TreeViewNode_HasChildren; - xamlMember.SetIsReadOnly(); - break; - case "Microsoft.UI.Xaml.Controls.TreeViewNode.HasUnrealizedChildren": - userType = (global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("Microsoft.UI.Xaml.Controls.TreeViewNode"); - xamlMember = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlMember(this, "HasUnrealizedChildren", "Boolean"); - xamlMember.Getter = get_6_TreeViewNode_HasUnrealizedChildren; - xamlMember.Setter = set_6_TreeViewNode_HasUnrealizedChildren; - break; - case "Microsoft.UI.Xaml.Controls.TreeViewNode.IsExpanded": - userType = (global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("Microsoft.UI.Xaml.Controls.TreeViewNode"); - xamlMember = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlMember(this, "IsExpanded", "Boolean"); - xamlMember.SetIsDependencyProperty(); - xamlMember.Getter = get_7_TreeViewNode_IsExpanded; - xamlMember.Setter = set_7_TreeViewNode_IsExpanded; - break; - case "Microsoft.UI.Xaml.Controls.TreeViewNode.Parent": - userType = (global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlUserType)GetXamlTypeByName("Microsoft.UI.Xaml.Controls.TreeViewNode"); - xamlMember = new global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlMember(this, "Parent", "Microsoft.UI.Xaml.Controls.TreeViewNode"); - xamlMember.Getter = get_8_TreeViewNode_Parent; - xamlMember.SetIsReadOnly(); - break; - } - return xamlMember; - } - } - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2311")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal class XamlSystemBaseType : global::Microsoft.UI.Xaml.Markup.IXamlType - { - string _fullName; - global::System.Type _underlyingType; - - public XamlSystemBaseType(string fullName, global::System.Type underlyingType) - { - _fullName = fullName; - _underlyingType = underlyingType; - } - - public string FullName { get { return _fullName; } } - - public global::System.Type UnderlyingType - { - get - { - return _underlyingType; - } - } - - virtual public global::Microsoft.UI.Xaml.Markup.IXamlType BaseType { get { throw new global::System.NotImplementedException(); } } - virtual public global::Microsoft.UI.Xaml.Markup.IXamlMember ContentProperty { get { throw new global::System.NotImplementedException(); } } - virtual public global::Microsoft.UI.Xaml.Markup.IXamlMember GetMember(string name) { throw new global::System.NotImplementedException(); } - virtual public bool IsArray { get { throw new global::System.NotImplementedException(); } } - virtual public bool IsCollection { get { throw new global::System.NotImplementedException(); } } - virtual public bool IsConstructible { get { throw new global::System.NotImplementedException(); } } - virtual public bool IsDictionary { get { throw new global::System.NotImplementedException(); } } - virtual public bool IsMarkupExtension { get { throw new global::System.NotImplementedException(); } } - virtual public bool IsBindable { get { throw new global::System.NotImplementedException(); } } - virtual public bool IsReturnTypeStub { get { throw new global::System.NotImplementedException(); } } - virtual public bool IsLocalType { get { throw new global::System.NotImplementedException(); } } - virtual public global::Microsoft.UI.Xaml.Markup.IXamlType ItemType { get { throw new global::System.NotImplementedException(); } } - virtual public global::Microsoft.UI.Xaml.Markup.IXamlType KeyType { get { throw new global::System.NotImplementedException(); } } - virtual public global::Microsoft.UI.Xaml.Markup.IXamlType BoxedType { get { throw new global::System.NotImplementedException(); } } - virtual public object ActivateInstance() { throw new global::System.NotImplementedException(); } - virtual public void AddToMap(object instance, object key, object item) { throw new global::System.NotImplementedException(); } - virtual public void AddToVector(object instance, object item) { throw new global::System.NotImplementedException(); } - virtual public void RunInitializer() { throw new global::System.NotImplementedException(); } - virtual public object CreateFromString(string input) { throw new global::System.NotImplementedException(); } - } - - internal delegate object Activator(); - internal delegate void AddToCollection(object instance, object item); - internal delegate void AddToDictionary(object instance, object key, object item); - internal delegate object CreateFromStringMethod(string args); - internal delegate object BoxInstanceMethod(object instance); - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2311")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal class XamlUserType : global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlSystemBaseType - , global::Microsoft.UI.Xaml.Markup.IXamlType - { - global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlTypeInfoProvider _provider; - global::Microsoft.UI.Xaml.Markup.IXamlType _baseType; - global::Microsoft.UI.Xaml.Markup.IXamlType _boxedType; - bool _isArray; - bool _isMarkupExtension; - bool _isBindable; - bool _isReturnTypeStub; - bool _isLocalType; - - string _contentPropertyName; - string _itemTypeName; - string _keyTypeName; - global::System.Collections.Generic.Dictionary _memberNames; - global::System.Collections.Generic.Dictionary _enumValues; - - public XamlUserType(global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlTypeInfoProvider provider, string fullName, global::System.Type fullType, global::Microsoft.UI.Xaml.Markup.IXamlType baseType) - :base(fullName, fullType) - { - _provider = provider; - _baseType = baseType; - } - - // --- Interface methods ---- - - override public global::Microsoft.UI.Xaml.Markup.IXamlType BaseType { get { return _baseType; } } - override public bool IsArray { get { return _isArray; } } - override public bool IsCollection { get { return (CollectionAdd != null); } } - override public bool IsConstructible { get { return (Activator != null); } } - override public bool IsDictionary { get { return (DictionaryAdd != null); } } - override public bool IsMarkupExtension { get { return _isMarkupExtension; } } - override public bool IsBindable { get { return _isBindable; } } - override public bool IsReturnTypeStub { get { return _isReturnTypeStub; } } - override public bool IsLocalType { get { return _isLocalType; } } - override public global::Microsoft.UI.Xaml.Markup.IXamlType BoxedType { get { return _boxedType; } } - - override public global::Microsoft.UI.Xaml.Markup.IXamlMember ContentProperty - { - get { return _provider.GetMemberByLongName(_contentPropertyName); } - } - - override public global::Microsoft.UI.Xaml.Markup.IXamlType ItemType - { - get { return _provider.GetXamlTypeByName(_itemTypeName); } - } - - override public global::Microsoft.UI.Xaml.Markup.IXamlType KeyType - { - get { return _provider.GetXamlTypeByName(_keyTypeName); } - } - - override public global::Microsoft.UI.Xaml.Markup.IXamlMember GetMember(string name) - { - if (_memberNames == null) - { - return null; - } - string longName; - if (_memberNames.TryGetValue(name, out longName)) - { - return _provider.GetMemberByLongName(longName); - } - return null; - } - - override public object ActivateInstance() - { - return Activator(); - } - - override public void AddToMap(object instance, object key, object item) - { - DictionaryAdd(instance, key, item); - } - - override public void AddToVector(object instance, object item) - { - CollectionAdd(instance, item); - } - - override public void RunInitializer() - { - global::System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(UnderlyingType.TypeHandle); - } - - override public object CreateFromString(string input) - { - if (BoxedType != null) - { - return BoxInstance(BoxedType.CreateFromString(input)); - } - - if (CreateFromStringMethod != null) - { - return this.CreateFromStringMethod(input); - } - else if (_enumValues != null) - { - long value = 0; - - string[] valueParts = input.Split(','); - - foreach (string valuePart in valueParts) - { - object partValue; - long enumFieldValue = 0; - try - { - if (_enumValues.TryGetValue(valuePart.Trim(), out partValue)) - { - enumFieldValue = global::System.Convert.ToInt64(partValue); - } - else - { - try - { - enumFieldValue = global::System.Convert.ToInt64(valuePart.Trim()); - } - catch( global::System.FormatException ) - { - foreach( string key in _enumValues.Keys ) - { - if( string.Compare(valuePart.Trim(), key, global::System.StringComparison.OrdinalIgnoreCase) == 0 ) - { - if( _enumValues.TryGetValue(key.Trim(), out partValue) ) - { - enumFieldValue = global::System.Convert.ToInt64(partValue); - break; - } - } - } - } - } - value |= enumFieldValue; - } - catch( global::System.FormatException ) - { - throw new global::System.ArgumentException(input, FullName); - } - } - - return System.Convert.ChangeType(value, System.Enum.GetUnderlyingType(this.UnderlyingType)); - } - throw new global::System.ArgumentException(input, FullName); - } - - // --- End of Interface methods - - public Activator Activator { get; set; } - public AddToCollection CollectionAdd { get; set; } - public AddToDictionary DictionaryAdd { get; set; } - public CreateFromStringMethod CreateFromStringMethod {get; set; } - public BoxInstanceMethod BoxInstance {get; set; } - - public void SetContentPropertyName(string contentPropertyName) - { - _contentPropertyName = contentPropertyName; - } - - public void SetIsArray() - { - _isArray = true; - } - - public void SetIsMarkupExtension() - { - _isMarkupExtension = true; - } - - public void SetIsBindable() - { - _isBindable = true; - } - - public void SetIsReturnTypeStub() - { - _isReturnTypeStub = true; - } - - public void SetIsLocalType() - { - _isLocalType = true; - } - - public void SetItemTypeName(string itemTypeName) - { - _itemTypeName = itemTypeName; - } - - public void SetKeyTypeName(string keyTypeName) - { - _keyTypeName = keyTypeName; - } - - public void SetBoxedType(global::Microsoft.UI.Xaml.Markup.IXamlType boxedType) - { - _boxedType = boxedType; - } - - public object BoxType(object instance) where T: struct - { - T unwrapped = (T)instance; - return new global::System.Nullable(unwrapped); - } - - public void AddMemberName(string shortName) - { - if(_memberNames == null) - { - _memberNames = new global::System.Collections.Generic.Dictionary(); - } - _memberNames.Add(shortName, FullName + "." + shortName); - } - - public void AddEnumValue(string name, object value) - { - if (_enumValues == null) - { - _enumValues = new global::System.Collections.Generic.Dictionary(); - } - _enumValues.Add(name, value); - } - } - - internal delegate object Getter(object instance); - internal delegate void Setter(object instance, object value); - - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2311")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - internal class XamlMember : global::Microsoft.UI.Xaml.Markup.IXamlMember - { - global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlTypeInfoProvider _provider; - string _name; - bool _isAttachable; - bool _isDependencyProperty; - bool _isReadOnly; - - string _typeName; - string _targetTypeName; - - public XamlMember(global::SAPRecorderApp.SAPRecorderApp_XamlTypeInfo.XamlTypeInfoProvider provider, string name, string typeName) - { - _name = name; - _typeName = typeName; - _provider = provider; - } - - public string Name { get { return _name; } } - - public global::Microsoft.UI.Xaml.Markup.IXamlType Type - { - get { return _provider.GetXamlTypeByName(_typeName); } - } - - public void SetTargetTypeName(string targetTypeName) - { - _targetTypeName = targetTypeName; - } - public global::Microsoft.UI.Xaml.Markup.IXamlType TargetType - { - get { return _provider.GetXamlTypeByName(_targetTypeName); } - } - - public void SetIsAttachable() { _isAttachable = true; } - public bool IsAttachable { get { return _isAttachable; } } - - public void SetIsDependencyProperty() { _isDependencyProperty = true; } - public bool IsDependencyProperty { get { return _isDependencyProperty; } } - - public void SetIsReadOnly() { _isReadOnly = true; } - public bool IsReadOnly { get { return _isReadOnly; } } - - public Getter Getter { get; set; } - public object GetValue(object instance) - { - if (Getter != null) - return Getter(instance); - else - throw new global::System.InvalidOperationException("GetValue"); - } - - public Setter Setter { get; set; } - public void SetValue(object instance, object value) - { - if (Setter != null) - Setter(instance, value); - else - throw new global::System.InvalidOperationException("SetValue"); - } - } -} - diff --git a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/apphost.exe b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/apphost.exe index 9db265e..d8268db 100644 Binary files a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/apphost.exe and b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/apphost.exe differ diff --git a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/embed/MainWindow.xbf b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/embed/MainWindow.xbf index 4ab48de..172fcde 100644 Binary files a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/embed/MainWindow.xbf and b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/embed/MainWindow.xbf differ diff --git a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/intermediatexaml/SAPRecorderApp.dll b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/intermediatexaml/SAPRecorderApp.dll index 6482947..801e839 100644 Binary files a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/intermediatexaml/SAPRecorderApp.dll and b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/intermediatexaml/SAPRecorderApp.dll differ diff --git a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/intermediatexaml/SAPRecorderApp.pdb b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/intermediatexaml/SAPRecorderApp.pdb index 0271d1e..6f6cfe5 100644 Binary files a/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/intermediatexaml/SAPRecorderApp.pdb and b/obj/x86/Debug/net8.0-windows10.0.19041.0/win10-x86/intermediatexaml/SAPRecorderApp.pdb differ