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
- HelpInfo.cs
- Dispatcher.cs
- SafeRightsManagementSessionHandle.cs
- MatrixTransform.cs
- NetworkAddressChange.cs
- AdRotator.cs
- SHA384.cs
- JoinGraph.cs
- XmlDocumentFragment.cs
- WebServiceParameterData.cs
- DynamicHyperLink.cs
- TokenBasedSet.cs
- ViewGenerator.cs
- UriTemplateMatchException.cs
- ZipFileInfoCollection.cs
- TextBlockAutomationPeer.cs
- SQLStringStorage.cs
- infer.cs
- ListViewUpdateEventArgs.cs
- IPCCacheManager.cs
- TypeBuilderInstantiation.cs
- ExpressionDumper.cs
- Int64AnimationBase.cs
- WebPartDisplayMode.cs
- TextEditorParagraphs.cs
- PenThreadPool.cs
- HtmlForm.cs
- DynamicObjectAccessor.cs
- ArrayWithOffset.cs
- KeyedQueue.cs
- SettingsPropertyWrongTypeException.cs
- HostedImpersonationContext.cs
- SignatureHelper.cs
- ComponentDispatcher.cs
- streamingZipPartStream.cs
- AnnotationResourceCollection.cs
- TrustLevelCollection.cs
- NavigatorInput.cs
- CompiledQuery.cs
- TextTreePropertyUndoUnit.cs
- Int16Animation.cs
- ItemCheckEvent.cs
- MasterPageCodeDomTreeGenerator.cs
- QilList.cs
- SqlCacheDependencyDatabaseCollection.cs
- DataGridViewTextBoxEditingControl.cs
- ConnectAlgorithms.cs
- SiteMapDataSourceView.cs
- DocumentApplication.cs
- PersonalizationStateInfoCollection.cs
- TextPointerBase.cs
- HttpContext.cs
- DescendentsWalker.cs
- Win32Exception.cs
- LeftCellWrapper.cs
- WriteTimeStream.cs
- Attachment.cs
- TextCompositionEventArgs.cs
- PriorityQueue.cs
- SmiEventSink_DeferedProcessing.cs
- ReferencedCategoriesDocument.cs
- Sql8ExpressionRewriter.cs
- SmtpSection.cs
- Binding.cs
- TimeoutConverter.cs
- AssociationSet.cs
- AttachmentService.cs
- CacheModeConverter.cs
- DeploymentExceptionMapper.cs
- XmlNullResolver.cs
- Vector3DCollectionConverter.cs
- LinkConverter.cs
- AccessDataSourceView.cs
- CodeDomExtensionMethods.cs
- SafeArrayRankMismatchException.cs
- ConfigXmlWhitespace.cs
- FileLevelControlBuilderAttribute.cs
- AdCreatedEventArgs.cs
- TraceHwndHost.cs
- StubHelpers.cs
- AutomationPatternInfo.cs
- LoginCancelEventArgs.cs
- MappedMetaModel.cs
- CharEnumerator.cs
- EDesignUtil.cs
- SchemaImporter.cs
- ComboBox.cs
- TemplatedMailWebEventProvider.cs
- ScriptDescriptor.cs
- RectangleGeometry.cs
- NumericUpDownAcceleration.cs
- PolyLineSegment.cs
- IntPtr.cs
- ADMembershipUser.cs
- MoveSizeWinEventHandler.cs
- CapabilitiesUse.cs
- KoreanCalendar.cs
- GenericTypeParameterConverter.cs
- XmlWriter.cs
- WorkflowRuntime.cs