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
- BlurBitmapEffect.cs
- InvokeSchedule.cs
- XPathChildIterator.cs
- CodeDelegateInvokeExpression.cs
- ServiceProviders.cs
- _SslSessionsCache.cs
- WebPartCatalogAddVerb.cs
- DesignSurfaceManager.cs
- AspCompat.cs
- CodePrimitiveExpression.cs
- SiteMapNodeItem.cs
- AttributeParameterInfo.cs
- ReflectionUtil.cs
- DeclaredTypeValidatorAttribute.cs
- SafePointer.cs
- BindStream.cs
- HttpUnhandledOperationInvoker.cs
- NativeMethods.cs
- GeneralTransform2DTo3D.cs
- MouseActionValueSerializer.cs
- _Win32.cs
- SqlDataReaderSmi.cs
- SafeHandle.cs
- Light.cs
- DataGridTextBox.cs
- EntitySqlException.cs
- ExpandedWrapper.cs
- XmlSerializerSection.cs
- HttpBrowserCapabilitiesBase.cs
- BroadcastEventHelper.cs
- HttpHandlerAction.cs
- ConfigXmlComment.cs
- ContextBase.cs
- SqlCrossApplyToCrossJoin.cs
- PerformanceCounterLib.cs
- IISUnsafeMethods.cs
- AdornerLayer.cs
- BrowserCapabilitiesCodeGenerator.cs
- SymLanguageType.cs
- UndoEngine.cs
- LoadWorkflowByKeyAsyncResult.cs
- ConversionContext.cs
- TypeElement.cs
- columnmapfactory.cs
- SchemaName.cs
- DecimalAnimation.cs
- Configuration.cs
- SQLRoleProvider.cs
- FunctionImportElement.cs
- _TLSstream.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ButtonPopupAdapter.cs
- Oid.cs
- XmlPreloadedResolver.cs
- TaskResultSetter.cs
- DbMetaDataFactory.cs
- serverconfig.cs
- TextEditorSpelling.cs
- StylusPointCollection.cs
- LocalClientSecuritySettingsElement.cs
- BuildResultCache.cs
- WebServiceData.cs
- SqlClientFactory.cs
- FlowDocumentPage.cs
- DataService.cs
- TemplateControlCodeDomTreeGenerator.cs
- GlobalizationAssembly.cs
- SmiEventSink_DeferedProcessing.cs
- GridViewAutoFormat.cs
- BasicHttpMessageSecurityElement.cs
- DrawingGroup.cs
- EntityTransaction.cs
- UnmanagedHandle.cs
- SpeechRecognitionEngine.cs
- ValidatorUtils.cs
- NotImplementedException.cs
- ServiceHttpHandlerFactory.cs
- XmlSchemaComplexType.cs
- EntityDesignerUtils.cs
- DESCryptoServiceProvider.cs
- SoapExtensionImporter.cs
- MatchNoneMessageFilter.cs
- OleAutBinder.cs
- OperandQuery.cs
- RowParagraph.cs
- CompilationLock.cs
- XmlElement.cs
- SettingsSavedEventArgs.cs
- MostlySingletonList.cs
- FragmentQuery.cs
- KeyValuePairs.cs
- ProxyWebPartConnectionCollection.cs
- ToolStripRendererSwitcher.cs
- DatePickerDateValidationErrorEventArgs.cs
- RecordManager.cs
- SimpleBitVector32.cs
- MonthCalendarDesigner.cs
- FixedHyperLink.cs
- TreeNode.cs
- TableRowCollection.cs