Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // // 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
- NativeMethods.cs
- XmlDownloadManager.cs
- ProgramPublisher.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- OrderingQueryOperator.cs
- SelectorAutomationPeer.cs
- MetadataUtilsSmi.cs
- AutomationIdentifierGuids.cs
- BitmapEffectDrawingContent.cs
- TextTreeInsertUndoUnit.cs
- ConfigurationSectionGroupCollection.cs
- ParameterCollection.cs
- TextBreakpoint.cs
- PropertyDescriptorComparer.cs
- RestHandler.cs
- PasswordDeriveBytes.cs
- HtmlValidatorAdapter.cs
- TransactedReceiveScope.cs
- ObjectStateManager.cs
- util.cs
- COM2PropertyDescriptor.cs
- PersistStreamTypeWrapper.cs
- DetailsViewPageEventArgs.cs
- Bezier.cs
- filewebresponse.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ControlParameter.cs
- StatusBarPanelClickEvent.cs
- ButtonField.cs
- DesignTimeDataBinding.cs
- IncrementalHitTester.cs
- FlowSwitchLink.cs
- XsdBuilder.cs
- Variable.cs
- SecurityState.cs
- DeclaredTypeValidatorAttribute.cs
- TreeNodeStyleCollection.cs
- ControlValuePropertyAttribute.cs
- newinstructionaction.cs
- XdrBuilder.cs
- DataMemberAttribute.cs
- Evidence.cs
- MenuItemCollectionEditor.cs
- RectangleGeometry.cs
- ClientProxyGenerator.cs
- RadioButtonBaseAdapter.cs
- PeerFlooder.cs
- EmptyCollection.cs
- ByteFacetDescriptionElement.cs
- UniqueEventHelper.cs
- BitmapFrameEncode.cs
- DesignerVerbCollection.cs
- Console.cs
- ApplicationServicesHostFactory.cs
- DataSetUtil.cs
- Encoding.cs
- MetadataConversionError.cs
- SyndicationSerializer.cs
- AutomationPropertyChangedEventArgs.cs
- FixedSOMPageElement.cs
- ExpressionParser.cs
- ValidationHelpers.cs
- URLIdentityPermission.cs
- SoapReflector.cs
- PerCallInstanceContextProvider.cs
- DescendentsWalkerBase.cs
- FlowDocumentFormatter.cs
- CodeExpressionCollection.cs
- XamlFilter.cs
- AnnotationStore.cs
- DefaultTraceListener.cs
- SQlBooleanStorage.cs
- GeometryGroup.cs
- _SpnDictionary.cs
- UniqueIdentifierService.cs
- mediaclock.cs
- ThreadExceptionDialog.cs
- Maps.cs
- ViewValidator.cs
- BitmapEffectGroup.cs
- RSAOAEPKeyExchangeDeformatter.cs
- odbcmetadatafactory.cs
- RsaSecurityToken.cs
- ClrPerspective.cs
- CellRelation.cs
- HtmlShim.cs
- XmlCustomFormatter.cs
- LoadedOrUnloadedOperation.cs
- HatchBrush.cs
- Point4D.cs
- WebScriptEnablingElement.cs
- FactoryId.cs
- OrderedDictionary.cs
- SelectionProcessor.cs
- XmlSchemaExternal.cs
- TableCell.cs
- AnnotationHighlightLayer.cs
- SharedPerformanceCounter.cs
- EntityClassGenerator.cs
- CodeEntryPointMethod.cs