Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- Rotation3D.cs
- DataGridViewLinkCell.cs
- StandardMenuStripVerb.cs
- PropertyDescriptorGridEntry.cs
- DragDrop.cs
- ZoneIdentityPermission.cs
- WebPartTransformerAttribute.cs
- _SSPISessionCache.cs
- InvokeWebServiceDesigner.cs
- FixedHighlight.cs
- AuthenticationService.cs
- QueryCacheKey.cs
- SafeViewOfFileHandle.cs
- Animatable.cs
- TextParagraphCache.cs
- RSAPKCS1KeyExchangeFormatter.cs
- CatalogPartChrome.cs
- NameNode.cs
- OperationCanceledException.cs
- BuildProviderUtils.cs
- ObfuscateAssemblyAttribute.cs
- SecurityTokenSerializer.cs
- ViewStateException.cs
- ButtonStandardAdapter.cs
- Rectangle.cs
- SqlStatistics.cs
- ConsoleKeyInfo.cs
- XmlSchemaSimpleContentExtension.cs
- AppDomainManager.cs
- SoapEnumAttribute.cs
- XPathChildIterator.cs
- AnnotationObservableCollection.cs
- ColorContextHelper.cs
- COM2TypeInfoProcessor.cs
- FormsAuthenticationCredentials.cs
- SchemaDeclBase.cs
- SystemBrushes.cs
- DetailsViewUpdatedEventArgs.cs
- DbConnectionClosed.cs
- XmlDataLoader.cs
- FormsAuthenticationUser.cs
- XmlSchemaSimpleType.cs
- SafeNativeMethods.cs
- PageContentCollection.cs
- PersonalizablePropertyEntry.cs
- DocumentReferenceCollection.cs
- TypeListConverter.cs
- ObfuscationAttribute.cs
- ConditionCollection.cs
- DefaultCommandExtensionCallback.cs
- RealizationDrawingContextWalker.cs
- FamilyMapCollection.cs
- MembershipUser.cs
- SafeThreadHandle.cs
- StructuralType.cs
- PathStreamGeometryContext.cs
- ToolStripDesignerAvailabilityAttribute.cs
- Font.cs
- GeneralTransformCollection.cs
- XXXInfos.cs
- FrameworkContentElement.cs
- WSHttpBindingElement.cs
- Semaphore.cs
- FilterQuery.cs
- FragmentQueryProcessor.cs
- FillErrorEventArgs.cs
- VarRefManager.cs
- UnsafeNativeMethods.cs
- TrustLevelCollection.cs
- XmlJsonWriter.cs
- BaseTemplateCodeDomTreeGenerator.cs
- UpdateCompiler.cs
- WebPartManager.cs
- ComNativeDescriptor.cs
- OdbcTransaction.cs
- TargetConverter.cs
- ResourcesBuildProvider.cs
- Parsers.cs
- ClickablePoint.cs
- DefaultPropertyAttribute.cs
- DataGrid.cs
- BindingCollection.cs
- UIPermission.cs
- CompositeFontParser.cs
- Int32AnimationUsingKeyFrames.cs
- ConfigXmlReader.cs
- CommandBinding.cs
- StatusBar.cs
- SoapMessage.cs
- ScrollProperties.cs
- UIElementAutomationPeer.cs
- XmlNodeComparer.cs
- Visitor.cs
- ShapingWorkspace.cs
- NotifyCollectionChangedEventArgs.cs
- WebPartDescription.cs
- RequestUriProcessor.cs
- BitmapEffectGeneralTransform.cs
- XmlMtomWriter.cs
- Documentation.cs