Songhay.Desktop.Controls.AnalogDigit/AnalogDigit.cs
/// <summary>
/// When overridden in a derived class, is invoked whenever application code
/// or internal processes (such as a rebuilding layout pass)
/// call <see cref="M:System.Windows.Controls.Control.ApplyTemplate"/>.
/// In simplest terms, this means the method is called just before a UI element displays in an application.
/// For more information, see Remarks.
/// </summary>
When overridden in a derived class, is invoked whenever application code
or internal processes (such as a rebuilding layout pass)
call .
In simplest terms, this means the method is called just before a UI element displays in an application.
For more information, see Remarks.
When overridden in a derived class is invoked whenever application code or internal processes ( such as a rebuilding layout pass ) call . In simplest terms this means the method is called just before a UI element displays in an application . For more information see Remarks .
public override void OnApplyTemplate()
        {
            base.OnApplyTemplate();
            this._layoutRoot = this.GetTemplateChild("LayoutRoot") as Viewbox;
            Debug.Assert(this._layoutRoot != null, "The expected template child is not here.");
        }
public override void OnApplyTemplate ( ) { base . OnApplyTemplate ( ) ; this . _layoutRoot = this . GetTemplateChild ( " " ) as Viewbox ; Debug . Assert ( this . _layoutRoot != null , " " ) ; }
When overridden in a derived class, is invoked whenever application code
or internal processes (such as a rebuilding layout pass)
call .
When overridden in a derived class is invoked whenever application code or internal processes ( such as a rebuilding layout pass ) call .
//TODO: re-factor into Extension Method.