-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the WPF backend for Xamarin.Forms (#917)
Add a new NuGet - add a targets file to the nuget to warn if the platform packages were not installed Update the pipeline: - use build artifacts everywhere - just disable tizen for Windows
- Loading branch information
1 parent
ec5f04f
commit e6b7934
Showing
69 changed files
with
2,533 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package> | ||
<metadata> | ||
|
||
<!-- package --> | ||
<id>SkiaSharp.Views.Forms.WPF</id> | ||
<title>SkiaSharp for Xamarin.Forms (WPF)</title> | ||
<version>1.0.0</version> | ||
<description> | ||
SkiaSharp for Xamarin.Forms is a set of views that can be used to draw on the screen. | ||
</description> | ||
<summary> | ||
SkiaSharp for Xamarin.Forms is a set of views that can be used to draw on the screen. | ||
</summary> | ||
<releaseNotes> | ||
Please visit https://go.microsoft.com/fwlink/?linkid=868517 to view the release notes. | ||
</releaseNotes> | ||
<projectUrl>https://go.microsoft.com/fwlink/?linkid=868515</projectUrl> | ||
<iconUrl>https://go.microsoft.com/fwlink/?linkid=868516</iconUrl> | ||
<tags>ui xamarin.forms xamarin graphics ios android linux windows uwp tvos macos tizen cross-platform skiasharp</tags> | ||
|
||
<!-- legal --> | ||
<licenseUrl>https://go.microsoft.com/fwlink/?linkid=868514</licenseUrl> | ||
<authors>Microsoft</authors> | ||
<owners>Microsoft</owners> | ||
<requireLicenseAcceptance>true</requireLicenseAcceptance> | ||
<copyright>© Microsoft Corporation. All rights reserved.</copyright> | ||
|
||
<dependencies> | ||
<dependency id="Xamarin.Forms" version="4.0.0.540366" /> | ||
<dependency id="Xamarin.Forms.Platform.WPF" version="4.0.0.540366" /> | ||
<dependency id="SkiaSharp" version="1.0.0" /> | ||
<dependency id="SkiaSharp.Views.Desktop.Common" version="1.0.0" /> | ||
<dependency id="SkiaSharp.Views.WindowsForms" version="1.0.0" /> | ||
<dependency id="SkiaSharp.Views.WPF" version="1.0.0" /> | ||
<dependency id="SkiaSharp.Views.Forms" version="1.0.0" /> | ||
<dependency id="OpenTK" version="3.0.1" /> | ||
<dependency id="OpenTK.GLControl" version="3.0.1" /> | ||
</dependencies> | ||
|
||
</metadata> | ||
<files> | ||
|
||
<!-- SkiaSharp.Views.Forms.dll --> | ||
<file src="lib/net45/SkiaSharp.Views.Forms.dll" /> | ||
<file src="lib/net45/SkiaSharp.Views.Forms.xml" /> | ||
|
||
<!-- the build bits --> | ||
<file src="build/net45/SkiaSharp.Views.Forms.WPF.props" /> | ||
|
||
<!-- legal --> | ||
<file src="LICENSE.txt" /> | ||
|
||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<configuration> | ||
<startup> | ||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> | ||
</startup> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<Application x:Class="SkiaSharpSample.WPF.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:SkiaSharpSample.WPF" | ||
StartupUri="MainWindow.xaml"> | ||
<Application.Resources> | ||
|
||
</Application.Resources> | ||
</Application> |
17 changes: 17 additions & 0 deletions
17
samples/Basic/Xamarin.Forms/SkiaSharpSample.WPF/App.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Configuration; | ||
using System.Data; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
|
||
namespace SkiaSharpSample.WPF | ||
{ | ||
/// <summary> | ||
/// Interaction logic for App.xaml | ||
/// </summary> | ||
public partial class App : Application | ||
{ | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
samples/Basic/Xamarin.Forms/SkiaSharpSample.WPF/MainWindow.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<forms:FormsApplicationPage x:Class="SkiaSharpSample.WPF.MainWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:forms="clr-namespace:Xamarin.Forms.Platform.WPF;assembly=Xamarin.Forms.Platform.WPF" | ||
xmlns:local="clr-namespace:SkiaSharpSample.WPF" | ||
mc:Ignorable="d" | ||
Title="SkiaSharpSample.WPF" Height="600" Width="800"> | ||
<Grid> | ||
|
||
</Grid> | ||
</forms:FormsApplicationPage> |
30 changes: 30 additions & 0 deletions
30
samples/Basic/Xamarin.Forms/SkiaSharpSample.WPF/MainWindow.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
using Xamarin.Forms; | ||
using Xamarin.Forms.Platform.WPF; | ||
|
||
namespace SkiaSharpSample.WPF | ||
{ | ||
public partial class MainWindow : FormsApplicationPage | ||
{ | ||
public MainWindow() | ||
{ | ||
InitializeComponent(); | ||
|
||
Forms.Init(); | ||
LoadApplication(new SkiaSharpSample.App()); | ||
} | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
samples/Basic/Xamarin.Forms/SkiaSharpSample.WPF/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using System.Reflection; | ||
using System.Resources; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
using System.Windows; | ||
|
||
// 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("SkiaSharpSample.WPF")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("SkiaSharpSample.WPF")] | ||
[assembly: AssemblyCopyright("Copyright © 2018")] | ||
[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)] | ||
|
||
//In order to begin building localizable applications, set | ||
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file | ||
//inside a <PropertyGroup>. For example, if you are using US english | ||
//in your source files, set the <UICulture> to en-US. Then uncomment | ||
//the NeutralResourceLanguage attribute below. Update the "en-US" in | ||
//the line below to match the UICulture setting in the project file. | ||
|
||
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] | ||
|
||
|
||
[assembly: ThemeInfo( | ||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located | ||
//(used if a resource is not found in the page, | ||
// or application resource dictionaries) | ||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located | ||
//(used if a resource is not found in the page, | ||
// app, or any theme specific resource dictionaries) | ||
)] | ||
|
||
|
||
// 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")] |
Oops, something went wrong.