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
- HashHelper.cs
- HMACRIPEMD160.cs
- XmlSchemaObject.cs
- SeekableReadStream.cs
- SqlTransaction.cs
- BasicExpandProvider.cs
- DecoderReplacementFallback.cs
- ImageSource.cs
- DataContractSet.cs
- AuthenticationService.cs
- SqlInternalConnectionTds.cs
- ValueUtilsSmi.cs
- SerialStream.cs
- DesignerWithHeader.cs
- SourceFileBuildProvider.cs
- BinaryParser.cs
- OutputCacheProfile.cs
- FlowDocumentFormatter.cs
- QueryExpr.cs
- ConstructorNeedsTagAttribute.cs
- XmlAttributeCache.cs
- OdbcTransaction.cs
- ActiveXHelper.cs
- ResourcePool.cs
- PTProvider.cs
- RIPEMD160.cs
- EventHandlerList.cs
- SafeHandles.cs
- ScrollData.cs
- SafeSerializationManager.cs
- TextLine.cs
- EmptyStringExpandableObjectConverter.cs
- HtmlInputText.cs
- EntityDescriptor.cs
- PermissionSetEnumerator.cs
- DataGridViewCellStyleConverter.cs
- PrinterResolution.cs
- VisualCollection.cs
- SwitchDesigner.xaml.cs
- CompareValidator.cs
- dataprotectionpermissionattribute.cs
- ChildTable.cs
- WindowsGraphicsCacheManager.cs
- CodeTypeReferenceCollection.cs
- CatalogPart.cs
- XmlSchemaGroup.cs
- MarginsConverter.cs
- HandledEventArgs.cs
- ObjectListDesigner.cs
- ParseHttpDate.cs
- TreeNodeBindingCollection.cs
- PriorityBindingExpression.cs
- ErrorTableItemStyle.cs
- Animatable.cs
- XmlCharCheckingWriter.cs
- FileVersion.cs
- XmlBinaryReader.cs
- EntityDataSourceQueryBuilder.cs
- UICuesEvent.cs
- ComponentCollection.cs
- ObjectStateFormatter.cs
- ThreadStartException.cs
- ObjectStateFormatter.cs
- HtmlShimManager.cs
- ColorConverter.cs
- DelayedRegex.cs
- EnlistmentState.cs
- ActiveXContainer.cs
- DynamicDocumentPaginator.cs
- ListBoxItem.cs
- AnimationClock.cs
- DesignerActionGlyph.cs
- DetailsViewInsertEventArgs.cs
- DoubleConverter.cs
- PasswordBoxAutomationPeer.cs
- XmlILAnnotation.cs
- MatrixTransform3D.cs
- ExpandableObjectConverter.cs
- Keyboard.cs
- FixedDocumentPaginator.cs
- XPathDescendantIterator.cs
- TextFormatter.cs
- XmlSchemaFacet.cs
- ReadWriteObjectLock.cs
- DataGridColumnCollectionEditor.cs
- ModulesEntry.cs
- DefaultMemberAttribute.cs
- MediaContextNotificationWindow.cs
- LoginNameDesigner.cs
- ADMembershipProvider.cs
- DbDeleteCommandTree.cs
- DockingAttribute.cs
- ActivityDesignerAccessibleObject.cs
- ResourceProperty.cs
- PathSegmentCollection.cs
- ParagraphResult.cs
- CapabilitiesPattern.cs
- ImageField.cs
- DotAtomReader.cs
- ConfigXmlWhitespace.cs