summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues
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.Issues
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.Issues')
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2191.cs51
-rw-r--r--Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems1
2 files changed, 0 insertions, 52 deletions
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2191.cs b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2191.cs
deleted file mode 100644
index b334030f..00000000
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2191.cs
+++ /dev/null
@@ -1,51 +0,0 @@
-using System;
-
-using Xamarin.Forms;
-using Xamarin.Forms.CustomAttributes;
-
-namespace Xamarin.Forms.Controls
-{
- [Preserve (AllMembers=true)]
- [Issue (IssueTracker.Github, 2191, "ToolBarItem not showing as disabled when CanExecute is set to false", PlatformAffected.Android)]
- public class Issue2191 : ContentPage
- {
- public Issue2191 ()
- {
- var stackPanel = new StackLayout { VerticalOptions = LayoutOptions.End };
- var button = new Button { Text = "Disable" };
- var button1 = new Button { Text = "Enable" };
- button1.Clicked+= (sender, e) => {
- _dummyResult = true;
- PunchSubmitCommand.ChangeCanExecute();
- };
- var tbItem = new ToolbarItem { Icon = "menuIcon.png" };
- var tbItem2 = new ToolbarItem { Icon = "menuIcon.png", Text="submit" };
- button.SetBinding (Button.CommandProperty, new Binding ("PunchSubmitCommand"));
- tbItem.SetBinding (MenuItem.CommandProperty, new Binding ("PunchSubmitCommand"));
- tbItem2.SetBinding (MenuItem.CommandProperty, new Binding ("PunchSubmitCommand"));
- button.BindingContext = tbItem.BindingContext = tbItem2.BindingContext = this;
- ToolbarItems.Add(tbItem);
- var toolbar = new Toolbar { BackgroundColor = Color.Red };
- toolbar.Add (tbItem2);
- stackPanel.Children.Add (toolbar);
- stackPanel.Children.Add (button);
- stackPanel.Children.Add (button1);
- Content = stackPanel;
- }
-
- bool _dummyResult = true;
-
- Command _punchSubmitCommand;
- public Command PunchSubmitCommand
- {
- get
- {
- return _punchSubmitCommand ?? (_punchSubmitCommand = new Command(() => {
- _dummyResult = !_dummyResult;
- PunchSubmitCommand.ChangeCanExecute();
- },
- () => _dummyResult));
- }
- }
- }
-}
diff --git a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
index 5f0ad474..913a3e69 100644
--- a/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
+++ b/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
@@ -245,7 +245,6 @@
<Compile Include="$(MSBuildThisFileDirectory)Issue206.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue214.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue2143.cs" />
- <Compile Include="$(MSBuildThisFileDirectory)Issue2191.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue2222.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue22246_BZ.cs" />
<Compile Include="$(MSBuildThisFileDirectory)Issue2241.cs" />