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
- VarRemapper.cs
- DateTimeFormatInfo.cs
- UserNameSecurityTokenAuthenticator.cs
- ContextMarshalException.cs
- WebPartConnectVerb.cs
- ColorIndependentAnimationStorage.cs
- XmlNamedNodeMap.cs
- XmlHelper.cs
- HtmlWindow.cs
- RtfFormatStack.cs
- HttpCacheParams.cs
- DataListAutoFormat.cs
- ControlsConfig.cs
- PointHitTestResult.cs
- WpfWebRequestHelper.cs
- HttpCacheVaryByContentEncodings.cs
- DnsElement.cs
- DateTime.cs
- DataServiceRequestOfT.cs
- shaperfactoryquerycachekey.cs
- GridViewRowPresenterBase.cs
- CursorInteropHelper.cs
- FrameworkElement.cs
- TimeSpan.cs
- CollectionViewGroupRoot.cs
- DesignerLoader.cs
- DesignSurfaceServiceContainer.cs
- MetadataSerializer.cs
- CodeDomDesignerLoader.cs
- WindowsBrush.cs
- XslCompiledTransform.cs
- VersionPair.cs
- ExecutionScope.cs
- ByteFacetDescriptionElement.cs
- WebPartMinimizeVerb.cs
- ErrorWebPart.cs
- AttributeData.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- MetadataSource.cs
- LineSegment.cs
- Byte.cs
- TextLineResult.cs
- PageSetupDialog.cs
- NonBatchDirectoryCompiler.cs
- OdbcEnvironmentHandle.cs
- QilGenerator.cs
- FileDialogPermission.cs
- COAUTHIDENTITY.cs
- BoundPropertyEntry.cs
- BitmapEffect.cs
- XmlDocumentFragment.cs
- MessageQueueAccessControlEntry.cs
- DelegateSerializationHolder.cs
- WindowsIdentity.cs
- Line.cs
- NamedPipeAppDomainProtocolHandler.cs
- WindowsSpinner.cs
- IConvertible.cs
- AnalyzedTree.cs
- SpellerInterop.cs
- __Filters.cs
- DataGridViewCellPaintingEventArgs.cs
- RegexCaptureCollection.cs
- UseManagedPresentationElement.cs
- ResourceExpressionEditorSheet.cs
- ToolStripOverflow.cs
- MasterPageParser.cs
- ResourceReferenceExpressionConverter.cs
- XamlDesignerSerializationManager.cs
- SeekStoryboard.cs
- DelimitedListTraceListener.cs
- SortedDictionary.cs
- BitmapScalingModeValidation.cs
- CharacterShapingProperties.cs
- TypePresenter.xaml.cs
- InfoCardArgumentException.cs
- PathHelper.cs
- CursorInteropHelper.cs
- FormsAuthenticationEventArgs.cs
- HwndSubclass.cs
- InvalidPropValue.cs
- LogStore.cs
- ActiveXHelper.cs
- RegistrationServices.cs
- RoutedEventHandlerInfo.cs
- WsdlImporterElementCollection.cs
- HTMLTagNameToTypeMapper.cs
- HashMembershipCondition.cs
- ToolStripKeyboardHandlingService.cs
- WebRequest.cs
- PopupEventArgs.cs
- XsdDuration.cs
- DocumentsTrace.cs
- MonitoringDescriptionAttribute.cs
- SemaphoreSecurity.cs
- TrustManager.cs
- Constraint.cs
- ConfigXmlComment.cs
- Size3DConverter.cs
- WebPartDisplayModeEventArgs.cs