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
- SchemaNotation.cs
- StyleXamlParser.cs
- CompilationPass2TaskInternal.cs
- BrowserTree.cs
- SpecularMaterial.cs
- WindowsStartMenu.cs
- TemplateXamlTreeBuilder.cs
- DataRecord.cs
- EditingCoordinator.cs
- FlowSwitch.cs
- SafeArrayRankMismatchException.cs
- DataBindingExpressionBuilder.cs
- UnknownExceptionActionHelper.cs
- TraversalRequest.cs
- PropertyTab.cs
- SetStoryboardSpeedRatio.cs
- SqlEnums.cs
- FontSizeConverter.cs
- PropertiesTab.cs
- ProviderSettingsCollection.cs
- hebrewshape.cs
- SplashScreen.cs
- Column.cs
- XmlSchemaExporter.cs
- ProxyWebPartConnectionCollection.cs
- DataComponentGenerator.cs
- ReversePositionQuery.cs
- WindowsTokenRoleProvider.cs
- HwndKeyboardInputProvider.cs
- XmlIncludeAttribute.cs
- FormsAuthenticationUser.cs
- WorkflowOwnershipException.cs
- JoinElimination.cs
- RegexRunner.cs
- ResXBuildProvider.cs
- TreeViewEvent.cs
- UrlPropertyAttribute.cs
- SpecialTypeDataContract.cs
- EdmType.cs
- Freezable.cs
- ZipIOLocalFileDataDescriptor.cs
- XmlDataDocument.cs
- MulticastDelegate.cs
- ReliableSessionBindingElement.cs
- WindowPattern.cs
- ImageField.cs
- WebPartDisplayModeCollection.cs
- HashStream.cs
- MetadataItemSerializer.cs
- ClientReliableChannelBinder.cs
- PropertyDescriptorCollection.cs
- MachineKeySection.cs
- TemplatedAdorner.cs
- TreeViewAutomationPeer.cs
- LogSwitch.cs
- BinaryConverter.cs
- BindingExpression.cs
- FolderBrowserDialog.cs
- WindowAutomationPeer.cs
- SessionEndingEventArgs.cs
- SecurityTokenProvider.cs
- Cursor.cs
- DataSourceCacheDurationConverter.cs
- ScriptManager.cs
- RegistryPermission.cs
- XhtmlTextWriter.cs
- BaseServiceProvider.cs
- SqlUserDefinedAggregateAttribute.cs
- HiddenField.cs
- WebPartCatalogCloseVerb.cs
- ContextStaticAttribute.cs
- PageBreakRecord.cs
- Msec.cs
- DesignerCatalogPartChrome.cs
- DataBindingExpressionBuilder.cs
- DbQueryCommandTree.cs
- DesignerAdRotatorAdapter.cs
- WindowsFormsSynchronizationContext.cs
- ProcessHostConfigUtils.cs
- SecurityUniqueId.cs
- ListViewTableCell.cs
- ErrorWrapper.cs
- ETagAttribute.cs
- WebPartConnection.cs
- CompModSwitches.cs
- DropShadowBitmapEffect.cs
- EventQueueState.cs
- Rect3DValueSerializer.cs
- InstanceLockLostException.cs
- EventOpcode.cs
- SerialReceived.cs
- ToolStripContentPanelRenderEventArgs.cs
- CalloutQueueItem.cs
- PermissionListSet.cs
- PeerApplication.cs
- SkinBuilder.cs
- UrlParameterReader.cs
- ToolbarAUtomationPeer.cs
- ConfigurationSchemaErrors.cs
- EdmType.cs