| 12345678910111213141516171819202122232425 |
- // -----------------------------------------------------------------------
- // <copyright file="TestTemplatedControl.cs" company="Steven Kirk">
- // Copyright 2014 MIT Licence. See licence.md for more information.
- // </copyright>
- // -----------------------------------------------------------------------
- namespace Perspex.Controls.UnitTests
- {
- using Perspex.Controls.Primitives;
- internal class TestTemplatedControl : TemplatedControl
- {
- public bool OnTemplateAppliedCalled { get; private set; }
- public new void AddVisualChild(IVisual visual)
- {
- base.AddVisualChild(visual);
- }
- protected override void OnTemplateApplied()
- {
- this.OnTemplateAppliedCalled = true;
- }
- }
- }
|