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
- Constants.cs
- StylusPointDescription.cs
- SiteMapNode.cs
- PeerApplicationLaunchInfo.cs
- MulticastDelegate.cs
- FilterEventArgs.cs
- ExceptionUtility.cs
- Visual3D.cs
- Row.cs
- FontNameEditor.cs
- LineUtil.cs
- XmlWrappingReader.cs
- Viewport3DVisual.cs
- RuleAttributes.cs
- ValueQuery.cs
- errorpatternmatcher.cs
- HtmlElementEventArgs.cs
- XmlCompatibilityReader.cs
- CompositeCollection.cs
- SerializeAbsoluteContext.cs
- XmlDictionary.cs
- SqlDataSourceEnumerator.cs
- Substitution.cs
- Crc32.cs
- XMLSyntaxException.cs
- FloatUtil.cs
- ConfigurationErrorsException.cs
- ObjectDataSourceFilteringEventArgs.cs
- PropertyPathWorker.cs
- UnsignedPublishLicense.cs
- UdpDiscoveryEndpoint.cs
- DifferencingCollection.cs
- StateInitialization.cs
- MemoryMappedFileSecurity.cs
- ZoneMembershipCondition.cs
- ButtonPopupAdapter.cs
- Baml2006ReaderSettings.cs
- SwitchAttribute.cs
- ScriptResourceAttribute.cs
- DesignerExtenders.cs
- DesignerDataParameter.cs
- Style.cs
- DataFormat.cs
- PasswordPropertyTextAttribute.cs
- DesignerAttribute.cs
- MultipleFilterMatchesException.cs
- OleServicesContext.cs
- COM2AboutBoxPropertyDescriptor.cs
- WebBrowserDocumentCompletedEventHandler.cs
- DescendantBaseQuery.cs
- PackWebRequestFactory.cs
- ECDiffieHellman.cs
- AtlasWeb.Designer.cs
- HtmlImage.cs
- ErrorHandler.cs
- StorageEndPropertyMapping.cs
- BinaryKeyIdentifierClause.cs
- DrawingContext.cs
- EntitySetRetriever.cs
- EventDescriptor.cs
- CultureInfo.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- BinaryObjectWriter.cs
- TableItemStyle.cs
- TriggerActionCollection.cs
- SystemResources.cs
- RuleElement.cs
- ItemContainerGenerator.cs
- NativeRecognizer.cs
- DataGridViewCellEventArgs.cs
- SystemDiagnosticsSection.cs
- SingleSelectRootGridEntry.cs
- SafeEventLogWriteHandle.cs
- ToolStripSplitButton.cs
- WebHttpElement.cs
- HyperlinkAutomationPeer.cs
- remotingproxy.cs
- WebPartEditorApplyVerb.cs
- URLAttribute.cs
- httpserverutility.cs
- AndCondition.cs
- RuntimeConfigurationRecord.cs
- ScriptManager.cs
- PathHelper.cs
- ReverseInheritProperty.cs
- ExtendedPropertyDescriptor.cs
- QueryUtil.cs
- ErrorRuntimeConfig.cs
- XmlSchemaCollection.cs
- ManagedFilter.cs
- _OSSOCK.cs
- BooleanKeyFrameCollection.cs
- Rectangle.cs
- UnmanagedMemoryStreamWrapper.cs
- LineMetrics.cs
- DataGridRowDetailsEventArgs.cs
- URI.cs
- FrameAutomationPeer.cs
- KnowledgeBase.cs
- SqlStatistics.cs