Added NavigationIos to Samples/Navigation
This commit is contained in:
Родитель
82b408ce30
Коммит
97c76c0199
|
@ -0,0 +1,60 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2013
|
||||
VisualStudioVersion = 12.0.31101.0
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NavigationIos", "NavigationIos\NavigationIos.csproj", "{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
|
||||
Ad-Hoc|iPhone = Ad-Hoc|iPhone
|
||||
Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
|
||||
Ad-Hoc|Mixed Platforms = Ad-Hoc|Mixed Platforms
|
||||
AppStore|Any CPU = AppStore|Any CPU
|
||||
AppStore|iPhone = AppStore|iPhone
|
||||
AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
|
||||
AppStore|Mixed Platforms = AppStore|Mixed Platforms
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|iPhone = Debug|iPhone
|
||||
Debug|iPhoneSimulator = Debug|iPhoneSimulator
|
||||
Debug|Mixed Platforms = Debug|Mixed Platforms
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|iPhone = Release|iPhone
|
||||
Release|iPhoneSimulator = Release|iPhoneSimulator
|
||||
Release|Mixed Platforms = Release|Mixed Platforms
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Ad-Hoc|Mixed Platforms.ActiveCfg = Ad-Hoc|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Ad-Hoc|Mixed Platforms.Build.0 = Ad-Hoc|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.AppStore|Any CPU.ActiveCfg = AppStore|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.AppStore|iPhone.Build.0 = AppStore|iPhone
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.AppStore|Mixed Platforms.ActiveCfg = AppStore|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.AppStore|Mixed Platforms.Build.0 = AppStore|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Debug|iPhone.ActiveCfg = Debug|iPhone
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Debug|iPhone.Build.0 = Debug|iPhone
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Debug|Mixed Platforms.ActiveCfg = Debug|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Debug|Mixed Platforms.Build.0 = Debug|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Release|iPhone.ActiveCfg = Release|iPhone
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Release|iPhone.Build.0 = Release|iPhone
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Release|Mixed Platforms.ActiveCfg = Release|iPhoneSimulator
|
||||
{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}.Release|Mixed Platforms.Build.0 = Release|iPhoneSimulator
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
|
@ -0,0 +1,50 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Foundation;
|
||||
using GalaSoft.MvvmLight.Ioc;
|
||||
using GalaSoft.MvvmLight.Views;
|
||||
using Microsoft.Practices.ServiceLocation;
|
||||
using UIKit;
|
||||
|
||||
namespace NavigationIos
|
||||
{
|
||||
// The UIApplicationDelegate for the application. This class is responsible for launching the
|
||||
// User Interface of the application, as well as listening (and optionally responding) to
|
||||
// application events from iOS.
|
||||
[Register("AppDelegate")]
|
||||
public partial class AppDelegate : UIApplicationDelegate
|
||||
{
|
||||
// class-level declarations
|
||||
UIWindow window;
|
||||
|
||||
public const string Page2Key = "Page2";
|
||||
public const string Page3Key = "Page3";
|
||||
|
||||
public override bool FinishedLaunching(UIApplication app, NSDictionary options)
|
||||
{
|
||||
// create a new window instance based on the screen size
|
||||
window = new UIWindow(UIScreen.MainScreen.Bounds);
|
||||
|
||||
// Add the Navigation Controller and initialize it
|
||||
var navController = new UINavigationController(new MainViewController());
|
||||
window.RootViewController = navController;
|
||||
|
||||
// Initialize and register the Navigation Service
|
||||
ServiceLocator.SetLocatorProvider(() => SimpleIoc.Default);
|
||||
|
||||
var nav = new NavigationService();
|
||||
nav.Initialize(navController);
|
||||
nav.Configure(Page2Key, typeof(Page2Controller));
|
||||
nav.Configure(Page3Key, typeof(Page3Controller));
|
||||
|
||||
SimpleIoc.Default.Register<INavigationService>(() => nav);
|
||||
|
||||
// make the window visible
|
||||
window.MakeKeyAndVisible();
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict/>
|
||||
</plist>
|
|
@ -0,0 +1,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>NavigationIos</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.your-company.NavigationIos</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>UIDeviceFamily</key>
|
||||
<array>
|
||||
<integer>1</integer>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>MinimumOSVersion</key>
|
||||
<string>7.0</string>
|
||||
</dict>
|
||||
</plist>
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
using Foundation;
|
||||
using UIKit;
|
||||
|
||||
namespace NavigationIos
|
||||
{
|
||||
public class Application
|
||||
{
|
||||
// This is the main entry point of the application.
|
||||
static void Main(string[] args)
|
||||
{
|
||||
// if you want to use a different Application Delegate class from "AppDelegate"
|
||||
// you can specify it here.
|
||||
UIApplication.Main(args, null, "AppDelegate");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
|
||||
using Foundation;
|
||||
using GalaSoft.MvvmLight.Views;
|
||||
using Microsoft.Practices.ServiceLocation;
|
||||
using UIKit;
|
||||
|
||||
namespace NavigationIos
|
||||
{
|
||||
public partial class MainViewController : UIViewController
|
||||
{
|
||||
public MainViewController()
|
||||
: base("MainViewController", null)
|
||||
{
|
||||
}
|
||||
|
||||
public override void DidReceiveMemoryWarning()
|
||||
{
|
||||
// Releases the view if it doesn't have a superview.
|
||||
base.DidReceiveMemoryWarning();
|
||||
|
||||
// Release any cached data, images, etc that aren't in use.
|
||||
}
|
||||
|
||||
public override void ViewDidLoad()
|
||||
{
|
||||
base.ViewDidLoad();
|
||||
|
||||
Title = "Main View";
|
||||
View.BackgroundColor = UIColor.White;
|
||||
|
||||
var button = UIButton.FromType(UIButtonType.RoundedRect);
|
||||
button.SetTitle("Go to page 2", UIControlState.Normal);
|
||||
button.Frame = new CoreGraphics.CGRect(20, 80, 200, 50);
|
||||
View.Add(button);
|
||||
|
||||
button.TouchUpInside += (s, e) =>
|
||||
{
|
||||
var nav = ServiceLocator.Current.GetInstance<INavigationService>();
|
||||
nav.NavigateTo(AppDelegate.Page2Key);
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
//
|
||||
// This file has been generated automatically by Visual Studio to store outlets and
|
||||
// actions made in the Xcode designer. If it is removed, they will be lost.
|
||||
// Manual changes to this file may not be handled correctly.
|
||||
//
|
||||
using Foundation;
|
||||
|
||||
namespace NavigationIos
|
||||
{
|
||||
[Register("MainViewController")]
|
||||
partial class MainViewController
|
||||
{
|
||||
void ReleaseDesignerOutlets()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4510" systemVersion="13B42" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3742" />
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="MainViewController">
|
||||
<connections>
|
||||
<outlet property="view" destination="iN0-l3-epB" id="kCW-yf-GMq"/>
|
||||
</connections>
|
||||
</placeholder>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder" />
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics" type="retina4"/>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
|
@ -0,0 +1,137 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
||||
<ProjectGuid>{01DAD5E7-7034-48C0-B9E3-B5A2FD674700}</ProjectGuid>
|
||||
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>NavigationIos</RootNamespace>
|
||||
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
|
||||
<AssemblyName>NavigationIos</AssemblyName>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<MtouchArch>i386, x86_64</MtouchArch>
|
||||
<MtouchLink>None</MtouchLink>
|
||||
<MtouchDebug>true</MtouchDebug>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\iPhoneSimulator\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<MtouchLink>None</MtouchLink>
|
||||
<MtouchArch>i386, x86_64</MtouchArch>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\iPhone\Debug</OutputPath>
|
||||
<DefineConstants>DEBUG</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
||||
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||
<CodesignKey>iPhone Developer</CodesignKey>
|
||||
<MtouchDebug>true</MtouchDebug>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\iPhone\Release</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
||||
<ConsolePause>false</ConsolePause>
|
||||
<CodesignKey>iPhone Developer</CodesignKey>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>True</Optimize>
|
||||
<OutputPath>bin\iPhone\Ad-Hoc</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>False</ConsolePause>
|
||||
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
||||
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||
<BuildIpa>True</BuildIpa>
|
||||
<CodesignProvision>Automatic:AdHoc</CodesignProvision>
|
||||
<CodesignKey>iPhone Distribution</CodesignKey>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
|
||||
<DebugType>none</DebugType>
|
||||
<Optimize>True</Optimize>
|
||||
<OutputPath>bin\iPhone\AppStore</OutputPath>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<ConsolePause>False</ConsolePause>
|
||||
<MtouchArch>ARMv7, ARM64</MtouchArch>
|
||||
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||
<CodesignProvision>Automatic:AppStore</CodesignProvision>
|
||||
<CodesignKey>iPhone Distribution</CodesignKey>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Main.cs" />
|
||||
<Compile Include="AppDelegate.cs" />
|
||||
<None Include="Info.plist" />
|
||||
<Compile Include="MainViewController.cs" />
|
||||
<Compile Include="MainViewController.designer.cs">
|
||||
<DependentUpon>MainViewController.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Page2Controller.cs" />
|
||||
<Compile Include="Page2Controller.designer.cs">
|
||||
<DependentUpon>Page2Controller.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Page3Controller.cs" />
|
||||
<Compile Include="Page3Controller.designer.cs">
|
||||
<DependentUpon>Page3Controller.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<InterfaceDefinition Include="MainViewController.xib" />
|
||||
<InterfaceDefinition Include="Page2Controller.xib" />
|
||||
<InterfaceDefinition Include="Page3Controller.xib" />
|
||||
<None Include="packages.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BundleResource Include="Resources\Default-568h@2x.png" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="GalaSoft.MvvmLight, Version=5.1.1.35049, Culture=neutral, PublicKeyToken=e7570ab207bcb616, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\packages\MvvmLightLibs.5.1.1.0\lib\xamarin.ios10\GalaSoft.MvvmLight.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="GalaSoft.MvvmLight.Extras, Version=5.1.1.35049, Culture=neutral, PublicKeyToken=669f0b5e8f868abf, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\packages\MvvmLightLibs.5.1.1.0\lib\xamarin.ios10\GalaSoft.MvvmLight.Extras.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="GalaSoft.MvvmLight.Platform, Version=5.1.1.35066, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\packages\MvvmLightLibs.5.1.1.0\lib\xamarin.ios10\GalaSoft.MvvmLight.Platform.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Practices.ServiceLocation, Version=1.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="Xamarin.iOS" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Entitlements.plist" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
|
||||
</Project>
|
|
@ -0,0 +1,50 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
|
||||
using Foundation;
|
||||
using GalaSoft.MvvmLight.Views;
|
||||
using Microsoft.Practices.ServiceLocation;
|
||||
using UIKit;
|
||||
|
||||
namespace NavigationIos
|
||||
{
|
||||
public partial class Page2Controller : UIViewController
|
||||
{
|
||||
public Page2Controller()
|
||||
: base("Page2Controller", null)
|
||||
{
|
||||
}
|
||||
|
||||
public override void ViewDidLoad()
|
||||
{
|
||||
base.ViewDidLoad();
|
||||
|
||||
Title = "Page 2";
|
||||
View.BackgroundColor = UIColor.White;
|
||||
|
||||
var button = UIButton.FromType(UIButtonType.RoundedRect);
|
||||
button.SetTitle("Go to page 3 with parameter", UIControlState.Normal);
|
||||
button.Frame = new CoreGraphics.CGRect(20, 80, 200, 50);
|
||||
View.Add(button);
|
||||
|
||||
button.TouchUpInside += (s, e) =>
|
||||
{
|
||||
var nav = ServiceLocator.Current.GetInstance<INavigationService>();
|
||||
nav.NavigateTo(
|
||||
AppDelegate.Page3Key,
|
||||
"Hello Xamarin " + DateTime.Now.ToString("HH:mm:ss"));
|
||||
};
|
||||
}
|
||||
|
||||
public override void ViewDidAppear(bool animated)
|
||||
{
|
||||
base.ViewDidAppear(animated);
|
||||
Debug.WriteLine(
|
||||
"Current page key: "
|
||||
+ ServiceLocator.Current
|
||||
.GetInstance<INavigationService>()
|
||||
.CurrentPageKey);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
//
|
||||
// This file has been generated automatically by Visual Studio to store outlets and
|
||||
// actions made in the Xcode designer. If it is removed, they will be lost.
|
||||
// Manual changes to this file may not be handled correctly.
|
||||
//
|
||||
using Foundation;
|
||||
|
||||
namespace NavigationIos
|
||||
{
|
||||
[Register("Page2Controller")]
|
||||
partial class Page2Controller
|
||||
{
|
||||
void ReleaseDesignerOutlets()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4510" systemVersion="13B42" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3742" />
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="Page2Controller">
|
||||
<connections>
|
||||
<outlet property="view" destination="iN0-l3-epB" id="kCW-yf-GMq"/>
|
||||
</connections>
|
||||
</placeholder>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder" />
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics" type="retina4"/>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
|
||||
using Foundation;
|
||||
using GalaSoft.MvvmLight.Views;
|
||||
using Microsoft.Practices.ServiceLocation;
|
||||
using UIKit;
|
||||
|
||||
namespace NavigationIos
|
||||
{
|
||||
public partial class Page3Controller : UIViewController
|
||||
{
|
||||
private readonly string _passedParameter;
|
||||
|
||||
public Page3Controller(string parameter)
|
||||
: base("Page3Controller", null)
|
||||
{
|
||||
_passedParameter = parameter;
|
||||
}
|
||||
|
||||
public override void ViewDidLoad()
|
||||
{
|
||||
base.ViewDidLoad();
|
||||
|
||||
Title = "Page 3";
|
||||
View.BackgroundColor = UIColor.White;
|
||||
|
||||
var button = UIButton.FromType(UIButtonType.RoundedRect);
|
||||
button.SetTitle("Go back to page 2", UIControlState.Normal);
|
||||
button.Frame = new CoreGraphics.CGRect(20, 80, 200, 50);
|
||||
View.Add(button);
|
||||
|
||||
button.TouchUpInside += (s, e) =>
|
||||
{
|
||||
var nav = ServiceLocator.Current.GetInstance<INavigationService>();
|
||||
nav.GoBack();
|
||||
};
|
||||
|
||||
var label = new UILabel(new CoreGraphics.CGRect(20, 150, 200, 100));
|
||||
View.Add(label);
|
||||
|
||||
label.Text = _passedParameter;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
//
|
||||
// This file has been generated automatically by Visual Studio to store outlets and
|
||||
// actions made in the Xcode designer. If it is removed, they will be lost.
|
||||
// Manual changes to this file may not be handled correctly.
|
||||
//
|
||||
using Foundation;
|
||||
|
||||
namespace NavigationIos
|
||||
{
|
||||
[Register("Page3Controller")]
|
||||
partial class Page3Controller
|
||||
{
|
||||
void ReleaseDesignerOutlets()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="4510" systemVersion="13B42" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES">
|
||||
<dependencies>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="3742" />
|
||||
</dependencies>
|
||||
<objects>
|
||||
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="Page3Controller">
|
||||
<connections>
|
||||
<outlet property="view" destination="iN0-l3-epB" id="kCW-yf-GMq"/>
|
||||
</connections>
|
||||
</placeholder>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder" />
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB">
|
||||
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
||||
<simulatedStatusBarMetrics key="simulatedStatusBarMetrics" type="retina4"/>
|
||||
</view>
|
||||
</objects>
|
||||
</document>
|
|
@ -0,0 +1,36 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("NavigationIos")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("NavigationIos")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2015")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("508e532c-5601-4c05-b7dd-4390be926730")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 2.2 KiB |
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="CommonServiceLocator" version="1.3" targetFramework="xamarinios10" />
|
||||
<package id="MvvmLightLibs" version="5.1.1.0" targetFramework="xamarinios10" />
|
||||
</packages>
|
|
@ -108,15 +108,13 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="GalaSoft.MvvmLight">
|
||||
<HintPath>..\packages\MvvmLightLibs.5.1.0.1\lib\xamarin.ios10\GalaSoft.MvvmLight.dll</HintPath>
|
||||
<HintPath>..\packages\MvvmLightLibs.5.1.1.0\lib\xamarin.ios10\GalaSoft.MvvmLight.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="GalaSoft.MvvmLight.Extras">
|
||||
<HintPath>..\packages\MvvmLightLibs.5.1.0.1\lib\xamarin.ios10\GalaSoft.MvvmLight.Extras.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\MvvmLightLibs.5.1.1.0\lib\xamarin.ios10\GalaSoft.MvvmLight.Extras.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="GalaSoft.MvvmLight.Platform">
|
||||
<HintPath>..\packages\MvvmLightLibs.5.1.0.1\lib\xamarin.ios10\GalaSoft.MvvmLight.Platform.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<HintPath>..\packages\MvvmLightLibs.5.1.1.0\lib\xamarin.ios10\GalaSoft.MvvmLight.Platform.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Practices.ServiceLocation">
|
||||
<HintPath>..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll</HintPath>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="CommonServiceLocator" version="1.3" targetFramework="xamarinios10" />
|
||||
<package id="MvvmLightLibs" version="5.1.0.1" targetFramework="xamarinios10" />
|
||||
<package id="MvvmLightLibs" version="5.1.1.0" targetFramework="xamarinios10" />
|
||||
</packages>
|
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/MvvmLightLibs.5.1.0.1.nupkg
поставляемый
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/MvvmLightLibs.5.1.0.1.nupkg
поставляемый
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/windows81/GalaSoft.MvvmLight.Extras.dll
поставляемый
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/windows81/GalaSoft.MvvmLight.Extras.dll
поставляемый
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/windows81/GalaSoft.MvvmLight.dll
поставляемый
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/windows81/GalaSoft.MvvmLight.dll
поставляемый
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/wp8/GalaSoft.MvvmLight.Extras.dll
поставляемый
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/wp8/GalaSoft.MvvmLight.Extras.dll
поставляемый
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/wp8/GalaSoft.MvvmLight.dll
поставляемый
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/wp8/GalaSoft.MvvmLight.dll
поставляемый
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/wp81/GalaSoft.MvvmLight.Extras.dll
поставляемый
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/wp81/GalaSoft.MvvmLight.Extras.dll
поставляемый
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/wp81/GalaSoft.MvvmLight.dll
поставляемый
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/wp81/GalaSoft.MvvmLight.dll
поставляемый
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/wpa81/GalaSoft.MvvmLight.Extras.dll
поставляемый
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/wpa81/GalaSoft.MvvmLight.Extras.dll
поставляемый
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/wpa81/GalaSoft.MvvmLight.dll
поставляемый
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/wpa81/GalaSoft.MvvmLight.dll
поставляемый
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/xamarin.ios10/GalaSoft.MvvmLight.Extras.dll
поставляемый
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/xamarin.ios10/GalaSoft.MvvmLight.Extras.dll
поставляемый
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/xamarin.ios10/GalaSoft.MvvmLight.Platform.dll
поставляемый
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/xamarin.ios10/GalaSoft.MvvmLight.Platform.dll
поставляемый
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/xamarin.ios10/GalaSoft.MvvmLight.dll
поставляемый
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.0.1/lib/xamarin.ios10/GalaSoft.MvvmLight.dll
поставляемый
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.1.0/MvvmLightLibs.5.1.1.0.nupkg
поставляемый
Normal file
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.1.0/MvvmLightLibs.5.1.1.0.nupkg
поставляемый
Normal file
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.1.0/lib/monoandroid1/GalaSoft.MvvmLight.Platform.dll.mdb
поставляемый
Normal file
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.1.0/lib/monoandroid1/GalaSoft.MvvmLight.Platform.dll.mdb
поставляемый
Normal file
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.1.0/lib/windows81/GalaSoft.MvvmLight.Extras.dll
поставляемый
Normal file
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.1.0/lib/windows81/GalaSoft.MvvmLight.Extras.dll
поставляемый
Normal file
Двоичный файл не отображается.
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.1.0/lib/windows81/GalaSoft.MvvmLight.dll
поставляемый
Normal file
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.1.0/lib/windows81/GalaSoft.MvvmLight.dll
поставляемый
Normal file
Двоичный файл не отображается.
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.1.0/lib/wp8/GalaSoft.MvvmLight.Extras.dll
поставляемый
Normal file
Двоичные данные
Samples/Navigation/packages/MvvmLightLibs.5.1.1.0/lib/wp8/GalaSoft.MvvmLight.Extras.dll
поставляемый
Normal file
Двоичный файл не отображается.
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче