diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2016-04-25 10:52:48 -0600 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-04-25 12:52:48 -0400 |
commit | 07df05ced2b43446c84d47f4b7a8325abcd0f767 (patch) | |
tree | 21ac508248e24266a884f9bf0fc28acadf7978fc /Xamarin.Forms.Core | |
parent | 6c0c11960b26c4ccb3322fec04e0eb6f55d9da07 (diff) | |
download | xamarin-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.Core')
-rw-r--r-- | Xamarin.Forms.Core/Toolbar.cs | 46 | ||||
-rw-r--r-- | Xamarin.Forms.Core/Xamarin.Forms.Core.csproj | 1 |
2 files changed, 0 insertions, 47 deletions
diff --git a/Xamarin.Forms.Core/Toolbar.cs b/Xamarin.Forms.Core/Toolbar.cs deleted file mode 100644 index 4405d1f6..00000000 --- a/Xamarin.Forms.Core/Toolbar.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using Xamarin.Forms.Platform; - -namespace Xamarin.Forms -{ - // Marked as internal for 1.0 release until we are ready to release this - [RenderWith(typeof(_ToolbarRenderer))] - internal class Toolbar : View - { - readonly List<ToolbarItem> _items = new List<ToolbarItem>(); - - public ReadOnlyCollection<ToolbarItem> Items - { - get { return new ReadOnlyCollection<ToolbarItem>(_items); } - } - - public void Add(ToolbarItem item) - { - if (_items.Contains(item)) - return; - _items.Add(item); - if (ItemAdded != null) - ItemAdded(this, new ToolbarItemEventArgs(item)); - } - - public void Clear() - { - _items.Clear(); - } - - public event EventHandler<ToolbarItemEventArgs> ItemAdded; - - public event EventHandler<ToolbarItemEventArgs> ItemRemoved; - - public void Remove(ToolbarItem item) - { - if (_items.Remove(item)) - { - if (ItemRemoved != null) - ItemRemoved(this, new ToolbarItemEventArgs(item)); - } - } - } -}
\ No newline at end of file diff --git a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj index a68ce579..b1925578 100644 --- a/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj +++ b/Xamarin.Forms.Core/Xamarin.Forms.Core.csproj @@ -314,7 +314,6 @@ <Compile Include="TabbedPage.cs" /> <Compile Include="TemplateExtensions.cs" /> <Compile Include="TimePicker.cs" /> - <Compile Include="Toolbar.cs" /> <Compile Include="ToolbarTracker.cs" /> <Compile Include="ViewExtensions.cs" /> <Compile Include="ViewState.cs" /> |