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
- DataObjectEventArgs.cs
- sqlnorm.cs
- CategoryValueConverter.cs
- DataBoundControlHelper.cs
- ProjectionPlan.cs
- ConsumerConnectionPoint.cs
- RegexMatchCollection.cs
- NetNamedPipeBinding.cs
- TextEvent.cs
- UnsafePeerToPeerMethods.cs
- RadioButtonFlatAdapter.cs
- DeclarationUpdate.cs
- HelpKeywordAttribute.cs
- ClrPerspective.cs
- Normalization.cs
- ContainerUIElement3D.cs
- XmlNodeChangedEventArgs.cs
- CellParaClient.cs
- ConnectionInterfaceCollection.cs
- OverrideMode.cs
- MessageVersionConverter.cs
- ManualResetEvent.cs
- GroupBox.cs
- Button.cs
- ContextMenu.cs
- SerializableAttribute.cs
- Asn1IntegerConverter.cs
- PropertyChangeTracker.cs
- ConstraintStruct.cs
- ObjectDataSource.cs
- EdmProperty.cs
- XPathSingletonIterator.cs
- WizardPanel.cs
- DrawingContextWalker.cs
- log.cs
- HtmlValidatorAdapter.cs
- SettingsProperty.cs
- X509WindowsSecurityToken.cs
- SystemIPGlobalProperties.cs
- InsufficientExecutionStackException.cs
- ArgIterator.cs
- PartManifestEntry.cs
- XmlSchemaObjectTable.cs
- ScrollBar.cs
- Size3DConverter.cs
- HandleExceptionArgs.cs
- RoleManagerModule.cs
- OdbcInfoMessageEvent.cs
- RoutedEventArgs.cs
- VBCodeProvider.cs
- CollectionChange.cs
- SizeValueSerializer.cs
- JoinTreeNode.cs
- DefaultHttpHandler.cs
- DateTimePickerDesigner.cs
- DesignerCategoryAttribute.cs
- AnimationLayer.cs
- Transform.cs
- WebContext.cs
- ExpressionLexer.cs
- Label.cs
- SafeEventLogWriteHandle.cs
- OraclePermissionAttribute.cs
- FixedTextSelectionProcessor.cs
- DrawingAttributesDefaultValueFactory.cs
- IISMapPath.cs
- TabItem.cs
- ContractNamespaceAttribute.cs
- Rectangle.cs
- SmtpFailedRecipientException.cs
- WinInetCache.cs
- RequestCachePolicyConverter.cs
- DataGridViewCellValidatingEventArgs.cs
- MetadataWorkspace.cs
- BinaryParser.cs
- ReachVisualSerializer.cs
- EnumValidator.cs
- ErrorWebPart.cs
- UnorderedHashRepartitionStream.cs
- DropSourceBehavior.cs
- BasicDesignerLoader.cs
- BindingSourceDesigner.cs
- XmlException.cs
- TextBoxAutomationPeer.cs
- TraceEventCache.cs
- StylusPointPropertyInfoDefaults.cs
- IteratorFilter.cs
- RowUpdatedEventArgs.cs
- PageCatalogPart.cs
- ScriptingWebServicesSectionGroup.cs
- LinqTreeNodeEvaluator.cs
- CodeLinePragma.cs
- TypeConverter.cs
- ImageBrush.cs
- SiteMapProvider.cs
- XmlIncludeAttribute.cs
- DebugView.cs
- SelectorItemAutomationPeer.cs
- DataServices.cs
- EventTrigger.cs