Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / DrawingBrush.cs / 1305600 / DrawingBrush.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: DrawingBrush.cs // // Description: This file contains the implementation of DrawingBrush. // The DrawingBrush is a TileBrush which defines its tile content // by use of a Drawing. // // History: // 2003/07/17 : [....] - Created it. // 2003/07/28 : [....] - Renamed it and hooked it up to the unmanaged code. // //--------------------------------------------------------------------------- using MS.Internal; using System; using System.ComponentModel; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; namespace System.Windows.Media { ////// DrawingBrush - This TileBrush defines its content as a Drawing /// public sealed partial class DrawingBrush : TileBrush { #region Constructors ////// Default constructor for DrawingBrush. The resulting Brush has no content. /// public DrawingBrush() { } ////// DrawingBrush Constructor where the image is set to the parameter's value /// /// The Drawing representing the contents of this Brush. public DrawingBrush(Drawing drawing) { Drawing = drawing; } #endregion Constructors ////// Obtains the current bounds of the brush's content /// /// Output bounds of content protected override void GetContentBounds(out Rect contentBounds) { contentBounds = Drawing.GetBounds(); } } } // 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
- CurrentChangingEventArgs.cs
- CustomTypeDescriptor.cs
- MetabaseSettingsIis7.cs
- DebugView.cs
- TextDecorationLocationValidation.cs
- HtmlElementCollection.cs
- DataTableClearEvent.cs
- FontStretches.cs
- Errors.cs
- GroupBoxRenderer.cs
- SevenBitStream.cs
- PropertyExpression.cs
- MainMenu.cs
- FixedSOMTable.cs
- StaticContext.cs
- TimelineCollection.cs
- Material.cs
- SqlInternalConnection.cs
- LayoutTable.cs
- ChannelEndpointElement.cs
- ProbeDuplexAsyncResult.cs
- TransferMode.cs
- TextCompositionEventArgs.cs
- IndicCharClassifier.cs
- ListViewItemMouseHoverEvent.cs
- IndependentAnimationStorage.cs
- StatusStrip.cs
- DataObject.cs
- ReaderWriterLockWrapper.cs
- LoginViewDesigner.cs
- KeyValuePairs.cs
- PersonalizationEntry.cs
- RewritingSimplifier.cs
- Comparer.cs
- BaseTemplateParser.cs
- ServiceTimeoutsElement.cs
- StreamInfo.cs
- SiteMapProvider.cs
- ListControl.cs
- ClientSettingsProvider.cs
- SpellerHighlightLayer.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- WebPartHeaderCloseVerb.cs
- JoinCqlBlock.cs
- WindowsMenu.cs
- WindowsContainer.cs
- ButtonField.cs
- GuidelineCollection.cs
- LineProperties.cs
- SafeSecurityHelper.cs
- _TransmitFileOverlappedAsyncResult.cs
- IndexerNameAttribute.cs
- DefaultShape.cs
- ErrorWrapper.cs
- DeobfuscatingStream.cs
- ModuleConfigurationInfo.cs
- InvokeMethodActivityDesigner.cs
- base64Transforms.cs
- CodeTypeMemberCollection.cs
- QueryNode.cs
- IUnknownConstantAttribute.cs
- UpDownBase.cs
- HScrollBar.cs
- WsatServiceCertificate.cs
- ChildDocumentBlock.cs
- XmlAnyElementAttributes.cs
- NestPullup.cs
- Scene3D.cs
- SingleObjectCollection.cs
- XmlSchemaInfo.cs
- StringValidatorAttribute.cs
- CertificateManager.cs
- SystemUnicastIPAddressInformation.cs
- XmlUnspecifiedAttribute.cs
- UnauthorizedWebPart.cs
- DiscoveryClientRequestChannel.cs
- DBConnectionString.cs
- NotificationContext.cs
- CellTreeNode.cs
- MenuItemBinding.cs
- XmlDocumentFieldSchema.cs
- UIElement3DAutomationPeer.cs
- EntityDataSourceUtil.cs
- ControlTemplate.cs
- Clipboard.cs
- HMACMD5.cs
- HttpPostedFile.cs
- IsolatedStorageFilePermission.cs
- ErrorReporting.cs
- Atom10ItemFormatter.cs
- PropertyDescriptorGridEntry.cs
- DocumentViewerAutomationPeer.cs
- BamlReader.cs
- InputLangChangeRequestEvent.cs
- HtmlForm.cs
- VariableExpressionConverter.cs
- WindowsServiceCredential.cs
- ConfigurationProperty.cs
- XmlSchemaType.cs
- WebPermission.cs