[forms] multiselect listview (WinPhone81)

This commit is contained in:
Craig Dunn 2015-12-16 12:03:10 -08:00
Родитель 27efc16e1d
Коммит 00d4845433
21 изменённых файлов: 553 добавлений и 31 удалений

1
.gitignore поставляемый
Просмотреть файл

@ -4,6 +4,7 @@
*.DS_Store
*.nib
*.suo
*.csproj.user
packages/
Components/

Просмотреть файл

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -14,7 +14,7 @@
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
<AndroidApplication>True</AndroidApplication>
<AndroidUseLatestPlatformSdk>True</AndroidUseLatestPlatformSdk>
<AssemblyName>Multiselect.Droid</AssemblyName>
<AssemblyName>MultiselectDroid</AssemblyName>
<TargetFrameworkVersion>v6.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">

Просмотреть файл

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="1" android:versionName="1.0" package="com.companyname.multiselect.multiselect">
<uses-sdk android:minSdkVersion="15" />
<application android:label="Multiselect">
</application>
</manifest>
<application android:label="Multiselect"></application>
</manifest>

Просмотреть файл

@ -1,57 +1,122 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Multiselect", "Multiselect\Multiselect.csproj", "{9233E573-A53A-4193-A36A-3DAF414355DD}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Multiselect.iOS", "iOS\Multiselect.iOS.csproj", "{8010F04B-1E76-46BA-9721-DBD14FF41244}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Multiselect.Droid", "Droid\Multiselect.Droid.csproj", "{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mulitselect.WinPhone81", "WinPhone81\Mulitselect.WinPhone81.csproj", "{18629932-DFF9-44C0-8D84-288246391942}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Debug|ARM = Debug|ARM
Debug|iPhone = Debug|iPhone
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|iPhone = Release|iPhone
Release|iPhoneSimulator = Release|iPhoneSimulator
Debug|iPhone = Debug|iPhone
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|iPhone.ActiveCfg = Debug|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|iPhone.Build.0 = Debug|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|Any CPU.ActiveCfg = Release|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|Any CPU.Build.0 = Release|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|iPhone.ActiveCfg = Release|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|iPhone.Build.0 = Release|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{9233E573-A53A-4193-A36A-3DAF414355DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Debug|ARM.ActiveCfg = Debug|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Debug|ARM.Build.0 = Debug|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Debug|iPhone.Build.0 = Debug|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Debug|x86.ActiveCfg = Debug|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Debug|x86.Build.0 = Debug|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Release|Any CPU.Build.0 = Release|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Release|ARM.ActiveCfg = Release|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Release|ARM.Build.0 = Release|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Release|iPhone.ActiveCfg = Release|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Release|iPhone.Build.0 = Release|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Release|x86.ActiveCfg = Release|Any CPU
{9233E573-A53A-4193-A36A-3DAF414355DD}.Release|x86.Build.0 = Release|Any CPU
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|ARM.ActiveCfg = Debug|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|iPhone.ActiveCfg = Debug|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|iPhone.Build.0 = Debug|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Debug|x86.ActiveCfg = Debug|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|Any CPU.ActiveCfg = Release|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|Any CPU.Build.0 = Release|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|ARM.ActiveCfg = Release|iPhoneSimulator
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|iPhone.ActiveCfg = Release|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|iPhone.Build.0 = Release|iPhone
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{8010F04B-1E76-46BA-9721-DBD14FF41244}.Release|x86.ActiveCfg = Release|iPhoneSimulator
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Debug|ARM.ActiveCfg = Debug|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Debug|ARM.Build.0 = Debug|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Debug|ARM.Deploy.0 = Debug|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Debug|iPhone.Build.0 = Debug|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Debug|x86.ActiveCfg = Debug|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Debug|x86.Build.0 = Debug|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Debug|x86.Deploy.0 = Debug|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Release|Any CPU.Build.0 = Release|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Release|ARM.ActiveCfg = Release|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Release|ARM.Build.0 = Release|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Release|ARM.Deploy.0 = Release|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Release|iPhone.ActiveCfg = Release|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Release|iPhone.Build.0 = Release|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Release|x86.ActiveCfg = Release|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Release|x86.Build.0 = Release|Any CPU
{AE9D939F-4582-484A-B3FC-71D6B7DE13E0}.Release|x86.Deploy.0 = Release|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Debug|Any CPU.Build.0 = Debug|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Debug|ARM.ActiveCfg = Debug|ARM
{18629932-DFF9-44C0-8D84-288246391942}.Debug|ARM.Build.0 = Debug|ARM
{18629932-DFF9-44C0-8D84-288246391942}.Debug|ARM.Deploy.0 = Debug|ARM
{18629932-DFF9-44C0-8D84-288246391942}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Debug|iPhone.Build.0 = Debug|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Debug|iPhone.Deploy.0 = Debug|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Debug|x86.ActiveCfg = Debug|x86
{18629932-DFF9-44C0-8D84-288246391942}.Debug|x86.Build.0 = Debug|x86
{18629932-DFF9-44C0-8D84-288246391942}.Debug|x86.Deploy.0 = Debug|x86
{18629932-DFF9-44C0-8D84-288246391942}.Release|Any CPU.ActiveCfg = Release|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Release|Any CPU.Build.0 = Release|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Release|Any CPU.Deploy.0 = Release|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Release|ARM.ActiveCfg = Release|ARM
{18629932-DFF9-44C0-8D84-288246391942}.Release|ARM.Build.0 = Release|ARM
{18629932-DFF9-44C0-8D84-288246391942}.Release|ARM.Deploy.0 = Release|ARM
{18629932-DFF9-44C0-8D84-288246391942}.Release|iPhone.ActiveCfg = Release|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Release|iPhone.Build.0 = Release|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Release|iPhone.Deploy.0 = Release|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU
{18629932-DFF9-44C0-8D84-288246391942}.Release|x86.ActiveCfg = Release|x86
{18629932-DFF9-44C0-8D84-288246391942}.Release|x86.Build.0 = Release|x86
{18629932-DFF9-44C0-8D84-288246391942}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Просмотреть файл

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -9,7 +9,10 @@
<RootNamespace>Multiselect</RootNamespace>
<AssemblyName>Multiselect</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkProfile>Profile78</TargetFrameworkProfile>
<TargetFrameworkProfile>Profile259</TargetFrameworkProfile>
<MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -46,14 +49,17 @@
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Reference Include="Xamarin.Forms.Core">
<Reference Include="Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Xamarin.Forms.2.0.0.6490\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xamarin.Forms.Xaml">
<HintPath>..\packages\Xamarin.Forms.2.0.0.6490\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Xaml.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Platform">
<Reference Include="Xamarin.Forms.Platform, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Xamarin.Forms.2.0.0.6490\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Platform.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xamarin.Forms.Xaml, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Xamarin.Forms.2.0.0.6490\lib\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.Xaml.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>

Просмотреть файл

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Xamarin.Forms" version="2.0.0.6490" targetFramework="portable-net45+win+wp80+MonoTouch10+MonoAndroid10+xamarinmac20+xamarinios10" />
<package id="Xamarin.Forms" version="2.0.0.6490" targetFramework="portable45-net45+win8" />
</packages>

Просмотреть файл

@ -0,0 +1,7 @@
<Application
x:Class="Mulitselect.WinPhone.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Mulitselect.WinPhone">
</Application>

Просмотреть файл

@ -0,0 +1,136 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.ApplicationModel;
using Windows.ApplicationModel.Activation;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Media.Animation;
using Windows.UI.Xaml.Navigation;
// The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=391641
namespace Mulitselect.WinPhone
{
/// <summary>
/// Provides application-specific behavior to supplement the default Application class.
/// </summary>
public sealed partial class App : Application
{
private TransitionCollection transitions;
/// <summary>
/// Initializes the singleton application object. This is the first line of authored code
/// executed, and as such is the logical equivalent of main() or WinMain().
/// </summary>
public App()
{
this.InitializeComponent();
this.Suspending += this.OnSuspending;
}
/// <summary>
/// Invoked when the application is launched normally by the end user. Other entry points
/// will be used when the application is launched to open a specific file, to display
/// search results, and so forth.
/// </summary>
/// <param name="e">Details about the launch request and process.</param>
protected override void OnLaunched(LaunchActivatedEventArgs e)
{
#if DEBUG
if (System.Diagnostics.Debugger.IsAttached)
{
this.DebugSettings.EnableFrameRateCounter = true;
}
#endif
Frame rootFrame = Window.Current.Content as Frame;
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == null)
{
// Create a Frame to act as the navigation context and navigate to the first page
rootFrame = new Frame();
// TODO: change this value to a cache size that is appropriate for your application
rootFrame.CacheSize = 1;
// Set the default language
rootFrame.Language = Windows.Globalization.ApplicationLanguages.Languages[0];
Xamarin.Forms.Forms.Init(e);
if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
{
// TODO: Load state from previously suspended application
}
// Place the frame in the current Window
Window.Current.Content = rootFrame;
}
if (rootFrame.Content == null)
{
// Removes the turnstile navigation for startup.
if (rootFrame.ContentTransitions != null)
{
this.transitions = new TransitionCollection();
foreach (var c in rootFrame.ContentTransitions)
{
this.transitions.Add(c);
}
}
rootFrame.ContentTransitions = null;
rootFrame.Navigated += this.RootFrame_FirstNavigated;
// When the navigation stack isn't restored navigate to the first page,
// configuring the new page by passing required information as a navigation
// parameter
if (!rootFrame.Navigate(typeof(MainPage), e.Arguments))
{
throw new Exception("Failed to create initial page");
}
}
// Ensure the current window is active
Window.Current.Activate();
}
/// <summary>
/// Restores the content transitions after the app has launched.
/// </summary>
/// <param name="sender">The object where the handler is attached.</param>
/// <param name="e">Details about the navigation event.</param>
private void RootFrame_FirstNavigated(object sender, NavigationEventArgs e)
{
var rootFrame = sender as Frame;
rootFrame.ContentTransitions = this.transitions ?? new TransitionCollection() { new NavigationThemeTransition() };
rootFrame.Navigated -= this.RootFrame_FirstNavigated;
}
/// <summary>
/// Invoked when application execution is being suspended. Application state is saved
/// without knowing whether the application will be terminated or resumed with the contents
/// of memory still intact.
/// </summary>
/// <param name="sender">The source of the suspend request.</param>
/// <param name="e">Details about the suspend request.</param>
private void OnSuspending(object sender, SuspendingEventArgs e)
{
var deferral = e.SuspendingOperation.GetDeferral();
// TODO: Save application state and stop any background activity
deferral.Complete();
}
}
}

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 2.5 KiB

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 753 B

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 14 KiB

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 1.1 KiB

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 2.1 KiB

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 4.4 KiB

Просмотреть файл

@ -0,0 +1,12 @@
<forms:WindowsPhonePage
x:Class="Mulitselect.WinPhone.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Mulitselect.WinPhone"
xmlns:forms="using:Xamarin.Forms.Platform.WinRT"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
</forms:WindowsPhonePage>

Просмотреть файл

@ -0,0 +1,50 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices.WindowsRuntime;
using Windows.Foundation;
using Windows.Foundation.Collections;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Navigation;
// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=391641
namespace Mulitselect.WinPhone
{
/// <summary>
/// An empty page that can be used on its own or navigated to within a Frame.
/// </summary>
public sealed partial class MainPage
{
public MainPage()
{
this.InitializeComponent();
this.NavigationCacheMode = NavigationCacheMode.Required;
LoadApplication(new Multiselect.App());
}
/// <summary>
/// Invoked when this page is about to be displayed in a Frame.
/// </summary>
/// <param name="e">Event data that describes how this page was reached.
/// This parameter is typically used to configure the page.</param>
protected override void OnNavigatedTo(NavigationEventArgs e)
{
// TODO: Prepare page for display here.
// TODO: If your application contains multiple pages, ensure that you are
// handling the hardware Back button by registering for the
// Windows.Phone.UI.Input.HardwareButtons.BackPressed event.
// If you are using the NavigationHelper provided by some templates,
// this event is handled for you.
}
}
}

Просмотреть файл

@ -0,0 +1,167 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{18629932-DFF9-44C0-8D84-288246391942}</ProjectGuid>
<OutputType>AppContainerExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Mulitselect.WinPhone</RootNamespace>
<AssemblyName>MulitselectWinPhone81</AssemblyName>
<DefaultLanguage>en-US</DefaultLanguage>
<TargetPlatformVersion>8.1</TargetPlatformVersion>
<MinimumVisualStudioVersion>12</MinimumVisualStudioVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{76F1466A-8B6D-4E39-A767-685A06062A39};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\ARM\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
<OutputPath>bin\ARM\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>ARM</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
<NoWarn>;2008</NoWarn>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE;NETFX_CORE;WINDOWS_PHONE_APP</DefineConstants>
<Optimize>true</Optimize>
<NoWarn>;2008</NoWarn>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<UseVSHostingProcess>false</UseVSHostingProcess>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
<Compile Include="MainPage.xaml.cs">
<DependentUpon>MainPage.xaml</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
</ItemGroup>
<ItemGroup>
<Content Include="Assets\Logo.scale-240.png" />
<Content Include="Assets\SmallLogo.scale-240.png" />
<Content Include="Assets\SplashScreen.scale-240.png" />
<Content Include="Assets\Square71x71Logo.scale-240.png" />
<Content Include="Assets\StoreLogo.scale-240.png" />
<Content Include="Assets\WideLogo.scale-240.png" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainPage.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<Reference Include="Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Xamarin.Forms.2.0.0.6490\lib\wpa81\Xamarin.Forms.Core.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xamarin.Forms.Platform, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Xamarin.Forms.2.0.0.6490\lib\wpa81\Xamarin.Forms.Platform.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xamarin.Forms.Platform.WinRT, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Xamarin.Forms.2.0.0.6490\lib\wpa81\Xamarin.Forms.Platform.WinRT.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xamarin.Forms.Platform.WinRT.Phone, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Xamarin.Forms.2.0.0.6490\lib\wpa81\Xamarin.Forms.Platform.WinRT.Phone.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Xamarin.Forms.Xaml, Version=2.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Xamarin.Forms.2.0.0.6490\lib\wpa81\Xamarin.Forms.Xaml.dll</HintPath>
<Private>True</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Multiselect\Multiselect.csproj">
<Project>{9233e573-a53a-4193-a36a-3daf414355dd}</Project>
<Name>Multiselect</Name>
</ProjectReference>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '12.0' ">
<VisualStudioVersion>12.0</VisualStudioVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(TargetPlatformIdentifier)' == '' ">
<TargetPlatformIdentifier>WindowsPhoneApp</TargetPlatformIdentifier>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
<Import Project="..\packages\Xamarin.Forms.2.0.0.6490\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets" Condition="Exists('..\packages\Xamarin.Forms.2.0.0.6490\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Xamarin.Forms.2.0.0.6490\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Xamarin.Forms.2.0.0.6490\build\portable-win+net45+wp80+win81+wpa81+MonoAndroid10+MonoTouch10+Xamarin.iOS10\Xamarin.Forms.targets'))" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

Просмотреть файл

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest" xmlns:m3="http://schemas.microsoft.com/appx/2014/manifest" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest">
<Identity Name="af34e8bb-9fee-4dca-8d80-869c3ad25472"
Publisher="CN=Craig"
Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="af34e8bb-9fee-4dca-8d80-869c3ad25472" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<Properties>
<DisplayName>Mulitselect.WinPhone</DisplayName>
<PublisherDisplayName>Craig</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Prerequisites>
<OSMinVersion>6.3.1</OSMinVersion>
<OSMaxVersionTested>6.3.1</OSMaxVersionTested>
</Prerequisites>
<Resources>
<Resource Language="x-generate"/>
</Resources>
<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="Mulitselect.WinPhone.App">
<m3:VisualElements
DisplayName="Mulitselect.WinPhone"
Square150x150Logo="Assets\Logo.png"
Square44x44Logo="Assets\SmallLogo.png"
Description="Mulitselect.WinPhone"
ForegroundText="light"
BackgroundColor="transparent">
<m3:DefaultTile Wide310x150Logo="Assets\WideLogo.png" Square71x71Logo="Assets\Square71x71Logo.png"/>
<m3:SplashScreen Image="Assets\SplashScreen.png"/>
</m3:VisualElements>
</Application>
</Applications>
<Capabilities>
<Capability Name="internetClientServer" />
</Capabilities>
</Package>

Просмотреть файл

@ -0,0 +1,29 @@
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("Mulitselect.WinPhone")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Mulitselect.WinPhone")]
[assembly: AssemblyCopyright("Copyright © 2015")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 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")]
[assembly: ComVisible(false)]

Просмотреть файл

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Xamarin.Forms" version="2.0.0.6490" targetFramework="wpa81" />
</packages>

Просмотреть файл

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -8,7 +8,7 @@
<OutputType>Exe</OutputType>
<RootNamespace>Multiselect.iOS</RootNamespace>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<AssemblyName>Multiselect.iOS</AssemblyName>
<AssemblyName>MultiselectiOS</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
<DebugSymbols>true</DebugSymbols>
@ -99,7 +99,9 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\Contents.json" />
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\Contents.json">
<InProject>false</InProject>
</ImageAsset>
</ItemGroup>
<ItemGroup>
<InterfaceDefinition Include="Resources\LaunchScreen.xib" />