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
- ProtocolsConfigurationHandler.cs
- WCFModelStrings.Designer.cs
- CurrencyWrapper.cs
- DeferredElementTreeState.cs
- ServiceHttpModule.cs
- SerializableReadOnlyDictionary.cs
- DynamicQueryStringParameter.cs
- DataBindingCollection.cs
- APCustomTypeDescriptor.cs
- DesignBindingPropertyDescriptor.cs
- LocatorPartList.cs
- COM2Enum.cs
- StringReader.cs
- versioninfo.cs
- OpenTypeLayout.cs
- ScriptingJsonSerializationSection.cs
- KnownColorTable.cs
- UriSection.cs
- MissingSatelliteAssemblyException.cs
- SwitchElementsCollection.cs
- HostedElements.cs
- DoubleUtil.cs
- AnnotationHighlightLayer.cs
- PropertyInfoSet.cs
- UserNameSecurityTokenAuthenticator.cs
- RawStylusInputCustomDataList.cs
- LicenseManager.cs
- BasicSecurityProfileVersion.cs
- HitTestWithPointDrawingContextWalker.cs
- DesignTimeType.cs
- CustomLineCap.cs
- XmlSchemaGroup.cs
- SmtpNetworkElement.cs
- SpellerError.cs
- ImageCreator.cs
- __Filters.cs
- FlowchartDesigner.Helpers.cs
- SchemaConstraints.cs
- SoapAttributeOverrides.cs
- ConfigurationPropertyCollection.cs
- IDReferencePropertyAttribute.cs
- ButtonColumn.cs
- RbTree.cs
- LineSegment.cs
- listitem.cs
- XmlWrappingWriter.cs
- x509store.cs
- KeyboardEventArgs.cs
- MappingSource.cs
- DbParameterCollection.cs
- MobileCapabilities.cs
- TypeSystemProvider.cs
- DataGridAddNewRow.cs
- DefaultSettingsSection.cs
- Transform.cs
- ApplicationInfo.cs
- EditorResources.cs
- InfiniteTimeSpanConverter.cs
- ImageListStreamer.cs
- EllipseGeometry.cs
- ByteStack.cs
- _NegoState.cs
- HttpFileCollection.cs
- LinearGradientBrush.cs
- StylusButtonCollection.cs
- MemberHolder.cs
- ToolTip.cs
- XamlStream.cs
- DetailsViewPageEventArgs.cs
- LogicalExpr.cs
- ExtensionSimplifierMarkupObject.cs
- RegexCaptureCollection.cs
- FormattedText.cs
- PngBitmapDecoder.cs
- GridLength.cs
- ServiceAuthorizationManager.cs
- ColumnClickEvent.cs
- InfoCardSchemas.cs
- NoClickablePointException.cs
- NetCodeGroup.cs
- MILUtilities.cs
- DocumentViewerBaseAutomationPeer.cs
- FixedSOMFixedBlock.cs
- EventKeyword.cs
- EventsTab.cs
- XmlNavigatorStack.cs
- WindowsListBox.cs
- DesignerProperties.cs
- Gdiplus.cs
- WindowsComboBox.cs
- ChannelManager.cs
- ObjectView.cs
- ColorDialog.cs
- FileUpload.cs
- BaseParser.cs
- MostlySingletonList.cs
- ConnectionProviderAttribute.cs
- AccessControlList.cs
- DataGridViewElement.cs
- DefaultPropertyAttribute.cs