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
- WindowCollection.cs
- DataView.cs
- ObjectDataSourceView.cs
- PropertySourceInfo.cs
- LinqDataSource.cs
- CookieProtection.cs
- MetadataUtil.cs
- OdbcCommandBuilder.cs
- PersistenceContextEnlistment.cs
- wgx_commands.cs
- Expression.cs
- PageTrueTypeFont.cs
- StackBuilderSink.cs
- ContextBase.cs
- SQLByteStorage.cs
- ItemDragEvent.cs
- LabelEditEvent.cs
- ImageCodecInfoPrivate.cs
- SignatureHelper.cs
- WorkflowWebService.cs
- TraceUtils.cs
- DynamicControl.cs
- EastAsianLunisolarCalendar.cs
- RotateTransform3D.cs
- GridEntryCollection.cs
- MergeFilterQuery.cs
- EvidenceBase.cs
- RightsManagementPermission.cs
- XmlWriterSettings.cs
- QuaternionAnimationBase.cs
- SettingsPropertyNotFoundException.cs
- ExclusiveCanonicalizationTransform.cs
- MemberInfoSerializationHolder.cs
- RowParagraph.cs
- ConfigXmlElement.cs
- TabItemWrapperAutomationPeer.cs
- NonPrimarySelectionGlyph.cs
- MetadataSet.cs
- PermissionRequestEvidence.cs
- ServiceRoute.cs
- DbParameterHelper.cs
- PolicyException.cs
- ProjectedSlot.cs
- ResourceType.cs
- Char.cs
- ImportCatalogPart.cs
- SqlCacheDependencyDatabaseCollection.cs
- AutomationPropertyInfo.cs
- AdjustableArrowCap.cs
- SqlAliasesReferenced.cs
- CodeRegionDirective.cs
- MailAddressParser.cs
- BinHexEncoder.cs
- _TLSstream.cs
- METAHEADER.cs
- FragmentQueryKB.cs
- TimeoutException.cs
- CreateParams.cs
- PointHitTestResult.cs
- _BasicClient.cs
- XamlParser.cs
- DataGridItemEventArgs.cs
- DataGridViewElement.cs
- EmptyQuery.cs
- LambdaCompiler.Unary.cs
- GenericsInstances.cs
- XmlSchemaAttributeGroup.cs
- ActionMessageFilterTable.cs
- MexHttpsBindingElement.cs
- InkSerializer.cs
- WebPartExportVerb.cs
- PropertyDescriptorCollection.cs
- GroupBoxAutomationPeer.cs
- DbConnectionClosed.cs
- OracleConnectionString.cs
- RelatedImageListAttribute.cs
- RegistryConfigurationProvider.cs
- DbParameterHelper.cs
- DescendantBaseQuery.cs
- LambdaCompiler.Expressions.cs
- ListenerElementsCollection.cs
- _BufferOffsetSize.cs
- DocumentEventArgs.cs
- FixedTextPointer.cs
- PropertyEmitterBase.cs
- ExpressionBuilderContext.cs
- regiisutil.cs
- MemberPath.cs
- PointValueSerializer.cs
- FixedSOMPageElement.cs
- SecurityTokenTypes.cs
- CodeConstructor.cs
- TableParaClient.cs
- SingleAnimationBase.cs
- RepeatButton.cs
- RelatedEnd.cs
- _SSPISessionCache.cs
- SqlDataSourceConnectionPanel.cs
- XmlAtomicValue.cs
- RectKeyFrameCollection.cs