Commit 461501a2 authored by Paolo Pecis's avatar Paolo Pecis

Finished Xamarin Custom Action

parent 75412a54
<Properties StartupConfiguration="{4F6DEB6F-CBE0-467D-B834-06210B57FA32}|Default"> <Properties StartupConfiguration="{4F6DEB6F-CBE0-467D-B834-06210B57FA32}|Default">
<MonoDevelop.Ide.Workbench ActiveDocument="XAMARINCustomAction.iOS/CustomActionIos.cs"> <MonoDevelop.Ide.Workbench ActiveDocument="XAMARINCustomAction/MainPage.xaml.cs">
<Files> <Files>
<File FileName="XAMARINCustomAction/MainPage.xaml.cs" Line="23" Column="50" /> <File FileName="XAMARINCustomAction/MainPage.xaml.cs" Line="17" Column="23" />
<File FileName="XAMARINCustomAction/ICustomAction.cs" /> <File FileName="XAMARINCustomAction/ICustomAction.cs" Line="1" Column="1" />
<File FileName="XAMARINCustomAction.iOS/CustomActionIos.cs" Line="22" Column="6" /> <File FileName="XAMARINCustomAction.iOS/CustomActionIos.cs" Line="32" Column="17" />
<File FileName="XAMARINCustomAction.iOS/Info.plist" /> <File FileName="XAMARINCustomAction.iOS/Info.plist" />
</Files> </Files>
<Pads> <Pads>
<Pad Id="ProjectPad"> <Pad Id="ProjectPad">
<State name="__root__"> <State name="__root__">
<Node name="XAMARINCustomAction" expanded="True"> <Node name="XAMARINCustomAction" expanded="True">
<Node name="XAMARINCustomAction" expanded="True" /> <Node name="XAMARINCustomAction" expanded="True">
<Node name="XAMARINCustomAction.iOS" expanded="True"> <Node name="MainPage.xaml" expanded="True">
<Node name="CustomActionIos.cs" selected="True" /> <Node name="MainPage.xaml.cs" selected="True" />
</Node>
</Node> </Node>
<Node name="XAMARINCustomAction.iOS" expanded="True" />
</Node> </Node>
</State> </State>
</Pad> </Pad>
...@@ -26,5 +28,5 @@ ...@@ -26,5 +28,5 @@
<BreakpointStore /> <BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints> </MonoDevelop.Ide.DebuggingService.Breakpoints>
<MultiItemStartupConfigurations /> <MultiItemStartupConfigurations />
<MonoDevelop.Ide.ItemProperties.XAMARINCustomAction.iOS automaticSigning="False" PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.6A0D46CD-3857-45D7-84A7-211D7D713F41" /> <MonoDevelop.Ide.ItemProperties.XAMARINCustomAction.iOS automaticSigning="False" PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.DC55AF67-93B2-4E7D-8A51-159D9F9D6A06" />
</Properties> </Properties>
\ No newline at end of file
...@@ -28,7 +28,8 @@ namespace XAMARINCustomAction.iOS ...@@ -28,7 +28,8 @@ namespace XAMARINCustomAction.iOS
private bool Increment(UIAccessibilityCustomAction customAction) private bool Increment(UIAccessibilityCustomAction customAction)
{ {
int n = Int32.Parse(MainPage.counter.Text) + 1; int n = Int32.Parse(MainPage.counter.Text);
n++;
Debug.WriteLine("PIPPO: clicked increment"); Debug.WriteLine("PIPPO: clicked increment");
MainPage.counter.Text = "" + (n); MainPage.counter.Text = "" + (n);
return true; return true;
...@@ -47,25 +48,5 @@ namespace XAMARINCustomAction.iOS ...@@ -47,25 +48,5 @@ namespace XAMARINCustomAction.iOS
return true; return true;
} }
/*private bool Increment()
{
int n = Int32.Parse(mainpage.counter.Text);
Console.WriteLine("PIPPO: clicked on increment");
Debug.WriteLine($"PIPPO: clicked on increment {n}");
mainpage.counter.Text = "" + (n++);
}*/
/*[Export("Decrement:")]
private void Decrement()
{
Console.WriteLine("PIPPO: clicked on decrement");
int n = Int32.Parse(mainpage.counter.Text);
mainpage.counter.Text = "" + (n--);
}*/
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment