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
- SettingsPropertyNotFoundException.cs
- CompareInfo.cs
- CommandDesigner.cs
- DesignerDataSchemaClass.cs
- RegexFCD.cs
- Collection.cs
- Panel.cs
- TwoPhaseCommit.cs
- AdPostCacheSubstitution.cs
- prefixendpointaddressmessagefilter.cs
- CultureInfo.cs
- Identity.cs
- PinnedBufferMemoryStream.cs
- MailSettingsSection.cs
- MinimizableAttributeTypeConverter.cs
- ScriptingWebServicesSectionGroup.cs
- TextFormatterHost.cs
- HttpListenerException.cs
- GlyphingCache.cs
- SchemaTypeEmitter.cs
- Grant.cs
- AssociationSet.cs
- EditorPart.cs
- Dictionary.cs
- IsolationInterop.cs
- Ipv6Element.cs
- TraceUtility.cs
- GeneralTransform3DTo2D.cs
- BitmapCodecInfo.cs
- WorkflowValidationFailedException.cs
- AutomationPropertyChangedEventArgs.cs
- ToolboxItemFilterAttribute.cs
- ImageInfo.cs
- RepeatInfo.cs
- DefaultParameterValueAttribute.cs
- Directory.cs
- InstanceData.cs
- TextEffect.cs
- EntityContainerRelationshipSetEnd.cs
- AssemblyAttributesGoHere.cs
- DbConnectionInternal.cs
- HtmlInputPassword.cs
- EntityCommandExecutionException.cs
- RIPEMD160.cs
- RectConverter.cs
- ViewStateModeByIdAttribute.cs
- XsltInput.cs
- CommandField.cs
- _HeaderInfoTable.cs
- DeferredElementTreeState.cs
- WorkflowRuntimeBehavior.cs
- UIElementHelper.cs
- PropertyConverter.cs
- ipaddressinformationcollection.cs
- TextTreeNode.cs
- ProviderUtil.cs
- WebEvents.cs
- DBConnectionString.cs
- BitmapEffectDrawing.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- XamlSerializer.cs
- SweepDirectionValidation.cs
- ReachSerializationCacheItems.cs
- Asn1IntegerConverter.cs
- QueryRewriter.cs
- SpeechRecognitionEngine.cs
- ClosableStream.cs
- GreenMethods.cs
- PeerApplicationLaunchInfo.cs
- CustomCategoryAttribute.cs
- Imaging.cs
- HMAC.cs
- CompositeControlDesigner.cs
- TrueReadOnlyCollection.cs
- reliableinputsessionchannel.cs
- SafeNativeMethods.cs
- KerberosTicketHashIdentifierClause.cs
- MobileListItemCollection.cs
- XamlSerializer.cs
- RpcCryptoRequest.cs
- HttpWebRequest.cs
- ByteAnimation.cs
- MimeXmlReflector.cs
- FlowDocumentScrollViewer.cs
- IssuedTokenServiceCredential.cs
- PropertyChangingEventArgs.cs
- Set.cs
- ToolStripSplitButton.cs
- Point3DConverter.cs
- COM2PropertyDescriptor.cs
- EditCommandColumn.cs
- SendMailErrorEventArgs.cs
- AddInToken.cs
- ProxyWebPart.cs
- localization.cs
- SqlExpander.cs
- RepeatButtonAutomationPeer.cs
- ServerValidateEventArgs.cs
- InlineObject.cs
- RealizationContext.cs