helixtoolkit /Source/HelixToolkit.Wpf/Helpers/WeakEventManagers/RenderingEventManager.cs

Language C# Lines 32
MD5 Hash 49afabc7f48274b056ff513ce6f0aed2 Estimated Cost $329 (why?)
Repository https://hg.codeplex.com/helixtoolkit View Raw File
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="RenderingEventManager.cs" company="Helix 3D Toolkit">
//   http://helixtoolkit.codeplex.com, license: MIT
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace HelixToolkit.Wpf
{
    using System.Windows.Media;

    /// <summary>
    /// Represents a weak event manager for the CompositionTarget.Rendering event.
    /// </summary>
    public class RenderingEventManager : WeakEventManagerBase<RenderingEventManager>
    {
        /// <summary>
        /// Start listening to the CompositionTarget.Rendering event.
        /// </summary>
        protected override void StartListening()
        {
            CompositionTarget.Rendering += this.Handler;
        }

        /// <summary>
        /// Stop listening to the CompositionTarget.Rendering event.
        /// </summary>
        protected override void StopListening()
        {
            CompositionTarget.Rendering -= this.Handler;
        }
    }
}
Back to Top