📄 window1.g.cs
字号:
#pragma checksum "..\..\Window1.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "181EFA7B80BBB1394ED185F902F1C8C3"
//------------------------------------------------------------------------------
// <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 _3DSample {
/// <summary>
/// Window1
/// </summary>
public partial class Window1 : System.Windows.Window, System.Windows.Markup.IComponentConnector {
#line 50 "..\..\Window1.xaml"
internal System.Windows.Controls.CheckBox checkDirectionalLight;
#line default
#line hidden
#line 52 "..\..\Window1.xaml"
internal System.Windows.Controls.Slider lightX;
#line default
#line hidden
#line 54 "..\..\Window1.xaml"
internal System.Windows.Controls.Slider lightY;
#line default
#line hidden
#line 56 "..\..\Window1.xaml"
internal System.Windows.Controls.Slider lightZ;
#line default
#line hidden
#line 85 "..\..\Window1.xaml"
internal System.Windows.Controls.CheckBox checkSpotLight;
#line default
#line hidden
#line 87 "..\..\Window1.xaml"
internal System.Windows.Controls.TextBox spotPosition;
#line default
#line hidden
#line 89 "..\..\Window1.xaml"
internal System.Windows.Controls.TextBox spotDirection;
#line default
#line hidden
#line 92 "..\..\Window1.xaml"
internal System.Windows.Controls.Slider spotInnerCone;
#line default
#line hidden
#line 94 "..\..\Window1.xaml"
internal System.Windows.Controls.Slider spotOuterCone;
#line default
#line hidden
#line 96 "..\..\Window1.xaml"
internal System.Windows.Controls.Slider spotRange;
#line default
#line hidden
#line 104 "..\..\Window1.xaml"
internal System.Windows.Controls.Slider axisX;
#line default
#line hidden
#line 106 "..\..\Window1.xaml"
internal System.Windows.Controls.Slider axisY;
#line default
#line hidden
#line 108 "..\..\Window1.xaml"
internal System.Windows.Controls.Slider axisZ;
#line default
#line hidden
#line 110 "..\..\Window1.xaml"
internal System.Windows.Controls.Slider axisAngle;
#line default
#line hidden
#line 116 "..\..\Window1.xaml"
internal System.Windows.Controls.TextBox textCameraPosition;
#line default
#line hidden
#line 118 "..\..\Window1.xaml"
internal System.Windows.Controls.TextBox textCameraDirection;
#line default
#line hidden
#line 129 "..\..\Window1.xaml"
internal System.Windows.Media.Media3D.SpotLight spotLight;
#line default
#line hidden
#line 143 "..\..\Window1.xaml"
internal System.Windows.Media.Media3D.DirectionalLight directionalLight;
#line default
#line hidden
#line 245 "..\..\Window1.xaml"
internal System.Windows.Media.Media3D.AxisAngleRotation3D axisRotation;
#line default
#line hidden
#line 256 "..\..\Window1.xaml"
internal System.Windows.Media.Media3D.PerspectiveCamera camera;
#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("/3DSample;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:
this.checkDirectionalLight = ((System.Windows.Controls.CheckBox)(target));
#line 50 "..\..\Window1.xaml"
this.checkDirectionalLight.Checked += new System.Windows.RoutedEventHandler(this.checkDirectionalLight_Checked);
#line default
#line hidden
#line 50 "..\..\Window1.xaml"
this.checkDirectionalLight.Unchecked += new System.Windows.RoutedEventHandler(this.checkDirectionalLight_Unchecked);
#line default
#line hidden
return;
case 2:
this.lightX = ((System.Windows.Controls.Slider)(target));
#line 52 "..\..\Window1.xaml"
this.lightX.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.directionalLight_ValueChanged);
#line default
#line hidden
return;
case 3:
this.lightY = ((System.Windows.Controls.Slider)(target));
#line 54 "..\..\Window1.xaml"
this.lightY.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.directionalLight_ValueChanged);
#line default
#line hidden
return;
case 4:
this.lightZ = ((System.Windows.Controls.Slider)(target));
#line 56 "..\..\Window1.xaml"
this.lightZ.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.directionalLight_ValueChanged);
#line default
#line hidden
return;
case 5:
this.checkSpotLight = ((System.Windows.Controls.CheckBox)(target));
#line 85 "..\..\Window1.xaml"
this.checkSpotLight.Checked += new System.Windows.RoutedEventHandler(this.checkSpotLight_Checked);
#line default
#line hidden
#line 85 "..\..\Window1.xaml"
this.checkSpotLight.Unchecked += new System.Windows.RoutedEventHandler(this.checkSpotLight_Unchecked);
#line default
#line hidden
return;
case 6:
this.spotPosition = ((System.Windows.Controls.TextBox)(target));
return;
case 7:
this.spotDirection = ((System.Windows.Controls.TextBox)(target));
return;
case 8:
this.spotInnerCone = ((System.Windows.Controls.Slider)(target));
return;
case 9:
this.spotOuterCone = ((System.Windows.Controls.Slider)(target));
return;
case 10:
this.spotRange = ((System.Windows.Controls.Slider)(target));
return;
case 11:
this.axisX = ((System.Windows.Controls.Slider)(target));
#line 104 "..\..\Window1.xaml"
this.axisX.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.axis_ValueChanged);
#line default
#line hidden
return;
case 12:
this.axisY = ((System.Windows.Controls.Slider)(target));
#line 106 "..\..\Window1.xaml"
this.axisY.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.axis_ValueChanged);
#line default
#line hidden
return;
case 13:
this.axisZ = ((System.Windows.Controls.Slider)(target));
#line 108 "..\..\Window1.xaml"
this.axisZ.ValueChanged += new System.Windows.RoutedPropertyChangedEventHandler<double>(this.axis_ValueChanged);
#line default
#line hidden
return;
case 14:
this.axisAngle = ((System.Windows.Controls.Slider)(target));
return;
case 15:
this.textCameraPosition = ((System.Windows.Controls.TextBox)(target));
return;
case 16:
this.textCameraDirection = ((System.Windows.Controls.TextBox)(target));
return;
case 17:
this.spotLight = ((System.Windows.Media.Media3D.SpotLight)(target));
return;
case 18:
this.directionalLight = ((System.Windows.Media.Media3D.DirectionalLight)(target));
return;
case 19:
this.axisRotation = ((System.Windows.Media.Media3D.AxisAngleRotation3D)(target));
return;
case 20:
this.camera = ((System.Windows.Media.Media3D.PerspectiveCamera)(target));
return;
}
this._contentLoaded = true;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -