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
- DispatcherOperation.cs
- HebrewNumber.cs
- TextSelectionProcessor.cs
- JournalEntryListConverter.cs
- MachineKeyConverter.cs
- AdapterDictionary.cs
- InputReport.cs
- ConfigurationStrings.cs
- TreeViewCancelEvent.cs
- TypeHelper.cs
- ScriptingRoleServiceSection.cs
- PackagingUtilities.cs
- SqlVisitor.cs
- ComponentCollection.cs
- PackageRelationshipSelector.cs
- ExpressionEditorSheet.cs
- CombinedGeometry.cs
- XmlSchemaSubstitutionGroup.cs
- DynamicMetaObjectBinder.cs
- WindowsButton.cs
- XmlSchemaComplexContent.cs
- FontStretches.cs
- SecurityException.cs
- InvalidProgramException.cs
- XpsFixedDocumentReaderWriter.cs
- TokenizerHelper.cs
- ScrollData.cs
- JsonFormatWriterGenerator.cs
- UrlAuthorizationModule.cs
- EditCommandColumn.cs
- QueryStringParameter.cs
- SelectionEditingBehavior.cs
- HtmlInputCheckBox.cs
- ViewgenGatekeeper.cs
- EncodingInfo.cs
- GridViewAutomationPeer.cs
- DataGridViewDataErrorEventArgs.cs
- FormCollection.cs
- CustomAttributeFormatException.cs
- Int64AnimationBase.cs
- SchemeSettingElementCollection.cs
- EventManager.cs
- WebPartZoneCollection.cs
- FixedSOMPageElement.cs
- NotifyParentPropertyAttribute.cs
- SqlFileStream.cs
- TagPrefixCollection.cs
- UpdatePanelControlTrigger.cs
- ToolboxItemFilterAttribute.cs
- Regex.cs
- Pipe.cs
- PrintPreviewControl.cs
- DecoderFallback.cs
- EntityContainerEntitySet.cs
- TypeForwardedToAttribute.cs
- SmiMetaData.cs
- StateItem.cs
- AssemblyCacheEntry.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- DataGridViewDataErrorEventArgs.cs
- SqlCacheDependencyDatabaseCollection.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- _ListenerResponseStream.cs
- RequestTimeoutManager.cs
- JsonClassDataContract.cs
- DBBindings.cs
- RelationshipNavigation.cs
- ScrollBar.cs
- TogglePatternIdentifiers.cs
- SimpleFileLog.cs
- DbgCompiler.cs
- SubtreeProcessor.cs
- X509Extension.cs
- TextEncodedRawTextWriter.cs
- EntityTransaction.cs
- CharAnimationBase.cs
- EncryptedHeader.cs
- QuaternionConverter.cs
- DescendantQuery.cs
- TextEmbeddedObject.cs
- FileIOPermission.cs
- altserialization.cs
- RightsManagementPermission.cs
- PromptStyle.cs
- ApplicationManager.cs
- FilterInvalidBodyAccessException.cs
- CompressionTracing.cs
- ProcessHost.cs
- PropertyFilter.cs
- DataGridViewSelectedRowCollection.cs
- BamlRecordHelper.cs
- Content.cs
- NetWebProxyFinder.cs
- InvalidCommandTreeException.cs
- PartialTrustVisibleAssembly.cs
- XmlCharacterData.cs
- WaitHandle.cs
- LongValidatorAttribute.cs
- SqlProfileProvider.cs
- EventLogPermissionAttribute.cs