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
- GraphicsPathIterator.cs
- WebServiceEnumData.cs
- PointValueSerializer.cs
- ExceptionValidationRule.cs
- TypeDescriptor.cs
- StylusPlugInCollection.cs
- CompressedStack.cs
- DependencyObject.cs
- CurrentChangedEventManager.cs
- ValidationError.cs
- XmlSiteMapProvider.cs
- AQNBuilder.cs
- WorkerRequest.cs
- HwndPanningFeedback.cs
- SmtpDateTime.cs
- _ProxyRegBlob.cs
- SecurityDocument.cs
- PageCodeDomTreeGenerator.cs
- Sentence.cs
- DataViewListener.cs
- NativeMethods.cs
- DataSourceControlBuilder.cs
- lengthconverter.cs
- AnimationTimeline.cs
- Transform.cs
- LinqDataSourceUpdateEventArgs.cs
- _NestedSingleAsyncResult.cs
- ArraySegment.cs
- IndexerNameAttribute.cs
- SvcMapFileSerializer.cs
- PeerDefaultCustomResolverClient.cs
- TextElementEnumerator.cs
- TdsParserStateObject.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- CurrencyManager.cs
- ProfileInfo.cs
- IgnoreFileBuildProvider.cs
- HostedElements.cs
- SqlBulkCopy.cs
- EtwTrace.cs
- WebPartEditVerb.cs
- XmlReader.cs
- BooleanAnimationUsingKeyFrames.cs
- Int32Rect.cs
- XmlWellformedWriter.cs
- VirtualPathProvider.cs
- WebPartZoneDesigner.cs
- Rectangle.cs
- shaperfactoryquerycacheentry.cs
- CompensatableTransactionScopeActivity.cs
- QilName.cs
- TypeSemantics.cs
- _PooledStream.cs
- ISessionStateStore.cs
- AuthStoreRoleProvider.cs
- WhiteSpaceTrimStringConverter.cs
- TargetControlTypeCache.cs
- DiscoveryDocument.cs
- ClipboardProcessor.cs
- Module.cs
- FormatConvertedBitmap.cs
- TdsParserStaticMethods.cs
- SafeCryptContextHandle.cs
- AuthenticateEventArgs.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SqlComparer.cs
- DispatcherSynchronizationContext.cs
- ChangeBlockUndoRecord.cs
- DataTemplateKey.cs
- COM2EnumConverter.cs
- WmlTextViewAdapter.cs
- LazyTextWriterCreator.cs
- IdleTimeoutMonitor.cs
- MsmqDecodeHelper.cs
- PrivilegeNotHeldException.cs
- ResourcesBuildProvider.cs
- SQLDouble.cs
- EntityDataSourceChangedEventArgs.cs
- ListControlConvertEventArgs.cs
- GenerateScriptTypeAttribute.cs
- CacheDependency.cs
- TraceContextRecord.cs
- FixedFlowMap.cs
- ZipIOLocalFileHeader.cs
- MemberJoinTreeNode.cs
- TemplateControlCodeDomTreeGenerator.cs
- UncommonField.cs
- ArrayWithOffset.cs
- DataGridPagerStyle.cs
- Rotation3D.cs
- InternalTypeHelper.cs
- BamlRecordReader.cs
- DbParameterCollectionHelper.cs
- ConfigurationConverterBase.cs
- ListViewDeletedEventArgs.cs
- DbModificationClause.cs
- DocumentReference.cs
- DbConnectionOptions.cs
- SqlMethodCallConverter.cs
- sortedlist.cs