This commit is contained in:
jianxin committed 2024-01-04 21:10:27 +08:00
commit 589ed7a249
62 files changed
+3157

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<Application
x:Class="SAPRecorderApp.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:SAPRecorderApp">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
<!-- Other merged dictionaries here -->
</ResourceDictionary.MergedDictionaries>
<!-- Other app resources here -->
</ResourceDictionary>
</Application.Resources>
</Application>
+55
View File
@@ -0,0 +1,55 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
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 Microsoft.UI.Xaml.Shapes;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
// To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info.
namespace SAPRecorderApp
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
public partial class App : Application
{
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
this.InitializeComponent();
}
/// <summary>
/// Invoked when the application is launched.
/// </summary>
/// <param name="args">Details about the launch request and process.</param>
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
{
m_window = new MainWindow();
m_window.Activate();
}
private Window m_window;
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 637 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

+75
View File
@@ -0,0 +1,75 @@
<?xml version="1.0" encoding="utf-8"?>
<Window
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"
>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid x:Name="AppTitleBar"
Height="48">
<Grid.ColumnDefinitions>
<ColumnDefinition x:Name="LeftPaddingColumn" Width="0"/>
<ColumnDefinition x:Name="IconColumn" Width="Auto"/>
<ColumnDefinition x:Name="TitleColumn" Width="Auto"/>
<ColumnDefinition x:Name="LeftDragColumn" Width="*"/>
<ColumnDefinition x:Name="SearchColumn" Width="4*" MinWidth="220"/>
<ColumnDefinition x:Name="RightDragColumn" Width="*" MinWidth="48"/>
<ColumnDefinition x:Name="AccountColumn" Width="Auto"/>
<ColumnDefinition x:Name="RightPaddingColumn" Width="0"/>
</Grid.ColumnDefinitions>
<Image x:Name="TitleBarIcon"
Source="ms-appx:///Assets/StoreLogo.png"
Grid.Column="1"
Width="16" Height="16"
Margin="8,0,4,0"/>
<TextBlock x:Name="TitleBarTextBlock"
Text="App title"
Style="{StaticResource CaptionTextBlockStyle}"
Grid.Column="2"
VerticalAlignment="Center">
</TextBlock>
<AutoSuggestBox x:Name="TitleBarSearchBox"
Grid.Column="4"
QueryIcon="Find"
PlaceholderText="Search"
VerticalAlignment="Center"
MaxWidth="600"/>
<PersonPicture x:Name="PersonPic"
Grid.Column="6"
Height="32" Margin="0,0,16,0"/>
</Grid>
<NavigationView Grid.Row="1"
IsBackButtonVisible="Collapsed"
IsSettingsVisible="False">
<StackPanel>
<TextBlock Text="Content"
Style="{ThemeResource TitleTextBlockStyle}"
Margin="32,0,0,0"/>
<StackPanel Grid.Row="1" VerticalAlignment="Center">
<Button Margin="4" x:Name="CompactoverlaytBtn"
Content="Enter CompactOverlay"
Click="SwitchPresenter"/>
<Button Margin="4" x:Name="FullscreenBtn"
Content="Enter FullScreen"
Click="SwitchPresenter"/>
<Button Margin="4" x:Name="OverlappedBtn"
Content="Revert to default (Overlapped)"
Click="SwitchPresenter"/>
</StackPanel>
</StackPanel>
</NavigationView>
</Grid>
</Window>
+107
View File
@@ -0,0 +1,107 @@
using Microsoft.UI;
using Microsoft.UI.Windowing;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
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,
// and more about our project templates, see: http://aka.ms/winui-project-info.
namespace SAPRecorderApp
{
/// <summary>
/// An empty window that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class MainWindow : Window
{
public MainWindow()
{
this.InitializeComponent();
Activated += MainWindow_Activated;
this.AppWindow.MoveAndResize(new Windows.Graphics.RectInt32(1600, 100, 500, 1000));
var m_AppWindow = GetAppWindowForCurrentWindow();
var titleBar = m_AppWindow.TitleBar;
// Hide system title bar.
titleBar.ExtendsContentIntoTitleBar = true;
}
private void myButton_Click(object sender, RoutedEventArgs e)
{
if (myButton.Content == "Recording")
{
myButton.Content = "Record";
}
else
{
myButton.Content = "Recording";
}
}
//private async Task SizeWindow(AppWindow appWindow)
//{
// var displayList = await DeviceInformation.FindAllAsync(DisplayMonitor.GetDeviceSelector());
// 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);
// AppWindow.Move(new PointInt32(Convert.ToInt32(monitorInfo.NativeResolutionInRawPixels.Height / 5),10));
// //appWindow.ResizeClient(winSize);
//}
private void MainWindow_Activated(object sender, WindowActivatedEventArgs args)
{
//if (args.WindowActivationState == WindowActivationState.Deactivated)
//{
// TitleBarTextBlock.Foreground =
// (SolidColorBrush)App.Current.Resources["WindowCaptionForegroundDisabled"];
//}
//else
//{
// TitleBarTextBlock.Foreground =
// (SolidColorBrush)App.Current.Resources["WindowCaptionForeground"];
//}
}
private AppWindow GetAppWindowForCurrentWindow()
{
IntPtr hWnd = WindowNative.GetWindowHandle(this);
WindowId wndId = Win32Interop.GetWindowIdFromWindow(hWnd);
return AppWindow.GetFromWindowId(wndId);
}
}
}
+51
View File
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap rescap">
<Identity
Name="3778de77-2b40-4018-b7d0-2019be8fc012"
Publisher="CN=32075"
Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="3778de77-2b40-4018-b7d0-2019be8fc012" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<Properties>
<DisplayName>SAPRecorderApp</DisplayName>
<PublisherDisplayName>32075</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
</Dependencies>
<Resources>
<Resource Language="x-generate"/>
</Resources>
<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="$targetentrypoint$">
<uap:VisualElements
DisplayName="SAPRecorderApp"
Description="SAPRecorderApp"
BackgroundColor="transparent"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" />
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
</Application>
</Applications>
<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>
</Package>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Platform>ARM64</Platform>
<RuntimeIdentifier>win10-arm64</RuntimeIdentifier>
<PublishDir>bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\</PublishDir>
<SelfContained>true</SelfContained>
<PublishSingleFile>False</PublishSingleFile>
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
<!--
See https://github.com/microsoft/CsWinRT/issues/373
<PublishTrimmed>True</PublishTrimmed>
-->
</PropertyGroup>
</Project>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Platform>x64</Platform>
<RuntimeIdentifier>win10-x64</RuntimeIdentifier>
<PublishDir>bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\</PublishDir>
<SelfContained>true</SelfContained>
<PublishSingleFile>False</PublishSingleFile>
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
<!--
See https://github.com/microsoft/CsWinRT/issues/373
<PublishTrimmed>True</PublishTrimmed>
-->
</PropertyGroup>
</Project>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Platform>x86</Platform>
<RuntimeIdentifier>win10-x86</RuntimeIdentifier>
<PublishDir>bin\$(Configuration)\$(TargetFramework)\$(RuntimeIdentifier)\publish\</PublishDir>
<SelfContained>true</SelfContained>
<PublishSingleFile>False</PublishSingleFile>
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
<!--
See https://github.com/microsoft/CsWinRT/issues/373
<PublishTrimmed>True</PublishTrimmed>
-->
</PropertyGroup>
</Project>
+10
View File
@@ -0,0 +1,10 @@
{
"profiles": {
"SAPRecorderApp (Package)": {
"commandName": "MsixPackage"
},
"SAPRecorderApp (Unpackaged)": {
"commandName": "Project"
}
}
}
+48
View File
@@ -0,0 +1,48 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
<RootNamespace>SAPRecorderApp</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x86;x64;ARM64</Platforms>
<RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
<PublishProfile>win10-$(Platform).pubxml</PublishProfile>
<UseWinUI>true</UseWinUI>
<EnableMsixTooling>true</EnableMsixTooling>
</PropertyGroup>
<ItemGroup>
<Content Include="Assets\SplashScreen.scale-200.png" />
<Content Include="Assets\LockScreenLogo.scale-200.png" />
<Content Include="Assets\Square150x150Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.scale-200.png" />
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Assets\StoreLogo.png" />
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.4.231115000" />
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.755" />
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>
<!--
Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging
Tools extension to be activated for this project even if the Windows App SDK Nuget
package has not yet been restored.
-->
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
<ProjectCapability Include="Msix" />
</ItemGroup>
<!--
Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution
Explorer "Package and Publish" context menu entry to be enabled for this project even if
the Windows App SDK Nuget package has not yet been restored.
-->
<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
</PropertyGroup>
</Project>
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
<ItemGroup>
<None Update="App.xaml">
<SubType>Designer</SubType>
</None>
<None Update="MainWindow.xaml">
<SubType>Designer</SubType>
</None>
<None Update="Package.appxmanifest">
<SubType>Designer</SubType>
</None>
</ItemGroup>
</Project>
+43
View File
@@ -0,0 +1,43 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34024.191
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SAPRecorderApp", "SAPRecorderApp.csproj", "{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM64 = Debug|ARM64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM64 = Release|ARM64
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Debug|ARM64.ActiveCfg = Debug|ARM64
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Debug|ARM64.Build.0 = Debug|ARM64
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Debug|ARM64.Deploy.0 = Debug|ARM64
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Debug|x64.ActiveCfg = Debug|x64
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Debug|x64.Build.0 = Debug|x64
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Debug|x64.Deploy.0 = Debug|x64
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Debug|x86.ActiveCfg = Debug|x86
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Debug|x86.Build.0 = Debug|x86
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Debug|x86.Deploy.0 = Debug|x86
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Release|ARM64.ActiveCfg = Release|ARM64
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Release|ARM64.Build.0 = Release|ARM64
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Release|ARM64.Deploy.0 = Release|ARM64
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Release|x64.ActiveCfg = Release|x64
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Release|x64.Build.0 = Release|x64
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Release|x64.Deploy.0 = Release|x64
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Release|x86.ActiveCfg = Release|x86
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Release|x86.Build.0 = Release|x86
{60CA2335-DF0C-47A4-9098-BFC19EA26FBB}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {707BC069-FF7B-4629-B001-69EA0B0215A5}
EndGlobalSection
EndGlobal
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="SAPRecorderApp.app"/>
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!--The ID below informs the system that this application is compatible with OS features first introduced in Windows 8.
For more info see https://docs.microsoft.com/windows/win32/sysinfo/targeting-your-application-at-windows-8-1
It is also necessary to support features in unpackaged applications, for example the custom titlebar implementation.-->
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />
</application>
</compatibility>
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings>
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
</windowsSettings>
</application>
</assembly>
+137
View File
@@ -0,0 +1,137 @@
{
"format": 1,
"restore": {
"C:\\Users\\32075\\OneDrive\\文档\\Code\\csex\\SAPRecorderApp\\SAPRecorderApp.csproj": {}
},
"projects": {
"C:\\Users\\32075\\OneDrive\\文档\\Code\\csex\\SAPRecorderApp\\SAPRecorderApp.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\32075\\OneDrive\\文档\\Code\\csex\\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\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\32075\\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"
],
"originalTargetFrameworks": [
"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": {}
},
"frameworks": {
"net8.0-windows10.0.19041": {
"targetAlias": "net8.0-windows10.0.19041.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "default"
}
},
"frameworks": {
"net8.0-windows10.0.19041": {
"targetAlias": "net8.0-windows10.0.19041.0",
"dependencies": {
"Microsoft.Windows.SDK.BuildTools": {
"target": "Package",
"version": "[10.0.22621.755, )"
},
"Microsoft.WindowsAppSDK": {
"target": "Package",
"version": "[1.4.231115000, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Runtime.win-arm64",
"version": "[8.0.0-preview.7.23375.9, 8.0.0-preview.7.23375.9]"
},
{
"name": "Microsoft.AspNetCore.App.Runtime.win-x64",
"version": "[8.0.0-preview.7.23375.9, 8.0.0-preview.7.23375.9]"
},
{
"name": "Microsoft.AspNetCore.App.Runtime.win-x86",
"version": "[8.0.0-preview.7.23375.9, 8.0.0-preview.7.23375.9]"
},
{
"name": "Microsoft.NETCore.App.Runtime.win-arm64",
"version": "[8.0.0-preview.7.23375.6, 8.0.0-preview.7.23375.6]"
},
{
"name": "Microsoft.NETCore.App.Runtime.win-x64",
"version": "[8.0.0-preview.7.23375.6, 8.0.0-preview.7.23375.6]"
},
{
"name": "Microsoft.NETCore.App.Runtime.win-x86",
"version": "[8.0.0-preview.7.23375.6, 8.0.0-preview.7.23375.6]"
},
{
"name": "Microsoft.Windows.SDK.NET.Ref",
"version": "[10.0.19041.29, 10.0.19041.29]"
},
{
"name": "Microsoft.WindowsDesktop.App.Runtime.win-arm64",
"version": "[8.0.0-preview.7.23376.1, 8.0.0-preview.7.23376.1]"
},
{
"name": "Microsoft.WindowsDesktop.App.Runtime.win-x64",
"version": "[8.0.0-preview.7.23376.1, 8.0.0-preview.7.23376.1]"
},
{
"name": "Microsoft.WindowsDesktop.App.Runtime.win-x86",
"version": "[8.0.0-preview.7.23376.1, 8.0.0-preview.7.23376.1]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
},
"Microsoft.Windows.SDK.NET.Ref": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100-preview.7.23376.3\\RuntimeIdentifierGraph.json"
}
},
"runtimes": {
"win10-arm64": {
"#import": []
},
"win10-x64": {
"#import": []
},
"win10-x86": {
"#import": []
}
}
}
}
}
+23
View File
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\32075\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.7.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\32075\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.windows.sdk.buildtools\10.0.22621.755\build\Microsoft.Windows.SDK.BuildTools.props" Condition="Exists('$(NuGetPackageRoot)microsoft.windows.sdk.buildtools\10.0.22621.755\build\Microsoft.Windows.SDK.BuildTools.props')" />
<Import Project="$(NuGetPackageRoot)microsoft.windowsappsdk\1.4.231115000\buildTransitive\Microsoft.WindowsAppSDK.props" Condition="Exists('$(NuGetPackageRoot)microsoft.windowsappsdk\1.4.231115000\buildTransitive\Microsoft.WindowsAppSDK.props')" />
</ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgMicrosoft_WindowsAppSDK Condition=" '$(PkgMicrosoft_WindowsAppSDK)' == '' ">C:\Users\32075\.nuget\packages\microsoft.windowsappsdk\1.4.231115000</PkgMicrosoft_WindowsAppSDK>
</PropertyGroup>
</Project>
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.windows.sdk.buildtools\10.0.22621.755\build\Microsoft.Windows.SDK.BuildTools.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.windows.sdk.buildtools\10.0.22621.755\build\Microsoft.Windows.SDK.BuildTools.targets')" />
<Import Project="$(NuGetPackageRoot)microsoft.windowsappsdk\1.4.231115000\buildTransitive\Microsoft.WindowsAppSDK.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.windowsappsdk\1.4.231115000\buildTransitive\Microsoft.WindowsAppSDK.targets')" />
</ImportGroup>
</Project>
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
Whitespace-only changes.
@@ -0,0 +1,17 @@
#pragma checksum "C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\App.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "98DCE876EA2EBE3A726188EF04999052B6FC3BB81D66C1066B8B2D18720DBF66"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace SAPRecorderApp
{
partial class App : global::Microsoft.UI.Xaml.Application
{
}
}
Whitespace-only changes.
@@ -0,0 +1,51 @@
#pragma checksum "C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\MainWindow.xaml" "{8829d00f-11b8-4213-878b-770e8597ac16}" "189B70B06EF0EEA689F1266D17271F1B299134CF063CE0E665416C1F6861223D"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace SAPRecorderApp
{
partial class MainWindow :
global::Microsoft.UI.Xaml.Window,
global::Microsoft.UI.Xaml.Markup.IComponentConnector
{
/// <summary>
/// Connect()
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2306")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void Connect(int connectionId, object target)
{
switch(connectionId)
{
case 2: // MainWindow.xaml line 19
{
this.myButton = global::WinRT.CastExtensions.As<global::Microsoft.UI.Xaml.Controls.Button>(target);
((global::Microsoft.UI.Xaml.Controls.Button)this.myButton).Click += this.myButton_Click;
}
break;
default:
break;
}
this._contentLoaded = true;
}
/// <summary>
/// GetBindingConnector(int connectionId, object target)
/// </summary>
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.UI.Xaml.Markup.Compiler"," 3.0.0.2306")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public global::Microsoft.UI.Xaml.Markup.IComponentConnector GetBindingConnector(int connectionId, object target)
{
global::Microsoft.UI.Xaml.Markup.IComponentConnector returnValue = null;
return returnValue;
}
}
}
@@ -0,0 +1,9 @@
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\SAPRecorderApp.csproj.AssemblyReference.cache
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\App.g.i.cs
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\App.g.cs
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\MainWindow.g.i.cs
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\MainWindow.g.cs
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\App.xaml
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\MainWindow.xaml
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\App.xbf
C:\Users\32075\OneDrive\文档\Code\csex\SAPRecorderApp\obj\x86\Debug\net6.0-windows10.0.19041.0\win10-x86\MainWindow.xbf
@@ -0,0 +1,100 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v6.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"Microsoft.Windows.SDK.BuildTools/10.0.22621.755": {},
"Microsoft.WindowsAppSDK/1.3.230602002": {
"dependencies": {
"Microsoft.Windows.SDK.BuildTools": "10.0.22621.755"
},
"runtime": {
"lib/net6.0-windows10.0.18362.0/Microsoft.InteractiveExperiences.Projection.dll": {
"assemblyVersion": "10.0.0.0",
"fileVersion": "10.0.22623.1046"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.WinUI.dll": {
"assemblyVersion": "3.0.0.0",
"fileVersion": "3.0.0.2306"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.AppLifecycle.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.AppNotifications.Builder.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.AppNotifications.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.ApplicationModel.DynamicDependency.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.ApplicationModel.Resources.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.ApplicationModel.WindowsAppRuntime.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.PushNotifications.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.Security.AccessControl.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.System.Power.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.System.Projection.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.Windows.Widgets.Projection.dll": {
"assemblyVersion": "1.0.0.0",
"fileVersion": "1.0.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.WindowsAppRuntime.Bootstrap.Net.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
},
"lib/net6.0-windows10.0.18362.0/Microsoft.WindowsAppRuntime.Release.Net.dll": {
"assemblyVersion": "1.3.0.0",
"fileVersion": "1.3.0.0"
}
},
"native": {
"runtimes/win10-x86/native/Microsoft.WindowsAppRuntime.Bootstrap.dll": {
"fileVersion": "1.3.0.0"
}
}
}
}
},
"libraries": {
"Microsoft.Windows.SDK.BuildTools/10.0.22621.755": {
"type": "package",
"serviceable": true,
"sha512": "sha512-zGXDCZc2/slVjpNtopNETCjnOqH9KiEdo9dPCcjtNWwK5W+EmOcEn7X5Ftj3tOE9kLvroga1s7WwLh2a5jQEEg==",
"path": "microsoft.windows.sdk.buildtools/10.0.22621.755",
"hashPath": "microsoft.windows.sdk.buildtools.10.0.22621.755.nupkg.sha512"
},
"Microsoft.WindowsAppSDK/1.3.230602002": {
"type": "package",
"serviceable": true,
"sha512": "sha512-O0l35DvaYfFDyGPPABppmc8Y9RByN0ch/XHTJulqolNeDoR4JN9itd/k8CQTnuql+nte22564laohoelZxV3XA==",
"path": "microsoft.windowsappsdk/1.3.230602002",
"hashPath": "microsoft.windowsappsdk.1.3.230602002.nupkg.sha512"
}
}
}
@@ -0,0 +1,18 @@
{
"runtimeOptions": {
"tfm": "net6.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "6.0.20"
},
"additionalProbingPaths": [
"C:\\Users\\32075\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\32075\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configProperties": {
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false,
"Microsoft.NETCore.DotNetHostPolicy.SetAppPaths": true
}
}
}
@@ -0,0 +1,2 @@
App.xbf
MainWindow.xbf
@@ -0,0 +1,2 @@
App.xbf
MainWindow.xbf
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
Whitespace-only changes.
Whitespace-only changes.
@@ -0,0 +1,956 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
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;
}
}
/// <summary>
/// GetXamlType(Type)
/// </summary>
[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);
}
/// <summary>
/// GetXamlType(String)
/// </summary>
[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);
}
/// <summary>
/// GetXmlnsDefinitions()
/// </summary>
[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
{
/// <summary>
/// Main class for providing metadata for the app or library
/// </summary>
[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;
}
}
/// <summary>
/// GetXamlType(Type)
/// </summary>
[global::Windows.Foundation.Metadata.DefaultOverload]
public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlType(global::System.Type type)
{
return Provider.GetXamlTypeByType(type);
}
/// <summary>
/// GetXamlType(String)
/// </summary>
public global::Microsoft.UI.Xaml.Markup.IXamlType GetXamlType(string fullName)
{
return Provider.GetXamlTypeByName(fullName);
}
/// <summary>
/// GetXmlnsDefinitions()
/// </summary>
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<string, global::Microsoft.UI.Xaml.Markup.IXamlType>
_xamlTypeCacheByName = new global::System.Collections.Generic.Dictionary<string, global::Microsoft.UI.Xaml.Markup.IXamlType>();
global::System.Collections.Generic.Dictionary<global::System.Type, global::Microsoft.UI.Xaml.Markup.IXamlType>
_xamlTypeCacheByType = new global::System.Collections.Generic.Dictionary<global::System.Type, global::Microsoft.UI.Xaml.Markup.IXamlType>();
global::System.Collections.Generic.Dictionary<string, global::Microsoft.UI.Xaml.Markup.IXamlMember>
_xamlMembers = new global::System.Collections.Generic.Dictionary<string, global::Microsoft.UI.Xaml.Markup.IXamlMember>();
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<Microsoft.UI.Xaml.Controls.TreeViewNode>";
_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<global::Microsoft.UI.Xaml.Controls.TreeViewNode>);
_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<global::System.Object, global::System.Object>)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<global::Microsoft.UI.Xaml.Controls.TreeViewNode>)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<Microsoft.UI.Xaml.Controls.TreeViewNode>
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<global::Microsoft.UI.Xaml.Markup.IXamlMetadataProvider> _otherProviders;
private global::System.Collections.Generic.List<global::Microsoft.UI.Xaml.Markup.IXamlMetadataProvider> OtherProviders
{
get
{
if(_otherProviders == null)
{
var otherProviders = new global::System.Collections.Generic.List<global::Microsoft.UI.Xaml.Markup.IXamlMetadataProvider>();
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<Microsoft.UI.Xaml.Controls.TreeViewNode>");
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<string, string> _memberNames;
global::System.Collections.Generic.Dictionary<string, object> _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<T>(object instance) where T: struct
{
T unwrapped = (T)instance;
return new global::System.Nullable<T>(unwrapped);
}
public void AddMemberName(string shortName)
{
if(_memberNames == null)
{
_memberNames = new global::System.Collections.Generic.Dictionary<string,string>();
}
_memberNames.Add(shortName, FullName + "." + shortName);
}
public void AddEnumValue(string name, object value)
{
if (_enumValues == null)
{
_enumValues = new global::System.Collections.Generic.Dictionary<string, object>();
}
_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");
}
}
}
@@ -0,0 +1,2 @@
App.xbf
MainWindow.xbf
@@ -0,0 +1,2 @@
App.xbf
MainWindow.xbf