52 lines
1.5 KiB
C#
52 lines
1.5 KiB
C#
using Sarand.Net.Standard.Mobile.Forms.Views;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Xamarin.Forms;
|
|
|
|
namespace Sarand.Net.Standard.Mobile.Forms.Panels
|
|
{
|
|
//=======================================================================
|
|
public class SaxTabPanel : SaxPanel
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Definitions.
|
|
|
|
//-------------------------------------------------------------------
|
|
// Data members.
|
|
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public SaxTabPanel (String caption, SaxContentView panel)
|
|
{
|
|
Caption = caption;
|
|
|
|
// This panel includes border layout around the actual tab panel content.
|
|
Padding = new Thickness(2.0);
|
|
BackgroundColor = Color.LightSlateGray;
|
|
Content = panel;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
public String Caption { get; }
|
|
public Thickness BorderWidth
|
|
{
|
|
get { return Padding; }
|
|
set { if (Padding == value) return; Padding = value; }
|
|
}
|
|
public Color BorderColor
|
|
{
|
|
get { return BackgroundColor; }
|
|
set { if (BackgroundColor == value) return; BackgroundColor = value; }
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// T a b P a n e l s
|
|
//-------------------------------------------------------------------
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|