Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / TransformGroup.cs / 1305600 / TransformGroup.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2001 // // File: TransformGroup.cs //----------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Media; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; using System.Collections; using System.Collections.Generic; using MS.Internal; using System.Windows.Media.Animation; using System.Globalization; using System.Text; using System.Runtime.InteropServices; using System.Windows.Markup; using System.Windows.Media.Composition; using System.Diagnostics; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { #region TransformGroup ////// The class definition for TransformGroup /// [ContentProperty("Children")] public sealed partial class TransformGroup : Transform { #region Constructors ////// Default Constructor /// public TransformGroup() { } #endregion #region Value ////// Return the current transformation value. /// public override Matrix Value { get { ReadPreamble(); TransformCollection children = Children; if ((children == null) || (children.Count == 0)) { return new Matrix(); } Matrix transform = children.Internal_GetItem(0).Value; for (int i = 1; i < children.Count; i++) { transform *= children.Internal_GetItem(i).Value; } return transform; } } #endregion #region IsIdentity ////// Returns true if transformation matches the identity transform. /// internal override bool IsIdentity { get { TransformCollection children = Children; if ((children == null) || (children.Count == 0)) { return true; } for (int i = 0; i < children.Count; i++) { if (!children.Internal_GetItem(i).IsIdentity) { return false; } } return true; } } #endregion #region Internal Methods internal override bool CanSerializeToString() { return false; } #endregion Internal Methods } #endregion } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2001 // // File: TransformGroup.cs //----------------------------------------------------------------------------- using System; using System.Windows; using System.Windows.Media; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Reflection; using System.Collections; using System.Collections.Generic; using MS.Internal; using System.Windows.Media.Animation; using System.Globalization; using System.Text; using System.Runtime.InteropServices; using System.Windows.Markup; using System.Windows.Media.Composition; using System.Diagnostics; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { #region TransformGroup ////// The class definition for TransformGroup /// [ContentProperty("Children")] public sealed partial class TransformGroup : Transform { #region Constructors ////// Default Constructor /// public TransformGroup() { } #endregion #region Value ////// Return the current transformation value. /// public override Matrix Value { get { ReadPreamble(); TransformCollection children = Children; if ((children == null) || (children.Count == 0)) { return new Matrix(); } Matrix transform = children.Internal_GetItem(0).Value; for (int i = 1; i < children.Count; i++) { transform *= children.Internal_GetItem(i).Value; } return transform; } } #endregion #region IsIdentity ////// Returns true if transformation matches the identity transform. /// internal override bool IsIdentity { get { TransformCollection children = Children; if ((children == null) || (children.Count == 0)) { return true; } for (int i = 0; i < children.Count; i++) { if (!children.Internal_GetItem(i).IsIdentity) { return false; } } return true; } } #endregion #region Internal Methods internal override bool CanSerializeToString() { return false; } #endregion Internal Methods } #endregion } // 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
- WebPartZoneBase.cs
- SemanticValue.cs
- FilterException.cs
- Timer.cs
- CompositionTarget.cs
- Serializer.cs
- IApplicationTrustManager.cs
- ConstrainedDataObject.cs
- lengthconverter.cs
- XmlSerializerVersionAttribute.cs
- DoubleKeyFrameCollection.cs
- NullPackagingPolicy.cs
- WmiPutTraceRecord.cs
- OrderedParallelQuery.cs
- SectionInformation.cs
- ButtonBase.cs
- DropShadowBitmapEffect.cs
- ParameterModifier.cs
- Configuration.cs
- FilterQuery.cs
- UIElement3D.cs
- TextDecorationCollection.cs
- BaseAsyncResult.cs
- HttpApplication.cs
- AppSettingsSection.cs
- GridViewPageEventArgs.cs
- CustomTokenProvider.cs
- NullReferenceException.cs
- TraceContext.cs
- Stack.cs
- AstTree.cs
- wgx_render.cs
- CompilerHelpers.cs
- ViewKeyConstraint.cs
- RijndaelManagedTransform.cs
- NativeMethods.cs
- ThumbButtonInfoCollection.cs
- Deflater.cs
- Logging.cs
- TemplateField.cs
- SpecialNameAttribute.cs
- JsonXmlDataContract.cs
- UserCancellationException.cs
- RuntimeWrappedException.cs
- VisualStyleRenderer.cs
- UnsafeNativeMethods.cs
- DesignerAutoFormatCollection.cs
- ToolboxBitmapAttribute.cs
- SByteConverter.cs
- XslVisitor.cs
- DynamicILGenerator.cs
- LinkArea.cs
- MetabaseReader.cs
- InputElement.cs
- SqlDataSourceQuery.cs
- PasswordTextContainer.cs
- Stroke.cs
- HintTextConverter.cs
- oledbmetadatacollectionnames.cs
- X509ServiceCertificateAuthenticationElement.cs
- BitmapFrameEncode.cs
- EntityExpressionVisitor.cs
- HandleCollector.cs
- HandleCollector.cs
- SaveFileDialog.cs
- ConfigurationSectionCollection.cs
- DataConnectionHelper.cs
- HttpCachePolicyBase.cs
- MaterializeFromAtom.cs
- TypeSystemProvider.cs
- RepeatBehaviorConverter.cs
- ObjectViewQueryResultData.cs
- UrlPath.cs
- EntityException.cs
- ReaderWriterLock.cs
- BuilderInfo.cs
- RectangleF.cs
- Verify.cs
- UTF8Encoding.cs
- MachineKeySection.cs
- StoreContentChangedEventArgs.cs
- FeatureSupport.cs
- ComponentSerializationService.cs
- XmlILAnnotation.cs
- SqlPersonalizationProvider.cs
- PropertyItemInternal.cs
- AdRotator.cs
- SQLInt16Storage.cs
- DefaultObjectMappingItemCollection.cs
- VectorValueSerializer.cs
- MULTI_QI.cs
- SetIterators.cs
- XmlC14NWriter.cs
- Literal.cs
- LogicalExpr.cs
- FontStyles.cs
- RegisteredExpandoAttribute.cs
- SoapExtensionReflector.cs
- CaseExpr.cs
- DbXmlEnabledProviderManifest.cs