Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StringValidatorAttribute.cs
- ConnectionManagementElement.cs
- XhtmlBasicLabelAdapter.cs
- SiteMapNodeItem.cs
- OutputScope.cs
- _PooledStream.cs
- OleDbParameter.cs
- SecurityState.cs
- MultiTrigger.cs
- EntityClientCacheKey.cs
- assertwrapper.cs
- HighlightComponent.cs
- XmlDataSourceNodeDescriptor.cs
- SoapSchemaMember.cs
- EntityParameterCollection.cs
- MemoryMappedFileSecurity.cs
- ControlPaint.cs
- documentsequencetextcontainer.cs
- SignedInfo.cs
- VectorCollectionValueSerializer.cs
- regiisutil.cs
- PtsCache.cs
- MultipartIdentifier.cs
- OleDbConnectionFactory.cs
- _DynamicWinsockMethods.cs
- TypeInitializationException.cs
- X509CertificateChain.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- WorkflowRuntimeService.cs
- ObjRef.cs
- DataGridSortCommandEventArgs.cs
- PrefixQName.cs
- FragmentNavigationEventArgs.cs
- Floater.cs
- IconHelper.cs
- SoapSchemaMember.cs
- DesigntimeLicenseContext.cs
- DockPanel.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SendSecurityHeaderElement.cs
- dataprotectionpermission.cs
- TrackingServices.cs
- NodeFunctions.cs
- EntityDataSourceWizardForm.cs
- OracleParameter.cs
- PrintSystemException.cs
- WebPartZoneCollection.cs
- SrgsNameValueTag.cs
- LocationReferenceEnvironment.cs
- VariantWrapper.cs
- TcpStreams.cs
- ArrayConverter.cs
- EmptyStringExpandableObjectConverter.cs
- Expression.cs
- RequestCachingSection.cs
- HandleValueEditor.cs
- EntityAdapter.cs
- DefaultPrintController.cs
- NumericUpDownAccelerationCollection.cs
- GregorianCalendarHelper.cs
- VersionedStream.cs
- X509Certificate2Collection.cs
- SimpleWorkerRequest.cs
- ToolStripSeparator.cs
- AttachedAnnotation.cs
- CompressStream.cs
- HealthMonitoringSection.cs
- XmlSchema.cs
- DateTimeConverter2.cs
- PresentationAppDomainManager.cs
- WindowsToolbarAsMenu.cs
- ChannelServices.cs
- GPStream.cs
- Rights.cs
- CallbackWrapper.cs
- MailMessage.cs
- QilChoice.cs
- PageFunction.cs
- FormsAuthenticationEventArgs.cs
- MembershipUser.cs
- RegionData.cs
- OpenTypeLayoutCache.cs
- DictionaryEntry.cs
- PointCollectionValueSerializer.cs
- Utils.cs
- TypeUsage.cs
- DiagnosticsConfigurationHandler.cs
- SafeNativeMethods.cs
- FontCollection.cs
- DomainConstraint.cs
- DataServiceHost.cs
- SamlAuthenticationClaimResource.cs
- PointConverter.cs
- VarRemapper.cs
- Operator.cs
- XmlArrayItemAttributes.cs
- MenuCommandsChangedEventArgs.cs
- Hyperlink.cs
- MatchingStyle.cs
- XmlSchemaSet.cs