Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / StylusCaptureWithinProperty.cs / 1 / 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
- ExtendedProtectionPolicy.cs
- InputReport.cs
- PersonalizableAttribute.cs
- DataGrid.cs
- OutputCacheModule.cs
- ConfigurationPropertyAttribute.cs
- MdImport.cs
- FilteredAttributeCollection.cs
- FrameworkRichTextComposition.cs
- ValidationError.cs
- Comparer.cs
- XamlDesignerSerializationManager.cs
- FigureParaClient.cs
- WriteFileContext.cs
- StringCollection.cs
- TemplateBindingExtension.cs
- ReadWriteSpinLock.cs
- TextHidden.cs
- UIElement3D.cs
- OracleConnectionStringBuilder.cs
- XsltException.cs
- TypeConverterHelper.cs
- ResolveDuplexCD1AsyncResult.cs
- SecurityRuntime.cs
- PerformanceCounterPermissionEntry.cs
- PointLightBase.cs
- EntityDataReader.cs
- IntellisenseTextBox.cs
- User.cs
- GraphicsContainer.cs
- SocketException.cs
- Win32KeyboardDevice.cs
- FieldInfo.cs
- ActivationProxy.cs
- GorillaCodec.cs
- ChangeTracker.cs
- PageBuildProvider.cs
- IsolatedStoragePermission.cs
- XPathScanner.cs
- MachineSettingsSection.cs
- Main.cs
- RawMouseInputReport.cs
- CompilationLock.cs
- MinMaxParagraphWidth.cs
- HybridObjectCache.cs
- LoginName.cs
- GraphicsContext.cs
- HierarchicalDataSourceControl.cs
- ReadOnlyDictionary.cs
- TreeView.cs
- BinaryParser.cs
- PropertyEmitterBase.cs
- StylusPointPropertyUnit.cs
- ControlCachePolicy.cs
- BindToObject.cs
- AttributeData.cs
- QilBinary.cs
- WinEventWrap.cs
- MediaContext.cs
- FactoryId.cs
- ReferencedAssembly.cs
- SQLMoneyStorage.cs
- TextParaLineResult.cs
- Label.cs
- TransactionManager.cs
- Color.cs
- RuntimeConfigLKG.cs
- BoundField.cs
- WorkflowMarkupSerializer.cs
- FormatPage.cs
- RenameRuleObjectDialog.cs
- EventBuilder.cs
- SrgsNameValueTag.cs
- LicenseException.cs
- DropDownList.cs
- SymbolDocumentGenerator.cs
- Material.cs
- ConstraintStruct.cs
- RegexCapture.cs
- FileDialog_Vista_Interop.cs
- VerticalAlignConverter.cs
- BindingSource.cs
- COM2ExtendedBrowsingHandler.cs
- StateDesigner.Layouts.cs
- CancelAsyncOperationRequest.cs
- RichTextBox.cs
- JsonFormatWriterGenerator.cs
- _ConnectOverlappedAsyncResult.cs
- DelegateSerializationHolder.cs
- HtmlTitle.cs
- AppDomainResourcePerfCounters.cs
- WindowsIdentity.cs
- FilterElement.cs
- BlurBitmapEffect.cs
- SizeAnimationBase.cs
- SHA384.cs
- InputScope.cs
- ExtensionQuery.cs
- AnyAllSearchOperator.cs
- BinaryMethodMessage.cs