Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- CodeExpressionRuleDeclaration.cs
- ZoneIdentityPermission.cs
- QuotedPairReader.cs
- EnumCodeDomSerializer.cs
- XmlAttribute.cs
- SystemParameters.cs
- Parser.cs
- InternalEnumValidator.cs
- RecognitionEventArgs.cs
- DataGridAddNewRow.cs
- WebPartDesigner.cs
- Journaling.cs
- UserControlCodeDomTreeGenerator.cs
- _SslSessionsCache.cs
- StrongNameUtility.cs
- BuildProviderUtils.cs
- IdentityManager.cs
- HostedHttpTransportManager.cs
- mongolianshape.cs
- FixedFlowMap.cs
- CommonXSendMessage.cs
- TableFieldsEditor.cs
- Trigger.cs
- StringReader.cs
- sitestring.cs
- ErrorStyle.cs
- GraphicsPath.cs
- BoolExpressionVisitors.cs
- XmlSchemaGroupRef.cs
- Hex.cs
- XmlDataLoader.cs
- EntityTypeEmitter.cs
- SQLBytes.cs
- CharacterBufferReference.cs
- ResourcesBuildProvider.cs
- Camera.cs
- DuplexChannelFactory.cs
- XmlNamespaceMapping.cs
- LineServicesCallbacks.cs
- Stack.cs
- GridViewAutomationPeer.cs
- ArgumentNullException.cs
- CharEnumerator.cs
- Wizard.cs
- PassportAuthenticationModule.cs
- XsltFunctions.cs
- RawTextInputReport.cs
- DataGridRowHeader.cs
- PointConverter.cs
- ScriptManagerProxy.cs
- CodeComment.cs
- DataGridViewCellMouseEventArgs.cs
- ColorAnimationBase.cs
- XpsTokenContext.cs
- BigInt.cs
- WebService.cs
- ComplexType.cs
- Attachment.cs
- ObjectDataSourceEventArgs.cs
- AppLevelCompilationSectionCache.cs
- InheritanceUI.cs
- TypeTypeConverter.cs
- FontFamilyIdentifier.cs
- TraceListeners.cs
- EntityModelBuildProvider.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- DbException.cs
- AmbientValueAttribute.cs
- ISO2022Encoding.cs
- Calendar.cs
- Condition.cs
- DbParameterHelper.cs
- PathStreamGeometryContext.cs
- Signature.cs
- GenericIdentity.cs
- SystemIPAddressInformation.cs
- IriParsingElement.cs
- XmlCharCheckingReader.cs
- FontConverter.cs
- Page.cs
- HtmlTableRowCollection.cs
- IBuiltInEvidence.cs
- ConsoleCancelEventArgs.cs
- StylusDownEventArgs.cs
- PathTooLongException.cs
- MemberAssignmentAnalysis.cs
- XhtmlBasicCommandAdapter.cs
- VersionedStream.cs
- UserControlFileEditor.cs
- ListViewDeletedEventArgs.cs
- ResolveNameEventArgs.cs
- ToolTip.cs
- GuidelineCollection.cs
- ContextBase.cs
- QilBinary.cs
- ScriptingRoleServiceSection.cs
- StaticResourceExtension.cs
- ConvertEvent.cs
- LiteralControl.cs
- WorkflowInstanceSuspendedRecord.cs