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;
|
||||||
using System.Diagnostics;
|
|
||||||
using Xamarin.Forms;
|
|
||||||
using Xamarin.Forms.Internals;
|
using Xamarin.Forms.Internals;
|
||||||
using Ooui.Forms;
|
using Ooui.Forms;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
@ -143,6 +141,12 @@ namespace Xamarin.Forms
|
||||||
public void QuitApplication()
|
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
|
public class ViewInitializedEventArgs
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>1.0.0</Version>
|
<Version>1.0.0</Version>
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Xamarin.Forms" Version="3.0.0.482510" />
|
<PackageReference Include="Xamarin.Forms" Version="3.6.0.264807" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Extensions\" />
|
<Folder Include="Extensions\" />
|
||||||
|
|
|
@ -7,7 +7,10 @@ using Xamarin.Forms.Internals;
|
||||||
|
|
||||||
namespace Ooui.Forms
|
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;
|
bool _disposed;
|
||||||
|
|
||||||
|
@ -99,7 +102,7 @@ namespace Ooui.Forms
|
||||||
base.OnBindingContextChanged ();
|
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);
|
var renderView = GetRenderer (view);
|
||||||
if (renderView == null || renderView.NativeView == null)
|
if (renderView == null || renderView.NativeView == null)
|
||||||
|
@ -116,8 +119,12 @@ namespace Ooui.Forms
|
||||||
throw new NotImplementedException ();
|
throw new NotImplementedException ();
|
||||||
Page = newRoot;
|
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;
|
Page.Platform = this;
|
||||||
AddChild (Page);
|
#pragma warning restore CS0618 // Type or member is obsolete
|
||||||
|
AddChild(Page);
|
||||||
|
|
||||||
Page.DescendantRemoved += HandleChildRemoved;
|
Page.DescendantRemoved += HandleChildRemoved;
|
||||||
|
|
||||||
|
@ -232,5 +239,12 @@ namespace Ooui.Forms
|
||||||
{
|
{
|
||||||
throw new NotImplementedException ();
|
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;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Specialized;
|
using System.Collections.Specialized;
|
||||||
using System.ComponentModel;
|
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Text;
|
|
||||||
using Xamarin.Forms;
|
using Xamarin.Forms;
|
||||||
using Xamarin.Forms.Internals;
|
using Xamarin.Forms.Internals;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
@ -161,18 +159,24 @@ namespace Ooui.Forms.Renderers
|
||||||
|
|
||||||
private void OnPopToRootRequested(object sender, NavigationRequestedEventArgs e)
|
private void OnPopToRootRequested(object sender, NavigationRequestedEventArgs e)
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0618 // Type or member is obsolete
|
||||||
e.Realize = true;
|
e.Realize = true;
|
||||||
|
#pragma warning restore CS0618 // Type or member is obsolete
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnPopRequested(object sender, NavigationRequestedEventArgs e)
|
private void OnPopRequested(object sender, NavigationRequestedEventArgs e)
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0618 // Type or member is obsolete
|
||||||
e.Realize = true;
|
e.Realize = true;
|
||||||
|
#pragma warning restore CS0618 // Type or member is obsolete
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is where you would draw the new contents.
|
// This is where you would draw the new contents.
|
||||||
private void OnPushRequested(object sender, NavigationRequestedEventArgs e)
|
private void OnPushRequested(object sender, NavigationRequestedEventArgs e)
|
||||||
{
|
{
|
||||||
|
#pragma warning disable CS0618 // Type or member is obsolete
|
||||||
e.Realize = true;
|
e.Realize = true;
|
||||||
|
#pragma warning restore CS0618 // Type or member is obsolete
|
||||||
}
|
}
|
||||||
|
|
||||||
private string GenerateFullHash()
|
private string GenerateFullHash()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp2.0</TargetFramework>
|
<TargetFramework>netcoreapp2.0</TargetFramework>
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.9" />
|
<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>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -55,7 +55,7 @@ namespace Samples
|
||||||
sample.Publish();
|
sample.Publish();
|
||||||
}
|
}
|
||||||
|
|
||||||
var samplePage = new SamplePickerSample(samples);
|
var samplePage = new SamplePicker(samples);
|
||||||
samplePage.Publish();
|
samplePage.Publish();
|
||||||
|
|
||||||
UI.Present (samplePage.Path);
|
UI.Present (samplePage.Path);
|
||||||
|
|
|
@ -7,11 +7,11 @@ using Element = Ooui.Element;
|
||||||
|
|
||||||
namespace Samples
|
namespace Samples
|
||||||
{
|
{
|
||||||
public class SamplePickerSample : ISample
|
public class SamplePicker : ISample
|
||||||
{
|
{
|
||||||
private readonly IEnumerable<ISample> _samplePages;
|
private readonly IEnumerable<ISample> _samplePages;
|
||||||
|
|
||||||
public SamplePickerSample(IEnumerable<ISample> samplePages)
|
public SamplePicker(IEnumerable<ISample> samplePages)
|
||||||
{
|
{
|
||||||
_samplePages = samplePages.OrderBy(s => s.Title);
|
_samplePages = samplePages.OrderBy(s => s.Title);
|
||||||
}
|
}
|
|
@ -10,7 +10,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Xamarin.Forms" Version="3.0.0.482510" />
|
<PackageReference Include="Xamarin.Forms" Version="3.6.0.264807" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
Loading…
Reference in New Issue