summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/TableSectionBase.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/TableSectionBase.cs')
-rw-r--r--Xamarin.Forms.Core/TableSectionBase.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/TableSectionBase.cs b/Xamarin.Forms.Core/TableSectionBase.cs
new file mode 100644
index 00000000..9cfa5351
--- /dev/null
+++ b/Xamarin.Forms.Core/TableSectionBase.cs
@@ -0,0 +1,33 @@
+using System;
+
+namespace Xamarin.Forms
+{
+ public abstract class TableSectionBase : BindableObject
+ {
+ public static readonly BindableProperty TitleProperty = BindableProperty.Create("Title", typeof(string), typeof(TableSectionBase), null);
+
+ /// <summary>
+ /// Constructs a Section without an empty header.
+ /// </summary>
+ protected TableSectionBase()
+ {
+ }
+
+ /// <summary>
+ /// Constructs a Section with the specified header.
+ /// </summary>
+ protected TableSectionBase(string title)
+ {
+ if (title == null)
+ throw new ArgumentNullException("title");
+
+ Title = title;
+ }
+
+ public string Title
+ {
+ get { return (string)GetValue(TitleProperty); }
+ set { SetValue(TitleProperty, value); }
+ }
+ }
+} \ No newline at end of file