StylusCaptureWithinProperty.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK