window1.g.cs
来自「C#高级编程第6版随书源代码 值得下载」· CS 代码 · 共 231 行
CS
231 行
#pragma checksum "..\..\Window1.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "A1E16F56C6FB19BE9CAE695C8A9DEF50"
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.1426
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
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;
namespace Wrox.ProCSharp.WPF {
/// <summary>
/// WPFEditorWindow
/// </summary>
public partial class WPFEditorWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 17 "..\..\Window1.xaml"
internal System.Windows.Controls.MenuItem fileNewMenu;
#line default
#line hidden
#line 20 "..\..\Window1.xaml"
internal System.Windows.Controls.MenuItem fileOpenMenu;
#line default
#line hidden
#line 24 "..\..\Window1.xaml"
internal System.Windows.Controls.MenuItem fileSave;
#line default
#line hidden
#line 27 "..\..\Window1.xaml"
internal System.Windows.Controls.MenuItem fileSaveAs;
#line default
#line hidden
#line 31 "..\..\Window1.xaml"
internal System.Windows.Controls.MenuItem editUndoMenu;
#line default
#line hidden
#line 33 "..\..\Window1.xaml"
internal System.Windows.Controls.MenuItem editRedoMenu;
#line default
#line hidden
#line 36 "..\..\Window1.xaml"
internal System.Windows.Controls.MenuItem editCutMenu;
#line default
#line hidden
#line 38 "..\..\Window1.xaml"
internal System.Windows.Controls.MenuItem editCopyMenu;
#line default
#line hidden
#line 40 "..\..\Window1.xaml"
internal System.Windows.Controls.MenuItem editPasteMenu;
#line default
#line hidden
#line 43 "..\..\Window1.xaml"
internal System.Windows.Controls.MenuItem editSelectAll;
#line default
#line hidden
#line 62 "..\..\Window1.xaml"
internal System.Windows.Controls.TextBox textContent;
#line default
#line hidden
private bool _contentLoaded;
/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/WPFEditor;component/window1.xaml", System.UriKind.Relative);
#line 1 "..\..\Window1.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);
#line default
#line hidden
}
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
#line 6 "..\..\Window1.xaml"
((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.NewFileExecuted);
#line default
#line hidden
return;
case 2:
#line 7 "..\..\Window1.xaml"
((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.OpenFileExecuted);
#line default
#line hidden
return;
case 3:
#line 8 "..\..\Window1.xaml"
((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SaveFileExecuted);
#line default
#line hidden
#line 9 "..\..\Window1.xaml"
((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.SaveFileCanExecute);
#line default
#line hidden
return;
case 4:
#line 11 "..\..\Window1.xaml"
((System.Windows.Input.CommandBinding)(target)).Executed += new System.Windows.Input.ExecutedRoutedEventHandler(this.SaveAsFileExecuted);
#line default
#line hidden
#line 11 "..\..\Window1.xaml"
((System.Windows.Input.CommandBinding)(target)).CanExecute += new System.Windows.Input.CanExecuteRoutedEventHandler(this.SaveFileCanExecute);
#line default
#line hidden
return;
case 5:
this.fileNewMenu = ((System.Windows.Controls.MenuItem)(target));
return;
case 6:
this.fileOpenMenu = ((System.Windows.Controls.MenuItem)(target));
return;
case 7:
this.fileSave = ((System.Windows.Controls.MenuItem)(target));
return;
case 8:
this.fileSaveAs = ((System.Windows.Controls.MenuItem)(target));
return;
case 9:
this.editUndoMenu = ((System.Windows.Controls.MenuItem)(target));
return;
case 10:
this.editRedoMenu = ((System.Windows.Controls.MenuItem)(target));
return;
case 11:
this.editCutMenu = ((System.Windows.Controls.MenuItem)(target));
return;
case 12:
this.editCopyMenu = ((System.Windows.Controls.MenuItem)(target));
return;
case 13:
this.editPasteMenu = ((System.Windows.Controls.MenuItem)(target));
return;
case 14:
this.editSelectAll = ((System.Windows.Controls.MenuItem)(target));
return;
case 15:
this.textContent = ((System.Windows.Controls.TextBox)(target));
#line 62 "..\..\Window1.xaml"
this.textContent.TextChanged += new System.Windows.Controls.TextChangedEventHandler(this.TextChanged);
#line default
#line hidden
return;
}
this._contentLoaded = true;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?