Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Automation / Peers / GridSplitterAutomationPeer.cs / 1 / GridSplitterAutomationPeer.cs
using System; using System.Runtime.InteropServices; using System.Security; using System.Text; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class GridSplitterAutomationPeer : ThumbAutomationPeer, ITransformProvider { /// public GridSplitterAutomationPeer(GridSplitter owner): base(owner) {} /// override protected string GetClassNameCore() { return "GridSplitter"; } /// override public object GetPattern(PatternInterface patternInterface) { if (patternInterface == PatternInterface.Transform) return this; return null; } #region ITransformProvider bool ITransformProvider.CanMove { get { return true; } } bool ITransformProvider.CanResize { get { return false; } } bool ITransformProvider.CanRotate { get { return false; } } void ITransformProvider.Move(double x, double y) { if (!IsEnabled()) throw new ElementNotEnabledException(); if (double.IsInfinity(x) || double.IsNaN(x)) throw new ArgumentOutOfRangeException("x"); if (double.IsInfinity(y) || double.IsNaN(y)) throw new ArgumentOutOfRangeException("y"); ((GridSplitter)Owner).KeyboardMoveSplitter(x, y); } void ITransformProvider.Resize(double width, double height) { throw new InvalidOperationException(SR.Get(SRID.UIA_OperationCannotBePerformed)); } void ITransformProvider.Rotate(double degrees) { throw new InvalidOperationException(SR.Get(SRID.UIA_OperationCannotBePerformed)); } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Runtime.InteropServices; using System.Security; using System.Text; using System.Windows; using System.Windows.Automation.Provider; using System.Windows.Controls; using System.Windows.Controls.Primitives; using System.Windows.Interop; using System.Windows.Media; using MS.Internal; using MS.Win32; namespace System.Windows.Automation.Peers { /// public class GridSplitterAutomationPeer : ThumbAutomationPeer, ITransformProvider { /// public GridSplitterAutomationPeer(GridSplitter owner): base(owner) {} /// override protected string GetClassNameCore() { return "GridSplitter"; } /// override public object GetPattern(PatternInterface patternInterface) { if (patternInterface == PatternInterface.Transform) return this; return null; } #region ITransformProvider bool ITransformProvider.CanMove { get { return true; } } bool ITransformProvider.CanResize { get { return false; } } bool ITransformProvider.CanRotate { get { return false; } } void ITransformProvider.Move(double x, double y) { if (!IsEnabled()) throw new ElementNotEnabledException(); if (double.IsInfinity(x) || double.IsNaN(x)) throw new ArgumentOutOfRangeException("x"); if (double.IsInfinity(y) || double.IsNaN(y)) throw new ArgumentOutOfRangeException("y"); ((GridSplitter)Owner).KeyboardMoveSplitter(x, y); } void ITransformProvider.Resize(double width, double height) { throw new InvalidOperationException(SR.Get(SRID.UIA_OperationCannotBePerformed)); } void ITransformProvider.Rotate(double degrees) { throw new InvalidOperationException(SR.Get(SRID.UIA_OperationCannotBePerformed)); } #endregion } } // 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
- XhtmlConformanceSection.cs
- HeaderCollection.cs
- MatrixAnimationUsingPath.cs
- MimeAnyImporter.cs
- UnsafeNativeMethods.cs
- DesignColumn.cs
- ServicesUtilities.cs
- StaticSiteMapProvider.cs
- WebPartManagerInternals.cs
- OptimalBreakSession.cs
- TextServicesHost.cs
- IArgumentProvider.cs
- dataprotectionpermission.cs
- SqlCommandSet.cs
- AnimatedTypeHelpers.cs
- Size3DConverter.cs
- RenderData.cs
- OrderedHashRepartitionStream.cs
- PropertyGridEditorPart.cs
- CopyNamespacesAction.cs
- __ConsoleStream.cs
- PropertyStore.cs
- ConfigurationSchemaErrors.cs
- FileUtil.cs
- SequentialOutput.cs
- WSHttpBindingCollectionElement.cs
- SymLanguageVendor.cs
- MessageContractMemberAttribute.cs
- SqlServer2KCompatibilityCheck.cs
- TextDecoration.cs
- MessageQueueCriteria.cs
- ExtensibleClassFactory.cs
- RegistryPermission.cs
- TextFormatterHost.cs
- DataGridViewCellStyle.cs
- WMIInterop.cs
- _FtpDataStream.cs
- Padding.cs
- DbXmlEnabledProviderManifest.cs
- PolicyDesigner.cs
- CLSCompliantAttribute.cs
- SoapReflectionImporter.cs
- DropDownButton.cs
- NavigationProgressEventArgs.cs
- SpAudioStreamWrapper.cs
- DataGridColumnHeaderAutomationPeer.cs
- BufferedWebEventProvider.cs
- XPathNodeIterator.cs
- NavigatorOutput.cs
- CompareValidator.cs
- HtmlUtf8RawTextWriter.cs
- SmtpMail.cs
- sqlser.cs
- WorkflowRuntimeServiceElementCollection.cs
- BuildDependencySet.cs
- CollectionView.cs
- QilLoop.cs
- MemberBinding.cs
- XmlSchemaSimpleContent.cs
- DecoderFallback.cs
- StorageMappingFragment.cs
- TextModifierScope.cs
- Gdiplus.cs
- InvokeMemberBinder.cs
- SettingsPropertyValueCollection.cs
- LinqDataSourceInsertEventArgs.cs
- NameSpaceExtractor.cs
- ApplicationDirectoryMembershipCondition.cs
- SortExpressionBuilder.cs
- SQLByte.cs
- HMACMD5.cs
- MdbDataFileEditor.cs
- AmbiguousMatchException.cs
- _AutoWebProxyScriptWrapper.cs
- DataFormat.cs
- DateTimeOffsetStorage.cs
- StringAnimationBase.cs
- LineServicesCallbacks.cs
- EventLogLink.cs
- Int32CAMarshaler.cs
- TextBox.cs
- HttpCapabilitiesBase.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- WorkflowWebHostingModule.cs
- HttpCachePolicyElement.cs
- CounterSampleCalculator.cs
- QilReference.cs
- PeerNameRegistration.cs
- WebBrowser.cs
- ProviderIncompatibleException.cs
- Content.cs
- DataService.cs
- FormsAuthenticationCredentials.cs
- XmlSchemaGroup.cs
- ConnectionStringsSection.cs
- SecurityAccessDeniedException.cs
- ScaleTransform.cs
- CompositeDataBoundControl.cs
- CodeDelegateInvokeExpression.cs
- SchemaNames.cs