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
- IIS7WorkerRequest.cs
- GeometryHitTestParameters.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SerializationEventsCache.cs
- HttpCachePolicy.cs
- EventLogQuery.cs
- DoubleAnimation.cs
- JsonServiceDocumentSerializer.cs
- SettingsPropertyIsReadOnlyException.cs
- ThreadStartException.cs
- PageCanvasSize.cs
- TypeSource.cs
- UnitControl.cs
- BitmapCodecInfo.cs
- ArgIterator.cs
- OracleFactory.cs
- Journal.cs
- ScrollBar.cs
- DependencyProperty.cs
- SessionPageStateSection.cs
- AsyncContentLoadedEventArgs.cs
- TabControlToolboxItem.cs
- InputReferenceExpression.cs
- OpenTypeLayout.cs
- FormViewDeleteEventArgs.cs
- TdsValueSetter.cs
- RTTrackingProfile.cs
- Int16.cs
- HostProtectionPermission.cs
- AddInProcess.cs
- KeyedHashAlgorithm.cs
- ModelTreeEnumerator.cs
- StringFunctions.cs
- _Semaphore.cs
- TabItemAutomationPeer.cs
- MDIWindowDialog.cs
- SchemaType.cs
- ProxyWebPart.cs
- Html32TextWriter.cs
- DefaultMemberAttribute.cs
- ToolBarPanel.cs
- ItemCheckEvent.cs
- Scheduling.cs
- ExtendedProtectionPolicy.cs
- XmlSchemaObjectCollection.cs
- ExtensibleClassFactory.cs
- SystemTcpConnection.cs
- BitmapDownload.cs
- ImageBrush.cs
- EntityDataSourceChangingEventArgs.cs
- RealProxy.cs
- AutoResizedEvent.cs
- ConfigXmlText.cs
- RTLAwareMessageBox.cs
- ScrollEvent.cs
- ZoneButton.cs
- SymLanguageVendor.cs
- SingleSelectRootGridEntry.cs
- ArcSegment.cs
- TabletDeviceInfo.cs
- SctClaimSerializer.cs
- ExpressionBindingsDialog.cs
- GreenMethods.cs
- OpenTypeCommon.cs
- StructuredProperty.cs
- DataKey.cs
- AdRotatorDesigner.cs
- DocumentSequence.cs
- ModuleConfigurationInfo.cs
- pingexception.cs
- NameTable.cs
- HttpException.cs
- XmlNavigatorFilter.cs
- JsonObjectDataContract.cs
- DESCryptoServiceProvider.cs
- XpsSerializationManagerAsync.cs
- DBConnection.cs
- DataBindingExpressionBuilder.cs
- EventWaitHandle.cs
- DefaultEventAttribute.cs
- HashAlgorithm.cs
- Bitmap.cs
- ComAdminInterfaces.cs
- MetadataArtifactLoaderResource.cs
- PromptBuilder.cs
- Renderer.cs
- SegmentInfo.cs
- PromptEventArgs.cs
- IDReferencePropertyAttribute.cs
- BaseParaClient.cs
- NameSpaceExtractor.cs
- TextBoxBase.cs
- QueryComponents.cs
- DetailsViewModeEventArgs.cs
- MessageBuilder.cs
- RegisteredHiddenField.cs
- MDIClient.cs
- StretchValidation.cs
- File.cs
- WriteableBitmap.cs