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
- ObjectStateManagerMetadata.cs
- InputScopeAttribute.cs
- BuilderInfo.cs
- _SslState.cs
- SafeCloseHandleCritical.cs
- SequenceRangeCollection.cs
- ButtonFieldBase.cs
- Metadata.cs
- Color.cs
- Connector.xaml.cs
- CharEntityEncoderFallback.cs
- SiteMapNodeItem.cs
- DesignerUtility.cs
- HtmlForm.cs
- TextPointer.cs
- AnnotationHighlightLayer.cs
- DataTableExtensions.cs
- WebBrowserNavigatedEventHandler.cs
- BrowserInteropHelper.cs
- BufferAllocator.cs
- RegexGroupCollection.cs
- WindowVisualStateTracker.cs
- DoubleIndependentAnimationStorage.cs
- PersonalizationEntry.cs
- CompiledQuery.cs
- SizeLimitedCache.cs
- XmlParserContext.cs
- ViewBase.cs
- TypedDataSourceCodeGenerator.cs
- FontFamily.cs
- ToolStripGrip.cs
- RuntimeVariablesExpression.cs
- ZoneMembershipCondition.cs
- SchemaHelper.cs
- TableColumnCollectionInternal.cs
- X509Utils.cs
- ContentElementAutomationPeer.cs
- TextEffectResolver.cs
- ConfigXmlCDataSection.cs
- XmlNamespaceManager.cs
- ConnectionStringsExpressionBuilder.cs
- SqlDataSourceParameterParser.cs
- ObjectKeyFrameCollection.cs
- DesignerActionTextItem.cs
- ConfigurationStrings.cs
- XmlSchemaComplexType.cs
- PKCS1MaskGenerationMethod.cs
- ZipIOCentralDirectoryBlock.cs
- EditorZoneBase.cs
- StreamingContext.cs
- SelectionService.cs
- BindingMemberInfo.cs
- NativeMethods.cs
- SapiRecognizer.cs
- DesignerAutoFormatStyle.cs
- LineSegment.cs
- ReturnEventArgs.cs
- XmlSchemaProviderAttribute.cs
- ObsoleteAttribute.cs
- MessageSecurityProtocolFactory.cs
- ActivityValidationServices.cs
- CodeAttributeDeclaration.cs
- CommonGetThemePartSize.cs
- WebProxyScriptElement.cs
- PopupControlService.cs
- GetWinFXPath.cs
- StatusBar.cs
- SemaphoreFullException.cs
- MouseActionConverter.cs
- PassportAuthenticationEventArgs.cs
- Point.cs
- Button.cs
- ArgumentNullException.cs
- PrePrepareMethodAttribute.cs
- _SslState.cs
- HybridObjectCache.cs
- HostingPreferredMapPath.cs
- EventProviderWriter.cs
- FlowDocumentReaderAutomationPeer.cs
- WindowsGraphicsWrapper.cs
- QueryRewriter.cs
- QueryContinueDragEventArgs.cs
- GreenMethods.cs
- TransportConfigurationTypeElement.cs
- KeySplineConverter.cs
- OptionalRstParameters.cs
- IndexedSelectQueryOperator.cs
- HierarchicalDataTemplate.cs
- FieldMetadata.cs
- TreeViewDataItemAutomationPeer.cs
- ResolveDuplex11AsyncResult.cs
- Page.cs
- WebConfigurationHostFileChange.cs
- ExtractorMetadata.cs
- MSG.cs
- Window.cs
- Group.cs
- MetadataItemCollectionFactory.cs
- MailSettingsSection.cs
- Merger.cs