Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- FtpWebRequest.cs
- GradientStop.cs
- XPathBuilder.cs
- ProxyAttribute.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- XmlSerializationWriter.cs
- _DigestClient.cs
- GetMemberBinder.cs
- CredentialCache.cs
- ErasingStroke.cs
- DynamicPropertyHolder.cs
- ResourceWriter.cs
- TextComposition.cs
- AsyncOperation.cs
- RoutedUICommand.cs
- EntityTypeBase.cs
- LinearQuaternionKeyFrame.cs
- RequestFactory.cs
- InternalCache.cs
- StateItem.cs
- DataPagerFieldItem.cs
- DynamicUpdateCommand.cs
- MruCache.cs
- SeekableReadStream.cs
- PointHitTestParameters.cs
- ColorConvertedBitmapExtension.cs
- ContentPropertyAttribute.cs
- CursorConverter.cs
- AutoGeneratedField.cs
- StringBlob.cs
- TextUtf8RawTextWriter.cs
- KernelTypeValidation.cs
- HostedBindingBehavior.cs
- DetailsViewPagerRow.cs
- SharedStatics.cs
- ShowExpandedMultiValueConverter.cs
- SessionPageStatePersister.cs
- ServicePoint.cs
- FilteredDataSetHelper.cs
- EventProviderBase.cs
- DefaultTextStoreTextComposition.cs
- TraceSection.cs
- _UriTypeConverter.cs
- WMIInterop.cs
- SqlBuilder.cs
- SimpleRecyclingCache.cs
- ElapsedEventArgs.cs
- RoleManagerSection.cs
- DataColumn.cs
- SmtpException.cs
- ResourceLoader.cs
- Page.cs
- UiaCoreProviderApi.cs
- StylusButton.cs
- UserNameSecurityTokenProvider.cs
- Function.cs
- mediapermission.cs
- Compensate.cs
- ConnectorRouter.cs
- PageSettings.cs
- SqlBuilder.cs
- FrameDimension.cs
- TextTreeRootNode.cs
- ListMarkerLine.cs
- PKCS1MaskGenerationMethod.cs
- ContractNamespaceAttribute.cs
- IPAddress.cs
- OutputCacheSettings.cs
- CommandValueSerializer.cs
- StateRuntime.cs
- MethodToken.cs
- safex509handles.cs
- CustomBinding.cs
- CodeEntryPointMethod.cs
- XmlRawWriter.cs
- WSSecurityPolicy12.cs
- TileModeValidation.cs
- FunctionDetailsReader.cs
- MenuItemStyleCollection.cs
- EmptyStringExpandableObjectConverter.cs
- DataGridColumn.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- WinFormsSpinner.cs
- BoundField.cs
- MultiPropertyDescriptorGridEntry.cs
- XmlSchemaObjectCollection.cs
- SessionPageStateSection.cs
- ExpressionBindings.cs
- WorkingDirectoryEditor.cs
- SByteStorage.cs
- ServerIdentity.cs
- FtpWebResponse.cs
- RepeaterItemCollection.cs
- HtmlInputFile.cs
- InternalResources.cs
- oledbconnectionstring.cs
- ArrayWithOffset.cs
- CompensationDesigner.cs
- XsltLoader.cs
- WebPartConnectionsEventArgs.cs