Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / Controls / Primitives / CustomPopupPlacement.cs / 1 / CustomPopupPlacement.cs
using System; namespace System.Windows.Controls.Primitives { ////// Describes where a popup should be placed on screen. /// public struct CustomPopupPlacement { ////// Constructor /// /// Assigns to Point /// Assigns to PrimaryAxis public CustomPopupPlacement(Point point, PopupPrimaryAxis primaryAxis) { _point = point; _primaryAxis = primaryAxis; } ////// The point, relative to the PlacementTarget, where the upper left corner of the Popup should be. /// public Point Point { get { return _point; } set { _point = value; } } ////// The primary axis of the popup that will be used for nudging on-screen. /// public PopupPrimaryAxis PrimaryAxis { get { return _primaryAxis; } set { _primaryAxis = value; } } ////// Compares the value of two CustomPopupPlacement structs for equality. /// /// The first value. /// The second value. ///public static bool operator==(CustomPopupPlacement placement1, CustomPopupPlacement placement2) { return placement1.Equals(placement2); } /// /// Compares the value of two CustomPopupPlacement structs for inequality. /// /// The first value. /// The second value. ///public static bool operator !=(CustomPopupPlacement placement1, CustomPopupPlacement placement2) { return !placement1.Equals(placement2); } /// /// Compares the value of this struct with another object. /// /// An object to compare to. ///True if equivalent. False otherwise. public override bool Equals(object o) { if (o is CustomPopupPlacement) { CustomPopupPlacement placement = (CustomPopupPlacement)o; return (placement._primaryAxis == _primaryAxis) && (placement._point == _point); } return false; } ////// Hash function for this type. /// ///A hash code for this struct. public override int GetHashCode() { return _primaryAxis.GetHashCode() ^ _point.GetHashCode(); } private Point _point; private PopupPrimaryAxis _primaryAxis; } } // 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
- WebBrowserSiteBase.cs
- Dynamic.cs
- RoleService.cs
- RootDesignerSerializerAttribute.cs
- QuaternionValueSerializer.cs
- IndexedGlyphRun.cs
- WindowsEditBoxRange.cs
- DataGridItemAutomationPeer.cs
- NullExtension.cs
- HostedHttpRequestAsyncResult.cs
- RectangleF.cs
- ArraySubsetEnumerator.cs
- WebPartCatalogCloseVerb.cs
- DummyDataSource.cs
- AsymmetricKeyExchangeFormatter.cs
- Timeline.cs
- SafeViewOfFileHandle.cs
- BamlVersionHeader.cs
- SharedHttpTransportManager.cs
- HostProtectionException.cs
- CmsInterop.cs
- DesignerTransaction.cs
- SiteMapNode.cs
- FixedSOMTableCell.cs
- FixedPageProcessor.cs
- ExpressionBuilderCollection.cs
- RepeatBehavior.cs
- Nullable.cs
- DrawingImage.cs
- ShaderEffect.cs
- AssemblyBuilder.cs
- MimeObjectFactory.cs
- DataGridViewIntLinkedList.cs
- PreProcessor.cs
- DebuggerAttributes.cs
- CompilerGeneratedAttribute.cs
- NamedObject.cs
- SoapObjectWriter.cs
- MetadataCacheItem.cs
- ViewManagerAttribute.cs
- LinqDataSourceSelectEventArgs.cs
- ToolboxDataAttribute.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ImageButton.cs
- CompositeCollection.cs
- ColorContext.cs
- HtmlInputRadioButton.cs
- SQLDoubleStorage.cs
- ValueTable.cs
- EnumBuilder.cs
- SessionStateItemCollection.cs
- BinaryObjectReader.cs
- SqlBuilder.cs
- DropTarget.cs
- path.cs
- SourceInterpreter.cs
- InputScope.cs
- SqlDataReader.cs
- ExtenderHelpers.cs
- Panel.cs
- CSharpCodeProvider.cs
- SQLGuidStorage.cs
- FullTextLine.cs
- EntityClientCacheEntry.cs
- MatrixUtil.cs
- SQLDoubleStorage.cs
- CreateUserWizardStep.cs
- _ChunkParse.cs
- NumericUpDownAcceleration.cs
- BitArray.cs
- ClientApiGenerator.cs
- XPathNodeIterator.cs
- TextViewSelectionProcessor.cs
- DocumentOrderQuery.cs
- CodeNamespaceImportCollection.cs
- SecondaryIndex.cs
- safemediahandle.cs
- TransactionsSectionGroup.cs
- WebPartZoneBase.cs
- RowSpanVector.cs
- UIElementCollection.cs
- XamlVector3DCollectionSerializer.cs
- MenuEventArgs.cs
- DriveInfo.cs
- CompressionTransform.cs
- SqlDataSourceConnectionPanel.cs
- EncoderExceptionFallback.cs
- UrlMappingsModule.cs
- FacetChecker.cs
- HtmlImageAdapter.cs
- DbBuffer.cs
- LinearKeyFrames.cs
- DbgUtil.cs
- HostVisual.cs
- TrackingMemoryStream.cs
- SchemaLookupTable.cs
- DataGridTablesFactory.cs
- ValidatorCompatibilityHelper.cs
- FixedPageAutomationPeer.cs
- processwaithandle.cs