Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / TransformGroup.cs / 1 / 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
- CellParagraph.cs
- UIEndRequest.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- RefExpr.cs
- MemberDomainMap.cs
- ExplicitDiscriminatorMap.cs
- ObjectItemCachedAssemblyLoader.cs
- SqlDependencyUtils.cs
- SpotLight.cs
- IDispatchConstantAttribute.cs
- ConfigurationSettings.cs
- TemplateAction.cs
- OperationDescription.cs
- ExtendedPropertyCollection.cs
- SectionVisual.cs
- BeginCreateSecurityTokenRequest.cs
- DPAPIProtectedConfigurationProvider.cs
- ExpressionsCollectionConverter.cs
- Splitter.cs
- SHA1CryptoServiceProvider.cs
- _NegotiateClient.cs
- CodeMethodMap.cs
- X509CertificateChain.cs
- XamlGridLengthSerializer.cs
- IndentedWriter.cs
- HostedHttpTransportManager.cs
- ConstraintManager.cs
- StylusDevice.cs
- DecoratedNameAttribute.cs
- DataServiceClientException.cs
- Substitution.cs
- GPPOINTF.cs
- ActivityDesigner.cs
- CmsInterop.cs
- OperationPerformanceCounters.cs
- StringAnimationBase.cs
- SizeConverter.cs
- VisualTreeUtils.cs
- DataControlFieldCell.cs
- CodeChecksumPragma.cs
- TypedMessageConverter.cs
- HttpProfileGroupBase.cs
- NativeCppClassAttribute.cs
- XmlMembersMapping.cs
- ControlParameter.cs
- DataGridViewTextBoxCell.cs
- TrueReadOnlyCollection.cs
- AssemblyCollection.cs
- SymDocumentType.cs
- SizeLimitedCache.cs
- xmlsaver.cs
- BamlWriter.cs
- MouseEvent.cs
- XmlIlTypeHelper.cs
- Utilities.cs
- SqlHelper.cs
- CheckableControlBaseAdapter.cs
- StringUtil.cs
- HeaderedContentControl.cs
- WindowsSolidBrush.cs
- SrgsSubset.cs
- BinaryUtilClasses.cs
- TextRangeSerialization.cs
- HashRepartitionEnumerator.cs
- ReadWriteObjectLock.cs
- CheckedListBox.cs
- ArgumentValidation.cs
- HandlerBase.cs
- ExpressionPrinter.cs
- VerificationAttribute.cs
- LineSegment.cs
- CodeIdentifiers.cs
- ZipPackagePart.cs
- XsdBuilder.cs
- HandlerMappingMemo.cs
- StringFunctions.cs
- AppDomainUnloadedException.cs
- embossbitmapeffect.cs
- SEHException.cs
- SafeMILHandle.cs
- X509Extension.cs
- CachedFontFace.cs
- SmiContext.cs
- DBPropSet.cs
- ClientSettingsProvider.cs
- DataTableMapping.cs
- _ProxyRegBlob.cs
- OleCmdHelper.cs
- InheritanceContextHelper.cs
- XmlSchemaParticle.cs
- PropertyBuilder.cs
- EventLogPermissionEntry.cs
- BaseProcessor.cs
- ActionItem.cs
- BeginEvent.cs
- PersonalizablePropertyEntry.cs
- DbgUtil.cs
- MetafileHeader.cs
- SocketPermission.cs
- Itemizer.cs