Update Xamarin Forms to 3.6.0.264807
This commit is contained in:
parent
9e4719859c
commit
f6e889cf1d
|
@ -1,6 +1,4 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Internals;
|
||||
using Ooui.Forms;
|
||||
using System.IO;
|
||||
|
@ -143,6 +141,12 @@ namespace Xamarin.Forms
|
|||
public void QuitApplication()
|
||||
{
|
||||
}
|
||||
|
||||
public SizeRequest GetNativeSize(VisualElement view, double widthConstraint, double heightConstraint)
|
||||
{
|
||||
var renderer = Ooui.Forms.Platform.GetRenderer(view);
|
||||
return renderer.GetDesiredSize(widthConstraint, heightConstraint);
|
||||
}
|
||||
}
|
||||
|
||||
public class ViewInitializedEventArgs
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>1.0.0</Version>
|
||||
|
@ -18,7 +18,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Xamarin.Forms" Version="3.0.0.482510" />
|
||||
<PackageReference Include="Xamarin.Forms" Version="3.6.0.264807" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Extensions\" />
|
||||
|
|
|
@ -7,7 +7,10 @@ using Xamarin.Forms.Internals;
|
|||
|
||||
namespace Ooui.Forms
|
||||
{
|
||||
public class Platform : BindableObject, IPlatform, INavigation, IDisposable
|
||||
public class Platform : BindableObject, INavigation, IDisposable
|
||||
#pragma warning disable CS0618 // Type or member is obsolete
|
||||
, IPlatform
|
||||
#pragma warning restore CS0618 // Type or member is obsolete
|
||||
{
|
||||
bool _disposed;
|
||||
|
||||
|
@ -99,7 +102,7 @@ namespace Ooui.Forms
|
|||
base.OnBindingContextChanged ();
|
||||
}
|
||||
|
||||
public SizeRequest GetNativeSize (VisualElement view, double widthConstraint, double heightConstraint)
|
||||
public static SizeRequest GetNativeSize (VisualElement view, double widthConstraint, double heightConstraint)
|
||||
{
|
||||
var renderView = GetRenderer (view);
|
||||
if (renderView == null || renderView.NativeView == null)
|
||||
|
@ -116,8 +119,12 @@ namespace Ooui.Forms
|
|||
throw new NotImplementedException ();
|
||||
Page = newRoot;
|
||||
|
||||
#pragma warning disable CS0618 // Type or member is obsolete
|
||||
// The Platform property is no longer necessary, but we have to set it because some third-party
|
||||
// library might still be retrieving it and using it
|
||||
Page.Platform = this;
|
||||
AddChild (Page);
|
||||
#pragma warning restore CS0618 // Type or member is obsolete
|
||||
AddChild(Page);
|
||||
|
||||
Page.DescendantRemoved += HandleChildRemoved;
|
||||
|
||||
|
@ -232,5 +239,12 @@ namespace Ooui.Forms
|
|||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
#region obsolete
|
||||
SizeRequest IPlatform.GetNativeSize (VisualElement view, double widthConstraint, double heightConstraint)
|
||||
{
|
||||
return GetNativeSize(view, widthConstraint, heightConstraint);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Specialized;
|
||||
using System.ComponentModel;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Internals;
|
||||
using System.Linq;
|
||||
|
@ -161,18 +159,24 @@ namespace Ooui.Forms.Renderers
|
|||
|
||||
private void OnPopToRootRequested(object sender, NavigationRequestedEventArgs e)
|
||||
{
|
||||
#pragma warning disable CS0618 // Type or member is obsolete
|
||||
e.Realize = true;
|
||||
#pragma warning restore CS0618 // Type or member is obsolete
|
||||
}
|
||||
|
||||
private void OnPopRequested(object sender, NavigationRequestedEventArgs e)
|
||||
{
|
||||
#pragma warning disable CS0618 // Type or member is obsolete
|
||||
e.Realize = true;
|
||||
#pragma warning restore CS0618 // Type or member is obsolete
|
||||
}
|
||||
|
||||
// This is where you would draw the new contents.
|
||||
private void OnPushRequested(object sender, NavigationRequestedEventArgs e)
|
||||
{
|
||||
#pragma warning disable CS0618 // Type or member is obsolete
|
||||
e.Realize = true;
|
||||
#pragma warning restore CS0618 // Type or member is obsolete
|
||||
}
|
||||
|
||||
private string GenerateFullHash()
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||
|
@ -9,7 +9,7 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.9" />
|
||||
<PackageReference Include="Xamarin.Forms" Version="3.0.0.482510" />
|
||||
<PackageReference Include="Xamarin.Forms" Version="3.6.0.264807" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -55,7 +55,7 @@ namespace Samples
|
|||
sample.Publish();
|
||||
}
|
||||
|
||||
var samplePage = new SamplePickerSample(samples);
|
||||
var samplePage = new SamplePicker(samples);
|
||||
samplePage.Publish();
|
||||
|
||||
UI.Present (samplePage.Path);
|
||||
|
|
|
@ -7,11 +7,11 @@ using Element = Ooui.Element;
|
|||
|
||||
namespace Samples
|
||||
{
|
||||
public class SamplePickerSample : ISample
|
||||
public class SamplePicker : ISample
|
||||
{
|
||||
private readonly IEnumerable<ISample> _samplePages;
|
||||
|
||||
public SamplePickerSample(IEnumerable<ISample> samplePages)
|
||||
public SamplePicker(IEnumerable<ISample> samplePages)
|
||||
{
|
||||
_samplePages = samplePages.OrderBy(s => s.Title);
|
||||
}
|
|
@ -10,7 +10,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Xamarin.Forms" Version="3.0.0.482510" />
|
||||
<PackageReference Include="Xamarin.Forms" Version="3.6.0.264807" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Loading…
Reference in New Issue