Skip to content

Commit b5884cd

Browse files
committed
add xamarin forms sample for pdftron sdk
0 parents  commit b5884cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+38748
-0
lines changed

Common/Key.cs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
using System.Collections.Generic;
3+
4+
namespace pdftron.Demo
5+
{
6+
public class Key
7+
{
8+
public static string LicenseKey = "your_license_key_goes_here";
9+
}
10+
}

ContentPage/CustomRenderer.sln

+148
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27130.2024
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomRenderer", "CustomRenderer\CustomRenderer.csproj", "{40272DDB-4E7A-4988-B62A-38B4458F2510}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomRenderer.iOS", "iOS\CustomRenderer.iOS.csproj", "{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomRenderer.Droid", "Droid\CustomRenderer.Droid.csproj", "{A47F6F63-D74D-4C78-BB34-518C57C41DEE}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomRenderer.UWP", "UWP\CustomRenderer.UWP.csproj", "{B975E2A7-E523-4D62-92B0-41606E74D805}"
13+
EndProject
14+
Global
15+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
16+
Debug|Any CPU = Debug|Any CPU
17+
Debug|ARM = Debug|ARM
18+
Debug|iPhone = Debug|iPhone
19+
Debug|iPhoneSimulator = Debug|iPhoneSimulator
20+
Debug|Mixed Platforms = Debug|Mixed Platforms
21+
Debug|x64 = Debug|x64
22+
Debug|x86 = Debug|x86
23+
Release|Any CPU = Release|Any CPU
24+
Release|ARM = Release|ARM
25+
Release|iPhone = Release|iPhone
26+
Release|iPhoneSimulator = Release|iPhoneSimulator
27+
Release|Mixed Platforms = Release|Mixed Platforms
28+
Release|x64 = Release|x64
29+
Release|x86 = Release|x86
30+
EndGlobalSection
31+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
32+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Debug|Any CPU.Build.0 = Debug|Any CPU
34+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Debug|ARM.ActiveCfg = Debug|Any CPU
35+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Debug|iPhone.ActiveCfg = Debug|Any CPU
36+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Debug|iPhone.Build.0 = Debug|Any CPU
37+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
38+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
39+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
40+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
41+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Debug|x64.ActiveCfg = Debug|Any CPU
42+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Debug|x64.Build.0 = Debug|Any CPU
43+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Debug|x86.ActiveCfg = Debug|Any CPU
44+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Release|Any CPU.ActiveCfg = Release|Any CPU
45+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Release|Any CPU.Build.0 = Release|Any CPU
46+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Release|ARM.ActiveCfg = Release|Any CPU
47+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Release|iPhone.ActiveCfg = Release|Any CPU
48+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Release|iPhone.Build.0 = Release|Any CPU
49+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
50+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
51+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
52+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Release|Mixed Platforms.Build.0 = Release|Any CPU
53+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Release|x64.ActiveCfg = Release|Any CPU
54+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Release|x64.Build.0 = Release|Any CPU
55+
{40272DDB-4E7A-4988-B62A-38B4458F2510}.Release|x86.ActiveCfg = Release|Any CPU
56+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
57+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
58+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Debug|ARM.ActiveCfg = Debug|iPhone
59+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Debug|iPhone.ActiveCfg = Debug|iPhone
60+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Debug|iPhone.Build.0 = Debug|iPhone
61+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
62+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
63+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Debug|Mixed Platforms.ActiveCfg = Debug|iPhone
64+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Debug|Mixed Platforms.Build.0 = Debug|iPhone
65+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Debug|x64.ActiveCfg = Debug|iPhone
66+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Debug|x86.ActiveCfg = Debug|iPhone
67+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Release|Any CPU.ActiveCfg = Release|iPhone
68+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Release|Any CPU.Build.0 = Release|iPhone
69+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Release|ARM.ActiveCfg = Release|iPhoneSimulator
70+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Release|iPhone.ActiveCfg = Release|iPhone
71+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Release|iPhone.Build.0 = Release|iPhone
72+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
73+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
74+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Release|Mixed Platforms.ActiveCfg = Release|iPhoneSimulator
75+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Release|Mixed Platforms.Build.0 = Release|iPhoneSimulator
76+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Release|x64.ActiveCfg = Release|iPhoneSimulator
77+
{169D5C20-8FDA-48FC-96AF-2F6E09BB9B4F}.Release|x86.ActiveCfg = Release|iPhoneSimulator
78+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
79+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|Any CPU.Build.0 = Debug|Any CPU
80+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
81+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|ARM.ActiveCfg = Debug|Any CPU
82+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|iPhone.ActiveCfg = Debug|Any CPU
83+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|iPhone.Build.0 = Debug|Any CPU
84+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
85+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
86+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
87+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
88+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|Mixed Platforms.Deploy.0 = Debug|Any CPU
89+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|x64.ActiveCfg = Debug|Any CPU
90+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|x64.Build.0 = Debug|Any CPU
91+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|x64.Deploy.0 = Debug|Any CPU
92+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Debug|x86.ActiveCfg = Debug|Any CPU
93+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|Any CPU.ActiveCfg = Release|Any CPU
94+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|Any CPU.Build.0 = Release|Any CPU
95+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|ARM.ActiveCfg = Release|Any CPU
96+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|iPhone.ActiveCfg = Release|Any CPU
97+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|iPhone.Build.0 = Release|Any CPU
98+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
99+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
100+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
101+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
102+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|Mixed Platforms.Deploy.0 = Release|Any CPU
103+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|x64.ActiveCfg = Release|Any CPU
104+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|x64.Build.0 = Release|Any CPU
105+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|x64.Deploy.0 = Release|Any CPU
106+
{A47F6F63-D74D-4C78-BB34-518C57C41DEE}.Release|x86.ActiveCfg = Release|Any CPU
107+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|Any CPU.ActiveCfg = Debug|x86
108+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|Any CPU.Build.0 = Debug|x86
109+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|Any CPU.Deploy.0 = Debug|x86
110+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|ARM.ActiveCfg = Debug|ARM
111+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|ARM.Build.0 = Debug|ARM
112+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|ARM.Deploy.0 = Debug|ARM
113+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|iPhone.ActiveCfg = Debug|x86
114+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|iPhoneSimulator.ActiveCfg = Debug|x86
115+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
116+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|Mixed Platforms.Build.0 = Debug|x86
117+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|Mixed Platforms.Deploy.0 = Debug|x86
118+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|x64.ActiveCfg = Debug|x64
119+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|x64.Build.0 = Debug|x64
120+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|x64.Deploy.0 = Debug|x64
121+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|x86.ActiveCfg = Debug|x86
122+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|x86.Build.0 = Debug|x86
123+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Debug|x86.Deploy.0 = Debug|x86
124+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|Any CPU.ActiveCfg = Release|x86
125+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|Any CPU.Build.0 = Release|x86
126+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|Any CPU.Deploy.0 = Release|x86
127+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|ARM.ActiveCfg = Release|ARM
128+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|ARM.Build.0 = Release|ARM
129+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|ARM.Deploy.0 = Release|ARM
130+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|iPhone.ActiveCfg = Release|x86
131+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|iPhoneSimulator.ActiveCfg = Release|x86
132+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|Mixed Platforms.ActiveCfg = Release|x86
133+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|Mixed Platforms.Build.0 = Release|x86
134+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|Mixed Platforms.Deploy.0 = Release|x86
135+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|x64.ActiveCfg = Release|x64
136+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|x64.Build.0 = Release|x64
137+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|x64.Deploy.0 = Release|x64
138+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|x86.ActiveCfg = Release|x86
139+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|x86.Build.0 = Release|x86
140+
{B975E2A7-E523-4D62-92B0-41606E74D805}.Release|x86.Deploy.0 = Release|x86
141+
EndGlobalSection
142+
GlobalSection(SolutionProperties) = preSolution
143+
HideSolutionNode = FALSE
144+
EndGlobalSection
145+
GlobalSection(ExtensibilityGlobals) = postSolution
146+
SolutionGuid = {A60CF3AF-4E43-475C-A917-07F945AC9471}
147+
EndGlobalSection
148+
EndGlobal

ContentPage/CustomRenderer/App.cs

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using Xamarin.Forms;
2+
using Xamarin.Forms.Xaml;
3+
4+
[assembly:XamlCompilation(XamlCompilationOptions.Compile)]
5+
namespace CustomRenderer
6+
{
7+
public class App : Application
8+
{
9+
public App ()
10+
{
11+
MainPage = new NavigationPage (new CustomRenderer.MainPage ());
12+
}
13+
14+
protected override void OnStart ()
15+
{
16+
// Handle when your app starts
17+
}
18+
19+
protected override void OnSleep ()
20+
{
21+
// Handle when your app sleeps
22+
}
23+
24+
protected override void OnResume ()
25+
{
26+
// Handle when your app resumes
27+
}
28+
}
29+
}
30+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6+
<ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
7+
<ProjectGuid>{40272DDB-4E7A-4988-B62A-38B4458F2510}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<RootNamespace>CustomRenderer</RootNamespace>
10+
<AssemblyName>CustomRenderer</AssemblyName>
11+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
12+
<TargetFrameworkProfile>Profile259</TargetFrameworkProfile>
13+
<MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion>
14+
<NuGetPackageImportStamp>
15+
</NuGetPackageImportStamp>
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18+
<DebugSymbols>true</DebugSymbols>
19+
<DebugType>full</DebugType>
20+
<Optimize>false</Optimize>
21+
<OutputPath>bin\Debug</OutputPath>
22+
<DefineConstants>DEBUG;</DefineConstants>
23+
<ErrorReport>prompt</ErrorReport>
24+
<WarningLevel>4</WarningLevel>
25+
<ConsolePause>false</ConsolePause>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28+
<DebugType>full</DebugType>
29+
<Optimize>true</Optimize>
30+
<OutputPath>bin\Release</OutputPath>
31+
<ErrorReport>prompt</ErrorReport>
32+
<WarningLevel>4</WarningLevel>
33+
<ConsolePause>false</ConsolePause>
34+
</PropertyGroup>
35+
<ItemGroup>
36+
<Compile Include="App.cs" />
37+
<Compile Include="Properties\AssemblyInfo.cs" />
38+
<Compile Include="MainPage.xaml.cs">
39+
<DependentUpon>MainPage.xaml</DependentUpon>
40+
</Compile>
41+
<Compile Include="ViewerPage.xaml.cs">
42+
<DependentUpon>ViewerPage.xaml</DependentUpon>
43+
</Compile>
44+
<Compile Include="ViewerPageCS.cs" />
45+
</ItemGroup>
46+
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
47+
<ItemGroup>
48+
<EmbeddedResource Include="MainPage.xaml">
49+
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
50+
</EmbeddedResource>
51+
</ItemGroup>
52+
<ItemGroup>
53+
<None Include="packages.config" />
54+
</ItemGroup>
55+
<ItemGroup>
56+
<Reference Include="Xamarin.Forms.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null">
57+
<HintPath>..\packages\Xamarin.Forms.2.5.0.280555\lib\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.Core.dll</HintPath>
58+
<Private>True</Private>
59+
</Reference>
60+
<Reference Include="Xamarin.Forms.Platform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
61+
<HintPath>..\packages\Xamarin.Forms.2.5.0.280555\lib\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.Platform.dll</HintPath>
62+
<Private>True</Private>
63+
</Reference>
64+
<Reference Include="Xamarin.Forms.Xaml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null">
65+
<HintPath>..\packages\Xamarin.Forms.2.5.0.280555\lib\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.Xaml.dll</HintPath>
66+
<Private>True</Private>
67+
</Reference>
68+
</ItemGroup>
69+
<ItemGroup>
70+
<EmbeddedResource Include="ViewerPage.xaml">
71+
<Generator>MSBuild:UpdateDesignTimeXaml</Generator>
72+
<SubType>Designer</SubType>
73+
</EmbeddedResource>
74+
</ItemGroup>
75+
<Import Project="..\packages\Xamarin.Forms.2.5.0.280555\build\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.targets" Condition="Exists('..\packages\Xamarin.Forms.2.5.0.280555\build\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.targets')" />
76+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
77+
<PropertyGroup>
78+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText>
79+
</PropertyGroup>
80+
<Error Condition="!Exists('..\packages\Xamarin.Forms.2.5.0.280555\build\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Xamarin.Forms.2.5.0.280555\build\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.targets'))" />
81+
</Target>
82+
</Project>
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4+
x:Class="CustomRenderer.MainPage"
5+
Title="Main Page">
6+
<ContentPage.Content>
7+
<StackLayout>
8+
<Button x:Name="openViewerButton" Text="Open Viewer" HorizontalOptions="Center" VerticalOptions="CenterAndExpand" Clicked="OnOpenViewerButtonClicked" />
9+
</StackLayout>
10+
</ContentPage.Content>
11+
</ContentPage>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System;
2+
using Xamarin.Forms;
3+
4+
namespace CustomRenderer
5+
{
6+
public partial class MainPage : ContentPage
7+
{
8+
public MainPage ()
9+
{
10+
InitializeComponent ();
11+
}
12+
13+
async void OnOpenViewerButtonClicked(object sender, EventArgs e)
14+
{
15+
await Navigation.PushAsync(new ViewerPage());
16+
}
17+
}
18+
}
19+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
using System.Reflection;
2+
using System.Runtime.CompilerServices;
3+
4+
// Information about this assembly is defined by the following attributes.
5+
// Change them to the values specific to your project.
6+
7+
[assembly: AssemblyTitle ("CustomRenderer")]
8+
[assembly: AssemblyDescription ("")]
9+
[assembly: AssemblyConfiguration ("")]
10+
[assembly: AssemblyCompany ("")]
11+
[assembly: AssemblyProduct ("")]
12+
[assembly: AssemblyCopyright ("davidbritch")]
13+
[assembly: AssemblyTrademark ("")]
14+
[assembly: AssemblyCulture ("")]
15+
16+
// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
17+
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
18+
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
19+
20+
[assembly: AssemblyVersion ("1.0.*")]
21+
22+
// The following attributes are used to specify the signing key for the assembly,
23+
// if desired. See the Mono documentation for more information about signing.
24+
25+
//[assembly: AssemblyDelaySign(false)]
26+
//[assembly: AssemblyKeyFile("")]
27+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
4+
x:Class="CustomRenderer.ViewerPage"
5+
Title="Viewer Page">
6+
<ContentPage.Content>
7+
</ContentPage.Content>
8+
</ContentPage>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
using Xamarin.Forms;
8+
using Xamarin.Forms.Xaml;
9+
10+
namespace CustomRenderer
11+
{
12+
[XamlCompilation(XamlCompilationOptions.Compile)]
13+
public partial class ViewerPage : ContentPage
14+
{
15+
public ViewerPage()
16+
{
17+
InitializeComponent();
18+
}
19+
}
20+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using Xamarin.Forms;
2+
3+
namespace CustomRenderer
4+
{
5+
public class ViewerPageCS : ContentPage
6+
{
7+
public ViewerPageCS()
8+
{
9+
}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="Xamarin.Forms" version="2.5.0.280555" targetFramework="portable45-net45+win8+wp8+wpa81" />
4+
</packages>

0 commit comments

Comments
 (0)