Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NullableDecimalAverageAggregationOperator.cs
- UserControlCodeDomTreeGenerator.cs
- EntityClassGenerator.cs
- ConfigsHelper.cs
- TdsValueSetter.cs
- ErrorWebPart.cs
- ReadOnlyHierarchicalDataSource.cs
- columnmapkeybuilder.cs
- WindowsServiceElement.cs
- XpsInterleavingPolicy.cs
- URIFormatException.cs
- PassportAuthenticationModule.cs
- HostedElements.cs
- AnimationClockResource.cs
- ComponentEditorForm.cs
- COM2PropertyPageUITypeConverter.cs
- TextBoxAutomationPeer.cs
- MimeXmlImporter.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ParserOptions.cs
- EmptyControlCollection.cs
- ISFTagAndGuidCache.cs
- StringHandle.cs
- WinInet.cs
- VariableQuery.cs
- UIElementParaClient.cs
- AnnotationStore.cs
- metadatamappinghashervisitor.cs
- Transactions.cs
- PersonalizablePropertyEntry.cs
- TdsEnums.cs
- ValueUnavailableException.cs
- SelectionItemPattern.cs
- XmlCharType.cs
- MouseGestureValueSerializer.cs
- SoundPlayer.cs
- PopupRoot.cs
- SafeIUnknown.cs
- BCLDebug.cs
- AlignmentYValidation.cs
- TimeSpanSecondsConverter.cs
- WCFServiceClientProxyGenerator.cs
- KeyInterop.cs
- BitmapEffect.cs
- DocumentXmlWriter.cs
- EntityDataSourceDataSelectionPanel.designer.cs
- TextEditorTables.cs
- UnionExpr.cs
- PkcsUtils.cs
- RoleBoolean.cs
- HttpHeaderCollection.cs
- SiteMapDataSource.cs
- Point3DCollectionValueSerializer.cs
- ChildrenQuery.cs
- ImageAnimator.cs
- ExpressionConverter.cs
- ListViewContainer.cs
- OleDbParameter.cs
- HasCopySemanticsAttribute.cs
- HtmlTableCellCollection.cs
- EmissiveMaterial.cs
- TextServicesContext.cs
- TagMapCollection.cs
- TreeWalkHelper.cs
- DbBuffer.cs
- WebEventTraceProvider.cs
- TypeForwardedToAttribute.cs
- InsufficientMemoryException.cs
- BuildProviderUtils.cs
- IconConverter.cs
- _SecureChannel.cs
- HttpModuleActionCollection.cs
- HttpHandlersSection.cs
- XmlEnumAttribute.cs
- FocusManager.cs
- TreeNodeCollection.cs
- BuiltInExpr.cs
- ExtendedPropertyInfo.cs
- ControlBindingsCollection.cs
- Propagator.cs
- Interop.cs
- PropertyBuilder.cs
- CustomAttributeBuilder.cs
- FileUtil.cs
- ObjectReferenceStack.cs
- NonParentingControl.cs
- DelegatingChannelListener.cs
- CheckBoxAutomationPeer.cs
- StrongTypingException.cs
- AdornerDecorator.cs
- TemplateBuilder.cs
- XmlSerializer.cs
- TextHintingModeValidation.cs
- Content.cs
- BaseAddressPrefixFilterElement.cs
- ToolStripSeparator.cs
- KeyValueInternalCollection.cs
- ResolveMatchesMessageCD1.cs
- TimeoutException.cs
- TextReader.cs