Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / StylusCaptureWithinProperty.cs / 1305600 / StylusCaptureWithinProperty.cs
using System;
using System.Windows.Input;
using MS.Internal.KnownBoxes;
namespace System.Windows
{
/////////////////////////////////////////////////////////////////////////
internal class StylusCaptureWithinProperty : ReverseInheritProperty
{
/////////////////////////////////////////////////////////////////////
internal StylusCaptureWithinProperty() : base(
UIElement.IsStylusCaptureWithinPropertyKey,
CoreFlags.IsStylusCaptureWithinCache,
CoreFlags.IsStylusCaptureWithinChanged)
{
}
/////////////////////////////////////////////////////////////////////
internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
{
DependencyPropertyChangedEventArgs args =
new DependencyPropertyChangedEventArgs(
UIElement.IsStylusCaptureWithinProperty,
BooleanBoxes.Box(oldValue),
BooleanBoxes.Box(!oldValue));
if (uie != null)
{
uie.RaiseIsStylusCaptureWithinChanged(args);
}
else if (ce != null)
{
ce.RaiseIsStylusCaptureWithinChanged(args);
}
else if (uie3D != null)
{
uie3D.RaiseIsStylusCaptureWithinChanged(args);
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
using System;
using System.Windows.Input;
using MS.Internal.KnownBoxes;
namespace System.Windows
{
/////////////////////////////////////////////////////////////////////////
internal class StylusCaptureWithinProperty : ReverseInheritProperty
{
/////////////////////////////////////////////////////////////////////
internal StylusCaptureWithinProperty() : base(
UIElement.IsStylusCaptureWithinPropertyKey,
CoreFlags.IsStylusCaptureWithinCache,
CoreFlags.IsStylusCaptureWithinChanged)
{
}
/////////////////////////////////////////////////////////////////////
internal override void FireNotifications(UIElement uie, ContentElement ce, UIElement3D uie3D, bool oldValue)
{
DependencyPropertyChangedEventArgs args =
new DependencyPropertyChangedEventArgs(
UIElement.IsStylusCaptureWithinProperty,
BooleanBoxes.Box(oldValue),
BooleanBoxes.Box(!oldValue));
if (uie != null)
{
uie.RaiseIsStylusCaptureWithinChanged(args);
}
else if (ce != null)
{
ce.RaiseIsStylusCaptureWithinChanged(args);
}
else if (uie3D != null)
{
uie3D.RaiseIsStylusCaptureWithinChanged(args);
}
}
}
}
// 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
- TdsParser.cs
- CodeMethodInvokeExpression.cs
- HybridDictionary.cs
- X500Name.cs
- SchemaElementDecl.cs
- ContentTextAutomationPeer.cs
- SqlSelectStatement.cs
- UserPersonalizationStateInfo.cs
- EntityDataSourceWizardForm.cs
- PLINQETWProvider.cs
- BamlTreeNode.cs
- JournalEntry.cs
- ErrorFormatter.cs
- SqlBinder.cs
- XPathExpr.cs
- SchemaConstraints.cs
- DesignerEditorPartChrome.cs
- SoapEnumAttribute.cs
- MsmqIntegrationOutputChannel.cs
- ScalarRestriction.cs
- SocketConnection.cs
- DataGridViewTextBoxColumn.cs
- InternalConfigHost.cs
- ConstructorExpr.cs
- TraceContext.cs
- AssociatedControlConverter.cs
- XPathQilFactory.cs
- MsmqInputMessage.cs
- ProgressBarRenderer.cs
- JoinCqlBlock.cs
- WrappedIUnknown.cs
- PingReply.cs
- SqlException.cs
- SspiWrapper.cs
- NetTcpSecurity.cs
- XPathDocumentIterator.cs
- NumericUpDownAccelerationCollection.cs
- ManipulationStartingEventArgs.cs
- ToolStripPanelRenderEventArgs.cs
- DataGridHelper.cs
- DbLambda.cs
- ToolStripArrowRenderEventArgs.cs
- HtmlInputSubmit.cs
- FastPropertyAccessor.cs
- EdmItemCollection.cs
- StateInitialization.cs
- PropertyDescriptor.cs
- CultureInfoConverter.cs
- XmlFileEditor.cs
- DataSourceXmlElementAttribute.cs
- DesignerSerializationVisibilityAttribute.cs
- Grid.cs
- MetadataUtil.cs
- FloatSumAggregationOperator.cs
- FunctionQuery.cs
- CultureData.cs
- UpdateException.cs
- ConnectionsZone.cs
- FileSystemInfo.cs
- Compiler.cs
- NumericUpDownAcceleration.cs
- DataRow.cs
- LineProperties.cs
- SequenceNumber.cs
- ListBoxItemWrapperAutomationPeer.cs
- NameValueCollection.cs
- COM2ExtendedUITypeEditor.cs
- SqlAliasesReferenced.cs
- DocumentSequence.cs
- PermissionSet.cs
- EntityStoreSchemaGenerator.cs
- C14NUtil.cs
- FreezableOperations.cs
- HwndSourceKeyboardInputSite.cs
- InternalUserCancelledException.cs
- X509RawDataKeyIdentifierClause.cs
- MissingMemberException.cs
- TextFormatterHost.cs
- OleDbFactory.cs
- SoapSchemaImporter.cs
- ByteRangeDownloader.cs
- DataGridrowEditEndingEventArgs.cs
- TypeSystemHelpers.cs
- List.cs
- EntityDataSourceContextCreatingEventArgs.cs
- ServicePointManagerElement.cs
- DataGridItem.cs
- EntityDataReader.cs
- DoubleCollectionValueSerializer.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- CheckBoxField.cs
- Privilege.cs
- SharedUtils.cs
- SafeNativeMethods.cs
- ActiveDocumentEvent.cs
- IdentityValidationException.cs
- QilName.cs
- QueryExtender.cs
- dtdvalidator.cs
- SafeCryptoHandles.cs