summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls
diff options
context:
space:
mode:
authorE.Z. Hart <hartez@users.noreply.github.com>2016-04-25 10:52:48 -0600
committerRui Marinho <me@ruimarinho.net>2016-04-25 12:52:48 -0400
commit07df05ced2b43446c84d47f4b7a8325abcd0f767 (patch)
tree21ac508248e24266a884f9bf0fc28acadf7978fc /Xamarin.Forms.Controls
parent6c0c11960b26c4ccb3322fec04e0eb6f55d9da07 (diff)
downloadxamarin-forms-07df05ced2b43446c84d47f4b7a8325abcd0f767.tar.gz
xamarin-forms-07df05ced2b43446c84d47f4b7a8325abcd0f767.tar.bz2
xamarin-forms-07df05ced2b43446c84d47f4b7a8325abcd0f767.zip
Remove ToolBar from Core; Remove ToolBar renderers and unit tests (#124)
Diffstat (limited to 'Xamarin.Forms.Controls')
-rw-r--r--Xamarin.Forms.Controls/CoreGallery.cs1
-rw-r--r--Xamarin.Forms.Controls/GalleryPages/ToolbarGallery.cs40
-rw-r--r--Xamarin.Forms.Controls/Xamarin.Forms.Controls.csproj1
3 files changed, 0 insertions, 42 deletions
diff --git a/Xamarin.Forms.Controls/CoreGallery.cs b/Xamarin.Forms.Controls/CoreGallery.cs
index d060fbbc..99e27601 100644
--- a/Xamarin.Forms.Controls/CoreGallery.cs
+++ b/Xamarin.Forms.Controls/CoreGallery.cs
@@ -290,7 +290,6 @@ namespace Xamarin.Forms.Controls
new TableViewGallery { Title = "TableView Gallery - Legacy" },
new TemplatedCarouselGallery { Title = "TemplatedCarouselPage Gallery - Legacy" },
new TemplatedTabbedGallery { Title = "TemplatedTabbedPage Gallery - Legacy" },
- new ToolbarGallery { Title = "Toolbar Gallery - Legacy" },
new UnevenViewCellGallery { Title = "UnevenViewCell Gallery - Legacy" },
new UnevenListGallery { Title = "UnevenList Gallery - Legacy" },
new ViewCellGallery { Title = "ViewCell Gallery - Legacy" },
diff --git a/Xamarin.Forms.Controls/GalleryPages/ToolbarGallery.cs b/Xamarin.Forms.Controls/GalleryPages/ToolbarGallery.cs
deleted file mode 100644
index b2be5f02..00000000
--- a/Xamarin.Forms.Controls/GalleryPages/ToolbarGallery.cs
+++ /dev/null
@@ -1,40 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace Xamarin.Forms.Controls
-{
- public class ToolbarGallery : ContentPage
- {
- readonly Toolbar _toolbar;
- readonly StackLayout _stack;
-
- public ToolbarGallery ()
- {
- var label = new Label {
- Text = "Click the toolbar"
- };
-
- Content = _stack = new StackLayout ();
- _stack.Children.Add (label);
-
- foreach (string name in new[] { "One", "Two", "Three", "Four" }) {
- var toolbarItem = new ToolbarItem (name, null, delegate {
- label.Text = "Activated: " + name;
- }, ToolbarItemOrder.Secondary);
- ToolbarItems.Add (toolbarItem);
- }
-
- var imagePrimaryItem = new ToolbarItem (null, "menuIcon.png", () => label.Text = "Activated: Primary Image 1", ToolbarItemOrder.Primary);
- var imagePrimaryItemWithTitle = new ToolbarItem ("Primary", "menuIcon.png", () => label.Text = "Activated: Primary Image 2", ToolbarItemOrder.Primary);
- var imageItem = new ToolbarItem (null, "seth.png", () => label.Text = "Activated: Secondary Image 1", ToolbarItemOrder.Secondary);
- var imageItemWithTitle = new ToolbarItem ("Secondary", "seth.png", () => label.Text = "Activated: Secondary Image 2", ToolbarItemOrder.Secondary);
- ToolbarItems.Add (imagePrimaryItem);
- ToolbarItems.Add (imagePrimaryItemWithTitle);
- ToolbarItems.Add (imageItem);
- ToolbarItems.Add (imageItemWithTitle);
- }
- }
-}
diff --git a/Xamarin.Forms.Controls/Xamarin.Forms.Controls.csproj b/Xamarin.Forms.Controls/Xamarin.Forms.Controls.csproj
index 3252403b..7e0f30f3 100644
--- a/Xamarin.Forms.Controls/Xamarin.Forms.Controls.csproj
+++ b/Xamarin.Forms.Controls/Xamarin.Forms.Controls.csproj
@@ -211,7 +211,6 @@
<Compile Include="GalleryPages\TableViewGallery.cs" />
<Compile Include="GalleryPages\TemplatedCarouselGallery.cs" />
<Compile Include="GalleryPages\TemplatedTabbedGallery.cs" />
- <Compile Include="GalleryPages\ToolbarGallery.cs" />
<Compile Include="GalleryPages\UnevenListGallery.cs" />
<Compile Include="GalleryPages\WebViewGallery.cs" />
<Compile Include="GalleryPages\StyleGallery.cs" />