Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Controls / Primitives / CustomPopupPlacement.cs / 1305600 / 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
- DbDataAdapter.cs
- Suspend.cs
- CodeTypeParameter.cs
- DomainUpDown.cs
- _IPv4Address.cs
- PageContentCollection.cs
- PersistenceTypeAttribute.cs
- WhitespaceSignificantCollectionAttribute.cs
- HashAlgorithm.cs
- PriorityQueue.cs
- TextParagraphCache.cs
- IntSecurity.cs
- BitmapEffectInput.cs
- DynamicValidatorEventArgs.cs
- DesignTimeTemplateParser.cs
- RenderCapability.cs
- SystemIcmpV6Statistics.cs
- JapaneseCalendar.cs
- DataGridViewTextBoxCell.cs
- WS2007FederationHttpBinding.cs
- WebPartZoneBaseDesigner.cs
- AdapterUtil.cs
- Simplifier.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- MemberRestriction.cs
- ClockController.cs
- XmlReaderSettings.cs
- SqlBulkCopyColumnMappingCollection.cs
- GZipDecoder.cs
- Stream.cs
- IncrementalHitTester.cs
- RenderingEventArgs.cs
- TextTreeTextNode.cs
- Wildcard.cs
- PropertyMappingExceptionEventArgs.cs
- ECDiffieHellmanCng.cs
- Message.cs
- SystemIPInterfaceStatistics.cs
- Point3DCollection.cs
- LiteralControl.cs
- WindowInteractionStateTracker.cs
- StorageTypeMapping.cs
- SynchronizationLockException.cs
- PeerPresenceInfo.cs
- DataGridViewColumnHeaderCell.cs
- grammarelement.cs
- Model3D.cs
- CommandEventArgs.cs
- Ref.cs
- FileLevelControlBuilderAttribute.cs
- HtmlPanelAdapter.cs
- DockingAttribute.cs
- OleDbErrorCollection.cs
- RSAPKCS1KeyExchangeFormatter.cs
- PropertyChangedEventArgs.cs
- PageClientProxyGenerator.cs
- GridViewColumnHeaderAutomationPeer.cs
- ResourcePermissionBaseEntry.cs
- ClientProxyGenerator.cs
- AdornedElementPlaceholder.cs
- CodeGotoStatement.cs
- Int64KeyFrameCollection.cs
- DefaultEvaluationContext.cs
- Style.cs
- SignatureToken.cs
- MeasureItemEvent.cs
- MergeEnumerator.cs
- ConstraintStruct.cs
- SqlFunctionAttribute.cs
- CategoryNameCollection.cs
- CommandValueSerializer.cs
- RectValueSerializer.cs
- CodeAttributeArgumentCollection.cs
- XmlSignatureProperties.cs
- XhtmlConformanceSection.cs
- ColumnMapTranslator.cs
- PermissionSetEnumerator.cs
- LogicalChannel.cs
- GroupDescription.cs
- ReadOnlyDictionary.cs
- DefaultTextStoreTextComposition.cs
- RelatedEnd.cs
- HitTestDrawingContextWalker.cs
- DataBindingExpressionBuilder.cs
- StringStorage.cs
- WindowsSecurityToken.cs
- UserControlParser.cs
- figurelength.cs
- ValidatingReaderNodeData.cs
- HttpWebResponse.cs
- TextTabProperties.cs
- RelationshipWrapper.cs
- PropertyInfoSet.cs
- ByteStreamGeometryContext.cs
- RMEnrollmentPage2.cs
- PageVisual.cs
- SuppressMessageAttribute.cs
- PostBackTrigger.cs
- CustomErrorsSection.cs
- NotifyInputEventArgs.cs