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
- PersianCalendar.cs
- IPHostEntry.cs
- sortedlist.cs
- SchemaEntity.cs
- IdentitySection.cs
- DeferredReference.cs
- MethodBuilderInstantiation.cs
- SparseMemoryStream.cs
- PropertyGeneratedEventArgs.cs
- Models.cs
- FixedPage.cs
- VisualBrush.cs
- EntityTemplateUserControl.cs
- sqlinternaltransaction.cs
- ArcSegment.cs
- SqlStatistics.cs
- ThreadPool.cs
- XamlPathDataSerializer.cs
- MediaContextNotificationWindow.cs
- TriggerBase.cs
- ActivityDesigner.cs
- MembershipUser.cs
- LocalFileSettingsProvider.cs
- KeyBinding.cs
- EnlistmentState.cs
- OutOfProcStateClientManager.cs
- MsiStyleLogWriter.cs
- DocumentSchemaValidator.cs
- XmlSchemaSimpleContent.cs
- SchemaConstraints.cs
- ServiceActivationException.cs
- AssociativeAggregationOperator.cs
- SapiAttributeParser.cs
- XmlEnumAttribute.cs
- InternalResources.cs
- SharedDp.cs
- ObjectTypeMapping.cs
- BindingObserver.cs
- ClientBuildManager.cs
- WmlControlAdapter.cs
- ToolStripItemGlyph.cs
- ComEventsMethod.cs
- OrderPreservingPipeliningMergeHelper.cs
- ResourceProviderFactory.cs
- QilSortKey.cs
- ConstrainedGroup.cs
- AddDataControlFieldDialog.cs
- ThicknessAnimation.cs
- SegmentInfo.cs
- RootBrowserWindowProxy.cs
- ActionMessageFilter.cs
- AmbientEnvironment.cs
- DataGridCellItemAutomationPeer.cs
- DesignTableCollection.cs
- HttpCacheVary.cs
- ExternalDataExchangeService.cs
- MouseButtonEventArgs.cs
- StylusDownEventArgs.cs
- TypeExtension.cs
- DbParameterHelper.cs
- ReadContentAsBinaryHelper.cs
- Pen.cs
- FigureParagraph.cs
- UIAgentMonitor.cs
- CustomTypeDescriptor.cs
- SelectionItemPattern.cs
- JpegBitmapEncoder.cs
- AssemblyUtil.cs
- BlockUIContainer.cs
- HostedNamedPipeTransportManager.cs
- TextEditorSpelling.cs
- RegexMatch.cs
- DefaultWorkflowSchedulerService.cs
- AddInControllerImpl.cs
- SoapSchemaImporter.cs
- XmlSerializerNamespaces.cs
- BitmapSource.cs
- FacetValueContainer.cs
- ProfileInfo.cs
- UInt64Converter.cs
- LocatorGroup.cs
- Int16AnimationUsingKeyFrames.cs
- LockCookie.cs
- DynamicPropertyHolder.cs
- CodeStatementCollection.cs
- SerialStream.cs
- WebBrowserPermission.cs
- HelloOperationAsyncResult.cs
- HighContrastHelper.cs
- TextEditorTyping.cs
- SqlWorkflowInstanceStoreLock.cs
- ISessionStateStore.cs
- panel.cs
- PopupEventArgs.cs
- SubMenuStyle.cs
- QueryOperationResponseOfT.cs
- NumericPagerField.cs
- DefaultBindingPropertyAttribute.cs
- PolyQuadraticBezierSegment.cs
- DynamicResourceExtension.cs