// Copyright (c) The Perspex Project. All rights reserved.
// Licensed under the MIT license. See licence.md file in the project root for full license information.
using Perspex.Animation;
using Perspex.Controls.Presenters;
using Perspex.Controls.Primitives;
using Perspex.Controls.Templates;
namespace Perspex.Controls
{
///
/// A tab control that displays a tab strip along with the content of the selected tab.
///
public class TabControl : SelectingItemsControl, IReparentingHost
{
///
/// Defines the property.
///
public static readonly PerspexProperty SelectedTabProperty =
PerspexProperty.Register("SelectedTab");
///
/// Defines the property.
///
public static readonly PerspexProperty TransitionProperty =
Deck.TransitionProperty.AddOwner();
private static readonly IMemberSelector s_contentSelector =
new FuncMemberSelector