Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / TransformGroup.cs / 1305600 / 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
- SystemColorTracker.cs
- MultipartContentParser.cs
- DictionarySectionHandler.cs
- TTSVoice.cs
- EventHandlerList.cs
- EntityCommand.cs
- Decimal.cs
- CodeIterationStatement.cs
- ColorKeyFrameCollection.cs
- SqlReorderer.cs
- RootProfilePropertySettingsCollection.cs
- DataGridRowsPresenter.cs
- EditingScopeUndoUnit.cs
- ListViewUpdatedEventArgs.cs
- ToolboxItemImageConverter.cs
- EncryptedPackage.cs
- WebPartEditVerb.cs
- SR.cs
- ListView.cs
- MessageDecoder.cs
- MatrixCamera.cs
- SettingsPropertyCollection.cs
- ToolBarPanel.cs
- ListItemConverter.cs
- ProtocolException.cs
- WebRequestModuleElementCollection.cs
- DnsPermission.cs
- WindowsListViewGroupSubsetLink.cs
- SafeHandle.cs
- SizeAnimationClockResource.cs
- InvokeMemberBinder.cs
- ClientSettingsSection.cs
- XPathPatternParser.cs
- ChannelServices.cs
- DataSourceXmlElementAttribute.cs
- SpotLight.cs
- HttpConfigurationContext.cs
- SimpleApplicationHost.cs
- XmlNodeChangedEventArgs.cs
- Simplifier.cs
- IntSecurity.cs
- PhonemeEventArgs.cs
- XamlPathDataSerializer.cs
- COM2ColorConverter.cs
- MouseEvent.cs
- xml.cs
- ObjectDataProvider.cs
- XmlAttributeAttribute.cs
- DataGridItem.cs
- XmlElement.cs
- LocalBuilder.cs
- Dump.cs
- OLEDB_Util.cs
- ConnectionStringSettingsCollection.cs
- XpsDocumentEvent.cs
- DrawToolTipEventArgs.cs
- DBDataPermission.cs
- PeerNameRecord.cs
- DrawingCollection.cs
- MethodAccessException.cs
- WindowsGraphics2.cs
- DataGridColumnHeaderAutomationPeer.cs
- odbcmetadatacolumnnames.cs
- WorkerRequest.cs
- ConfigurationSchemaErrors.cs
- HandlerWithFactory.cs
- DefaultWorkflowLoaderService.cs
- UriScheme.cs
- RelatedPropertyManager.cs
- DataGridViewLayoutData.cs
- DefaultTypeArgumentAttribute.cs
- KeyValueConfigurationElement.cs
- AlternateViewCollection.cs
- AuthorizationSection.cs
- DateTimeOffsetConverter.cs
- ToolboxItemImageConverter.cs
- WmlPanelAdapter.cs
- ConfigurationValidatorAttribute.cs
- CodeThrowExceptionStatement.cs
- DoubleConverter.cs
- KerberosReceiverSecurityToken.cs
- AuthenticationSection.cs
- InvokeHandlers.cs
- AuthenticationModuleElementCollection.cs
- ResXResourceWriter.cs
- SiteMapHierarchicalDataSourceView.cs
- Section.cs
- SafeThemeHandle.cs
- ControlPropertyNameConverter.cs
- XPathAncestorQuery.cs
- NameSpaceEvent.cs
- VScrollProperties.cs
- DataTableClearEvent.cs
- DiscoveryClientDocuments.cs
- MSAANativeProvider.cs
- NetworkCredential.cs
- TreeViewItemAutomationPeer.cs
- NavigationService.cs
- DispatcherExceptionFilterEventArgs.cs
- ConfigurationSectionCollection.cs