98 lines
3.7 KiB
C#
98 lines
3.7 KiB
C#
|
|
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "69BCCFAD6A1F84FCC9DF73D3B82763158668A03B"
|
|||
|
|
//------------------------------------------------------------------------------
|
|||
|
|
// <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>
|
|||
|
|
//------------------------------------------------------------------------------
|
|||
|
|
|
|||
|
|
using Microsoft.Web.WebView2.Wpf;
|
|||
|
|
using System;
|
|||
|
|
using System.Diagnostics;
|
|||
|
|
using System.Windows;
|
|||
|
|
using System.Windows.Automation;
|
|||
|
|
using System.Windows.Controls;
|
|||
|
|
using System.Windows.Controls.Primitives;
|
|||
|
|
using System.Windows.Controls.Ribbon;
|
|||
|
|
using System.Windows.Data;
|
|||
|
|
using System.Windows.Documents;
|
|||
|
|
using System.Windows.Ink;
|
|||
|
|
using System.Windows.Input;
|
|||
|
|
using System.Windows.Markup;
|
|||
|
|
using System.Windows.Media;
|
|||
|
|
using System.Windows.Media.Animation;
|
|||
|
|
using System.Windows.Media.Effects;
|
|||
|
|
using System.Windows.Media.Imaging;
|
|||
|
|
using System.Windows.Media.Media3D;
|
|||
|
|
using System.Windows.Media.TextFormatting;
|
|||
|
|
using System.Windows.Navigation;
|
|||
|
|
using System.Windows.Shapes;
|
|||
|
|
using System.Windows.Shell;
|
|||
|
|
|
|||
|
|
|
|||
|
|
namespace WebView2Demo {
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// MainWindow
|
|||
|
|
/// </summary>
|
|||
|
|
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
|
|||
|
|
|
|||
|
|
|
|||
|
|
#line 12 "..\..\..\MainWindow.xaml"
|
|||
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
|
|||
|
|
internal Microsoft.Web.WebView2.Wpf.WebView2 WebView;
|
|||
|
|
|
|||
|
|
#line default
|
|||
|
|
#line hidden
|
|||
|
|
|
|||
|
|
private bool _contentLoaded;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// InitializeComponent
|
|||
|
|
/// </summary>
|
|||
|
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|||
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.28.0")]
|
|||
|
|
public void InitializeComponent() {
|
|||
|
|
if (_contentLoaded) {
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
_contentLoaded = true;
|
|||
|
|
System.Uri resourceLocater = new System.Uri("/WebView2Demo;component/mainwindow.xaml", System.UriKind.Relative);
|
|||
|
|
|
|||
|
|
#line 1 "..\..\..\MainWindow.xaml"
|
|||
|
|
System.Windows.Application.LoadComponent(this, resourceLocater);
|
|||
|
|
|
|||
|
|
#line default
|
|||
|
|
#line hidden
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|||
|
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.28.0")]
|
|||
|
|
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
|
|||
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
|
|||
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
|
|||
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
|
|||
|
|
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
|
|||
|
|
switch (connectionId)
|
|||
|
|
{
|
|||
|
|
case 1:
|
|||
|
|
this.WebView = ((Microsoft.Web.WebView2.Wpf.WebView2)(target));
|
|||
|
|
return;
|
|||
|
|
case 2:
|
|||
|
|
|
|||
|
|
#line 17 "..\..\..\MainWindow.xaml"
|
|||
|
|
((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.RefreshPage);
|
|||
|
|
|
|||
|
|
#line default
|
|||
|
|
#line hidden
|
|||
|
|
return;
|
|||
|
|
}
|
|||
|
|
this._contentLoaded = true;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|