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
- TagMapCollection.cs
- ResourceProperty.cs
- DBNull.cs
- TemplateKeyConverter.cs
- CanonicalXml.cs
- SoapReflector.cs
- WindowsListView.cs
- WebCategoryAttribute.cs
- BitmapEffectOutputConnector.cs
- GACMembershipCondition.cs
- Zone.cs
- CanExecuteRoutedEventArgs.cs
- XPathCompileException.cs
- XPathDocumentBuilder.cs
- ControlBuilderAttribute.cs
- TextEditor.cs
- UTF7Encoding.cs
- IDReferencePropertyAttribute.cs
- HttpClientChannel.cs
- ScrollViewer.cs
- DispatcherTimer.cs
- HitTestResult.cs
- DecimalAnimation.cs
- input.cs
- DataGridLinkButton.cs
- FastEncoderWindow.cs
- ViewSimplifier.cs
- MemberRelationshipService.cs
- AuthenticationModuleElement.cs
- objectquery_tresulttype.cs
- FixedLineResult.cs
- StringFreezingAttribute.cs
- DescriptionAttribute.cs
- TextTreeTextBlock.cs
- DocumentViewerHelper.cs
- HtmlTableRow.cs
- WebScriptMetadataFormatter.cs
- BaseServiceProvider.cs
- XmlTextEncoder.cs
- TabPage.cs
- PrincipalPermission.cs
- RsaEndpointIdentity.cs
- GuidelineSet.cs
- FormView.cs
- ItemCheckedEvent.cs
- XslVisitor.cs
- DataRowComparer.cs
- CodeAttachEventStatement.cs
- UnsafeNativeMethods.cs
- AsyncResult.cs
- SecurityElement.cs
- HttpRequestTraceRecord.cs
- CommandBinding.cs
- DataTableMapping.cs
- XmlNamespaceDeclarationsAttribute.cs
- OuterGlowBitmapEffect.cs
- PerfService.cs
- XmlElement.cs
- ImageClickEventArgs.cs
- EntityDataSourceValidationException.cs
- DocumentReferenceCollection.cs
- ContentIterators.cs
- cookiecollection.cs
- KoreanCalendar.cs
- XXXOnTypeBuilderInstantiation.cs
- Vector3dCollection.cs
- HeaderUtility.cs
- CryptoConfig.cs
- CustomTypeDescriptor.cs
- ApplicationSettingsBase.cs
- DesignerAdRotatorAdapter.cs
- ColumnWidthChangedEvent.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- FileDetails.cs
- COM2PictureConverter.cs
- AppearanceEditorPart.cs
- LinkArea.cs
- SudsParser.cs
- DirectoryGroupQuery.cs
- SslStream.cs
- ControllableStoryboardAction.cs
- COAUTHINFO.cs
- ToolStripPanelRow.cs
- FixedHighlight.cs
- DataSourceHelper.cs
- StylusButtonEventArgs.cs
- XmlLangPropertyAttribute.cs
- SoapFault.cs
- AutomationProperty.cs
- Automation.cs
- ConnectionPointCookie.cs
- DataObjectEventArgs.cs
- CompilerError.cs
- TryCatch.cs
- PathData.cs
- ExceptQueryOperator.cs
- ISO2022Encoding.cs
- StoreAnnotationsMap.cs
- OutputCacheSettingsSection.cs
- DnsPermission.cs