Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- CaseInsensitiveComparer.cs
- BaseValidatorDesigner.cs
- BuilderPropertyEntry.cs
- DrawingContextWalker.cs
- XPathArrayIterator.cs
- SqlSelectStatement.cs
- ScriptBehaviorDescriptor.cs
- SafeWaitHandle.cs
- FilteredReadOnlyMetadataCollection.cs
- Int32Rect.cs
- KoreanLunisolarCalendar.cs
- Point3DAnimationUsingKeyFrames.cs
- TextUtf8RawTextWriter.cs
- XmlDocumentFragment.cs
- NamedPermissionSet.cs
- WebHeaderCollection.cs
- XmlCharacterData.cs
- DateTimeConverter.cs
- PropertyValueChangedEvent.cs
- ProgressiveCrcCalculatingStream.cs
- uribuilder.cs
- HttpConfigurationSystem.cs
- EventItfInfo.cs
- NamedObject.cs
- ButtonChrome.cs
- ElementHost.cs
- BindingOperations.cs
- EntitySetBaseCollection.cs
- Transform.cs
- MsmqIntegrationSecurityMode.cs
- UdpChannelFactory.cs
- SmiSettersStream.cs
- TextElementAutomationPeer.cs
- AppendHelper.cs
- HtmlInputButton.cs
- FormatterServices.cs
- EntitySetDataBindingList.cs
- TextTreeObjectNode.cs
- EventLogTraceListener.cs
- DetailsViewInsertEventArgs.cs
- CollectionType.cs
- ListItemDetailViewAttribute.cs
- MobileCategoryAttribute.cs
- DataBindingCollection.cs
- EasingQuaternionKeyFrame.cs
- LogLogRecordEnumerator.cs
- Merger.cs
- EmbeddedMailObject.cs
- ViewGenerator.cs
- UnionCodeGroup.cs
- BrowserCapabilitiesFactory.cs
- RefExpr.cs
- HashStream.cs
- DocobjHost.cs
- Connector.cs
- SessionEndingEventArgs.cs
- ILGen.cs
- ByteStorage.cs
- XmlWhitespace.cs
- PrinterUnitConvert.cs
- TrackingServices.cs
- MethodBuilderInstantiation.cs
- DrawingState.cs
- PreviewPageInfo.cs
- DefaultTraceListener.cs
- SiteMapHierarchicalDataSourceView.cs
- TableLayoutCellPaintEventArgs.cs
- ContextStaticAttribute.cs
- BuildResultCache.cs
- Model3D.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- DbConnectionInternal.cs
- AmbientEnvironment.cs
- ScriptingJsonSerializationSection.cs
- KeyInfo.cs
- Comparer.cs
- Propagator.Evaluator.cs
- Types.cs
- ChildrenQuery.cs
- ControlTemplate.cs
- BitmapEffectInputData.cs
- HandlerFactoryWrapper.cs
- CompositeClientFormatter.cs
- X509Utils.cs
- LightweightCodeGenerator.cs
- MergeFailedEvent.cs
- ContainerParaClient.cs
- PtsContext.cs
- BuildManager.cs
- ButtonFlatAdapter.cs
- XmlAttributeProperties.cs
- TextWriterTraceListener.cs
- AttachedProperty.cs
- GetPageCompletedEventArgs.cs
- BuildProviderAppliesToAttribute.cs
- UniqueConstraint.cs
- WindowInteropHelper.cs
- XPathAncestorQuery.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- BamlLocalizationDictionary.cs