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
- QilLiteral.cs
- ListenerPerfCounters.cs
- Duration.cs
- Publisher.cs
- RegisteredDisposeScript.cs
- BindingOperations.cs
- PathGeometry.cs
- mda.cs
- HScrollBar.cs
- ModuleBuilder.cs
- SignatureToken.cs
- SQLMoneyStorage.cs
- RegexCompilationInfo.cs
- AdornerDecorator.cs
- ColorConvertedBitmapExtension.cs
- EventWaitHandle.cs
- GPPOINTF.cs
- Encoding.cs
- SimplePropertyEntry.cs
- ExtractorMetadata.cs
- SimpleType.cs
- Object.cs
- SatelliteContractVersionAttribute.cs
- Roles.cs
- SapiRecoInterop.cs
- GridPattern.cs
- DataGridToolTip.cs
- OrderedDictionary.cs
- PageRanges.cs
- WebBrowsableAttribute.cs
- AssemblyAttributes.cs
- AxParameterData.cs
- EnumerableRowCollection.cs
- GeometryCollection.cs
- HttpCachePolicy.cs
- ConsoleKeyInfo.cs
- WindowAutomationPeer.cs
- PlatformNotSupportedException.cs
- ObjectStateEntry.cs
- RawTextInputReport.cs
- LoaderAllocator.cs
- EndOfStreamException.cs
- WindowsServiceElement.cs
- PlacementWorkspace.cs
- ButtonStandardAdapter.cs
- UserControl.cs
- XmlCharType.cs
- Columns.cs
- SynchronousChannelMergeEnumerator.cs
- ISO2022Encoding.cs
- JpegBitmapEncoder.cs
- Model3D.cs
- BufferedWebEventProvider.cs
- KnownColorTable.cs
- AxisAngleRotation3D.cs
- TreeWalkHelper.cs
- MenuStrip.cs
- ISO2022Encoding.cs
- StringFormat.cs
- RequestCachePolicy.cs
- DataGridAddNewRow.cs
- ExpandableObjectConverter.cs
- RegisteredDisposeScript.cs
- DeferredReference.cs
- HtmlForm.cs
- GridViewRow.cs
- XmlSchemaSubstitutionGroup.cs
- BookmarkScopeManager.cs
- _UriTypeConverter.cs
- ToolStripPanelRenderEventArgs.cs
- ValidationException.cs
- IndentedTextWriter.cs
- KeySplineConverter.cs
- DataSetUtil.cs
- StateMachine.cs
- DataGridParentRows.cs
- ViewStateChangedEventArgs.cs
- ArcSegment.cs
- DependencyPropertyKey.cs
- TableLayoutRowStyleCollection.cs
- HttpApplication.cs
- VisemeEventArgs.cs
- HtmlInputSubmit.cs
- FileAuthorizationModule.cs
- RegexCompilationInfo.cs
- HttpCapabilitiesSectionHandler.cs
- CharAnimationBase.cs
- BoundPropertyEntry.cs
- RepeatInfo.cs
- PageTheme.cs
- Pair.cs
- CompositeControl.cs
- SignatureToken.cs
- WindowsRichEditRange.cs
- InvokeMethodActivity.cs
- DetailsViewInsertEventArgs.cs
- MembershipPasswordException.cs
- FixedTextView.cs
- RtfFormatStack.cs
- Attributes.cs