Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media3D / Generated / PointLightBase.cs / 1305600 / PointLightBase.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using MS.Internal; using MS.Internal.Collections; using MS.Internal.PresentationCore; using MS.Utility; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Windows.Markup; using System.Windows.Media.Media3D.Converters; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Security; using System.Security.Permissions; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop using BOOL = System.UInt32; using WORD = System.UInt16; using Float = System.Single; namespace System.Windows.Media.Media3D { abstract partial class PointLightBase : Light { //----------------------------------------------------- // // Public Methods // //----------------------------------------------------- #region Public Methods ////// Shadows inherited Clone() with a strongly typed /// version for convenience. /// public new PointLightBase Clone() { return (PointLightBase)base.Clone(); } ////// Shadows inherited CloneCurrentValue() with a strongly typed /// version for convenience. /// public new PointLightBase CloneCurrentValue() { return (PointLightBase)base.CloneCurrentValue(); } #endregion Public Methods //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- private static void PositionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PointLightBase target = ((PointLightBase) d); target.PropertyChanged(PositionProperty); } private static void RangePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PointLightBase target = ((PointLightBase) d); target.PropertyChanged(RangeProperty); } private static void ConstantAttenuationPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PointLightBase target = ((PointLightBase) d); target.PropertyChanged(ConstantAttenuationProperty); } private static void LinearAttenuationPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PointLightBase target = ((PointLightBase) d); target.PropertyChanged(LinearAttenuationProperty); } private static void QuadraticAttenuationPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PointLightBase target = ((PointLightBase) d); target.PropertyChanged(QuadraticAttenuationProperty); } #region Public Properties ////// Position - Point3D. Default value is new Point3D(). /// public Point3D Position { get { return (Point3D) GetValue(PositionProperty); } set { SetValueInternal(PositionProperty, value); } } ////// Range - double. Default value is Double.PositiveInfinity. /// public double Range { get { return (double) GetValue(RangeProperty); } set { SetValueInternal(RangeProperty, value); } } ////// ConstantAttenuation - double. Default value is 1.0. /// public double ConstantAttenuation { get { return (double) GetValue(ConstantAttenuationProperty); } set { SetValueInternal(ConstantAttenuationProperty, value); } } ////// LinearAttenuation - double. Default value is 0.0. /// public double LinearAttenuation { get { return (double) GetValue(LinearAttenuationProperty); } set { SetValueInternal(LinearAttenuationProperty, value); } } ////// QuadraticAttenuation - double. Default value is 0.0. /// public double QuadraticAttenuation { get { return (double) GetValue(QuadraticAttenuationProperty); } set { SetValueInternal(QuadraticAttenuationProperty, value); } } #endregion Public Properties //------------------------------------------------------ // // Protected Methods // //------------------------------------------------------ #region Protected Methods #endregion ProtectedMethods //----------------------------------------------------- // // Internal Methods // //------------------------------------------------------ #region Internal Methods #endregion Internal Methods //----------------------------------------------------- // // Internal Properties // //----------------------------------------------------- #region Internal Properties #endregion Internal Properties //----------------------------------------------------- // // Dependency Properties // //------------------------------------------------------ #region Dependency Properties ////// The DependencyProperty for the PointLightBase.Position property. /// public static readonly DependencyProperty PositionProperty; ////// The DependencyProperty for the PointLightBase.Range property. /// public static readonly DependencyProperty RangeProperty; ////// The DependencyProperty for the PointLightBase.ConstantAttenuation property. /// public static readonly DependencyProperty ConstantAttenuationProperty; ////// The DependencyProperty for the PointLightBase.LinearAttenuation property. /// public static readonly DependencyProperty LinearAttenuationProperty; ////// The DependencyProperty for the PointLightBase.QuadraticAttenuation property. /// public static readonly DependencyProperty QuadraticAttenuationProperty; #endregion Dependency Properties //----------------------------------------------------- // // Internal Fields // //------------------------------------------------------ #region Internal Fields internal static Point3D s_Position = new Point3D(); internal const double c_Range = Double.PositiveInfinity; internal const double c_ConstantAttenuation = 1.0; internal const double c_LinearAttenuation = 0.0; internal const double c_QuadraticAttenuation = 0.0; #endregion Internal Fields #region Constructors //------------------------------------------------------ // // Constructors // //----------------------------------------------------- static PointLightBase() { // We check our static default fields which are of type Freezable // to make sure that they are not mutable, otherwise we will throw // if these get touched by more than one thread in the lifetime // of your app. (Windows OS Bug #947272) // // Initializations Type typeofThis = typeof(PointLightBase); PositionProperty = RegisterProperty("Position", typeof(Point3D), typeofThis, new Point3D(), new PropertyChangedCallback(PositionPropertyChanged), null, /* isIndependentlyAnimated = */ true, /* coerceValueCallback */ null); RangeProperty = RegisterProperty("Range", typeof(double), typeofThis, Double.PositiveInfinity, new PropertyChangedCallback(RangePropertyChanged), null, /* isIndependentlyAnimated = */ true, /* coerceValueCallback */ null); ConstantAttenuationProperty = RegisterProperty("ConstantAttenuation", typeof(double), typeofThis, 1.0, new PropertyChangedCallback(ConstantAttenuationPropertyChanged), null, /* isIndependentlyAnimated = */ true, /* coerceValueCallback */ null); LinearAttenuationProperty = RegisterProperty("LinearAttenuation", typeof(double), typeofThis, 0.0, new PropertyChangedCallback(LinearAttenuationPropertyChanged), null, /* isIndependentlyAnimated = */ true, /* coerceValueCallback */ null); QuadraticAttenuationProperty = RegisterProperty("QuadraticAttenuation", typeof(double), typeofThis, 0.0, new PropertyChangedCallback(QuadraticAttenuationPropertyChanged), null, /* isIndependentlyAnimated = */ true, /* coerceValueCallback */ null); } #endregion Constructors } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using MS.Internal; using MS.Internal.Collections; using MS.Internal.PresentationCore; using MS.Utility; using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Windows.Markup; using System.Windows.Media.Media3D.Converters; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Security; using System.Security.Permissions; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; using System.Windows.Media.Imaging; // These types are aliased to match the unamanaged names used in interop using BOOL = System.UInt32; using WORD = System.UInt16; using Float = System.Single; namespace System.Windows.Media.Media3D { abstract partial class PointLightBase : Light { //----------------------------------------------------- // // Public Methods // //----------------------------------------------------- #region Public Methods ////// Shadows inherited Clone() with a strongly typed /// version for convenience. /// public new PointLightBase Clone() { return (PointLightBase)base.Clone(); } ////// Shadows inherited CloneCurrentValue() with a strongly typed /// version for convenience. /// public new PointLightBase CloneCurrentValue() { return (PointLightBase)base.CloneCurrentValue(); } #endregion Public Methods //------------------------------------------------------ // // Public Properties // //----------------------------------------------------- private static void PositionPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PointLightBase target = ((PointLightBase) d); target.PropertyChanged(PositionProperty); } private static void RangePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PointLightBase target = ((PointLightBase) d); target.PropertyChanged(RangeProperty); } private static void ConstantAttenuationPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PointLightBase target = ((PointLightBase) d); target.PropertyChanged(ConstantAttenuationProperty); } private static void LinearAttenuationPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PointLightBase target = ((PointLightBase) d); target.PropertyChanged(LinearAttenuationProperty); } private static void QuadraticAttenuationPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { PointLightBase target = ((PointLightBase) d); target.PropertyChanged(QuadraticAttenuationProperty); } #region Public Properties ////// Position - Point3D. Default value is new Point3D(). /// public Point3D Position { get { return (Point3D) GetValue(PositionProperty); } set { SetValueInternal(PositionProperty, value); } } ////// Range - double. Default value is Double.PositiveInfinity. /// public double Range { get { return (double) GetValue(RangeProperty); } set { SetValueInternal(RangeProperty, value); } } ////// ConstantAttenuation - double. Default value is 1.0. /// public double ConstantAttenuation { get { return (double) GetValue(ConstantAttenuationProperty); } set { SetValueInternal(ConstantAttenuationProperty, value); } } ////// LinearAttenuation - double. Default value is 0.0. /// public double LinearAttenuation { get { return (double) GetValue(LinearAttenuationProperty); } set { SetValueInternal(LinearAttenuationProperty, value); } } ////// QuadraticAttenuation - double. Default value is 0.0. /// public double QuadraticAttenuation { get { return (double) GetValue(QuadraticAttenuationProperty); } set { SetValueInternal(QuadraticAttenuationProperty, value); } } #endregion Public Properties //------------------------------------------------------ // // Protected Methods // //------------------------------------------------------ #region Protected Methods #endregion ProtectedMethods //----------------------------------------------------- // // Internal Methods // //------------------------------------------------------ #region Internal Methods #endregion Internal Methods //----------------------------------------------------- // // Internal Properties // //----------------------------------------------------- #region Internal Properties #endregion Internal Properties //----------------------------------------------------- // // Dependency Properties // //------------------------------------------------------ #region Dependency Properties ////// The DependencyProperty for the PointLightBase.Position property. /// public static readonly DependencyProperty PositionProperty; ////// The DependencyProperty for the PointLightBase.Range property. /// public static readonly DependencyProperty RangeProperty; ////// The DependencyProperty for the PointLightBase.ConstantAttenuation property. /// public static readonly DependencyProperty ConstantAttenuationProperty; ////// The DependencyProperty for the PointLightBase.LinearAttenuation property. /// public static readonly DependencyProperty LinearAttenuationProperty; ////// The DependencyProperty for the PointLightBase.QuadraticAttenuation property. /// public static readonly DependencyProperty QuadraticAttenuationProperty; #endregion Dependency Properties //----------------------------------------------------- // // Internal Fields // //------------------------------------------------------ #region Internal Fields internal static Point3D s_Position = new Point3D(); internal const double c_Range = Double.PositiveInfinity; internal const double c_ConstantAttenuation = 1.0; internal const double c_LinearAttenuation = 0.0; internal const double c_QuadraticAttenuation = 0.0; #endregion Internal Fields #region Constructors //------------------------------------------------------ // // Constructors // //----------------------------------------------------- static PointLightBase() { // We check our static default fields which are of type Freezable // to make sure that they are not mutable, otherwise we will throw // if these get touched by more than one thread in the lifetime // of your app. (Windows OS Bug #947272) // // Initializations Type typeofThis = typeof(PointLightBase); PositionProperty = RegisterProperty("Position", typeof(Point3D), typeofThis, new Point3D(), new PropertyChangedCallback(PositionPropertyChanged), null, /* isIndependentlyAnimated = */ true, /* coerceValueCallback */ null); RangeProperty = RegisterProperty("Range", typeof(double), typeofThis, Double.PositiveInfinity, new PropertyChangedCallback(RangePropertyChanged), null, /* isIndependentlyAnimated = */ true, /* coerceValueCallback */ null); ConstantAttenuationProperty = RegisterProperty("ConstantAttenuation", typeof(double), typeofThis, 1.0, new PropertyChangedCallback(ConstantAttenuationPropertyChanged), null, /* isIndependentlyAnimated = */ true, /* coerceValueCallback */ null); LinearAttenuationProperty = RegisterProperty("LinearAttenuation", typeof(double), typeofThis, 0.0, new PropertyChangedCallback(LinearAttenuationPropertyChanged), null, /* isIndependentlyAnimated = */ true, /* coerceValueCallback */ null); QuadraticAttenuationProperty = RegisterProperty("QuadraticAttenuation", typeof(double), typeofThis, 0.0, new PropertyChangedCallback(QuadraticAttenuationPropertyChanged), null, /* isIndependentlyAnimated = */ true, /* coerceValueCallback */ null); } #endregion Constructors } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebConfigurationHostFileChange.cs
- AsyncOperationManager.cs
- ProfilePropertyNameValidator.cs
- NonClientArea.cs
- DelimitedListTraceListener.cs
- CollectionViewProxy.cs
- MaskedTextBox.cs
- ExternalFile.cs
- XmlILModule.cs
- PageCodeDomTreeGenerator.cs
- ProfileManager.cs
- DataDocumentXPathNavigator.cs
- FormsAuthentication.cs
- DrawingServices.cs
- RoutedEventValueSerializer.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- MethodCallConverter.cs
- ExternalDataExchangeClient.cs
- PageStatePersister.cs
- LogExtent.cs
- EventLogReader.cs
- PropertyItem.cs
- Image.cs
- StreamGeometryContext.cs
- TraceContextEventArgs.cs
- Visual3D.cs
- KeyValueSerializer.cs
- CodeDesigner.cs
- GridViewPageEventArgs.cs
- EncoderNLS.cs
- Point3DIndependentAnimationStorage.cs
- AdRotator.cs
- SQLStringStorage.cs
- ColorTranslator.cs
- RelationalExpressions.cs
- TableLayoutPanelDesigner.cs
- DataGridViewRowCollection.cs
- RewritingProcessor.cs
- FilteredXmlReader.cs
- ExcCanonicalXml.cs
- StateMachineHistory.cs
- SoapProtocolImporter.cs
- NumberAction.cs
- MLangCodePageEncoding.cs
- oledbmetadatacolumnnames.cs
- ExtendedProtectionPolicy.cs
- SqlBuilder.cs
- PolicyStatement.cs
- InstanceCreationEditor.cs
- Table.cs
- LineBreak.cs
- SmtpException.cs
- AnnotationComponentChooser.cs
- ToolstripProfessionalRenderer.cs
- __ConsoleStream.cs
- FixedNode.cs
- Vars.cs
- EntityObject.cs
- SystemIcmpV6Statistics.cs
- ClassDataContract.cs
- TrackingMemoryStreamFactory.cs
- Argument.cs
- ResourceProviderFactory.cs
- RequestUriProcessor.cs
- SvcMapFileLoader.cs
- BidOverLoads.cs
- SchemaCreator.cs
- GlobalItem.cs
- SoapBinding.cs
- FtpCachePolicyElement.cs
- Debug.cs
- SHA256Managed.cs
- X509CertificateTokenFactoryCredential.cs
- FixedSOMSemanticBox.cs
- SoundPlayerAction.cs
- IPAddress.cs
- DataSysAttribute.cs
- MappingException.cs
- QueryPageSettingsEventArgs.cs
- MSG.cs
- UpdateRecord.cs
- CheckBox.cs
- TransformerConfigurationWizardBase.cs
- RelationshipWrapper.cs
- ListBoxChrome.cs
- ServerIdentity.cs
- SelectionItemPattern.cs
- ZipIOCentralDirectoryBlock.cs
- HostExecutionContextManager.cs
- ScriptHandlerFactory.cs
- CrossAppDomainChannel.cs
- BlockUIContainer.cs
- TypedReference.cs
- LinkArea.cs
- WorkflowMarkupSerializerMapping.cs
- UserControlCodeDomTreeGenerator.cs
- SchemaDeclBase.cs
- CodeDefaultValueExpression.cs
- InputChannel.cs
- DashStyle.cs