using Sarand.Net.Mobile.Maui.Views; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sarand.Net.Mobile.Maui.Panels { //======================================================================= public class SamTabPanel : SamPanel { //------------------------------------------------------------------- // Definitions. //------------------------------------------------------------------- // Data members. //------------------------------------------------------------------- // Construction. public SamTabPanel(String caption, SamContentView panel) { Caption = caption; // This panel includes border layout around the actual tab panel content. Padding = new Thickness(2.0); BackgroundColor = Colors.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 //------------------------------------------------------------------- //------------------------------------------------------------------- } //======================================================================= }