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
- OutputWindow.cs
- MexHttpsBindingCollectionElement.cs
- ToolStripLabel.cs
- FlowDecisionLabelFeature.cs
- X509ThumbprintKeyIdentifierClause.cs
- BinaryConverter.cs
- MarkerProperties.cs
- Message.cs
- TraceProvider.cs
- figurelengthconverter.cs
- FunctionNode.cs
- ZipIOExtraFieldZip64Element.cs
- SafePointer.cs
- HtmlContainerControl.cs
- BrushValueSerializer.cs
- EmptyStringExpandableObjectConverter.cs
- UrlMapping.cs
- SiteMapSection.cs
- DbFunctionCommandTree.cs
- RtType.cs
- Soap12FormatExtensions.cs
- XsdDataContractExporter.cs
- TextSchema.cs
- FormattedText.cs
- DataGridBoolColumn.cs
- _NetRes.cs
- DataObject.cs
- XmlIncludeAttribute.cs
- DataSourceXmlClassAttribute.cs
- Vector3D.cs
- WebBaseEventKeyComparer.cs
- datacache.cs
- UndoEngine.cs
- HttpSysSettings.cs
- HttpRuntime.cs
- UserControl.cs
- SqlInternalConnectionSmi.cs
- BamlTreeNode.cs
- CheckBoxFlatAdapter.cs
- AuthenticationException.cs
- WorkflowDesignerMessageFilter.cs
- DesignerActionItemCollection.cs
- SimpleTableProvider.cs
- PasswordRecoveryDesigner.cs
- storepermissionattribute.cs
- CFGGrammar.cs
- QilFunction.cs
- UnknownWrapper.cs
- ProfileSection.cs
- ArgIterator.cs
- PostBackOptions.cs
- UdpDiscoveryEndpointElement.cs
- SemanticResultKey.cs
- CodeAttributeArgument.cs
- SqlSelectStatement.cs
- WebHttpDispatchOperationSelectorData.cs
- SymbolEqualComparer.cs
- FilterElement.cs
- Overlapped.cs
- SafeNativeMemoryHandle.cs
- DataGridViewCellCollection.cs
- MarshalDirectiveException.cs
- CallbackDebugBehavior.cs
- AutomationPatternInfo.cs
- EntityKey.cs
- ObjectRef.cs
- EdgeProfileValidation.cs
- ToolboxItem.cs
- ExpressionLink.cs
- QueryContinueDragEventArgs.cs
- StdValidatorsAndConverters.cs
- AmbientValueAttribute.cs
- ComIntegrationManifestGenerator.cs
- WorkflowOperationAsyncResult.cs
- EntityDataSourceSelectingEventArgs.cs
- MapPathBasedVirtualPathProvider.cs
- VectorKeyFrameCollection.cs
- StrongBox.cs
- PermissionSetTriple.cs
- RightsManagementEncryptionTransform.cs
- ClientTargetSection.cs
- BitmapEffectGeneralTransform.cs
- SimpleWebHandlerParser.cs
- ToolStripControlHost.cs
- DataGridItemAttachedStorage.cs
- DataKey.cs
- ServiceModelExtensionElement.cs
- InvokeMethod.cs
- TextRangeEditTables.cs
- GridEntryCollection.cs
- PseudoWebRequest.cs
- ContentTextAutomationPeer.cs
- PrivilegedConfigurationManager.cs
- keycontainerpermission.cs
- WebControl.cs
- IPGlobalProperties.cs
- ColorConverter.cs
- EnlistmentTraceIdentifier.cs
- Model3DGroup.cs
- SqlException.cs