Update to Forms 4.5.0.356
This commit is contained in:
parent
8fe076b29c
commit
4af54f13ee
|
@ -18,7 +18,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Xamarin.Forms" Version="3.6.0.264807" />
|
||||
<PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="Extensions\" />
|
||||
|
|
|
@ -67,7 +67,7 @@ namespace Ooui.Forms.Renderers
|
|||
UpdateFont ();
|
||||
else if (e.PropertyName == Xamarin.Forms.Button.BorderWidthProperty.PropertyName || e.PropertyName == Xamarin.Forms.Button.CornerRadiusProperty.PropertyName || e.PropertyName == Xamarin.Forms.Button.BorderColorProperty.PropertyName)
|
||||
UpdateBorder ();
|
||||
else if (e.PropertyName == Xamarin.Forms.Button.ImageProperty.PropertyName)
|
||||
else if (e.PropertyName == Xamarin.Forms.Button.ImageSourceProperty.PropertyName)
|
||||
UpdateImage ();
|
||||
}
|
||||
|
||||
|
@ -113,7 +113,7 @@ namespace Ooui.Forms.Renderers
|
|||
async void UpdateImage ()
|
||||
{
|
||||
IImageSourceHandler handler;
|
||||
FileImageSource source = Element.Image;
|
||||
ImageSource source = Element.ImageSource;
|
||||
|
||||
if (source != null &&
|
||||
(handler = Xamarin.Forms.Internals.Registrar.Registered.GetHandler<IImageSourceHandler>(source.GetType())) != null)
|
||||
|
|
|
@ -145,14 +145,12 @@ namespace Ooui.Forms.Renderers
|
|||
{
|
||||
_perfectSizeValid = false;
|
||||
|
||||
var values = Element.GetValues (Xamarin.Forms.Label.FormattedTextProperty, Xamarin.Forms.Label.TextProperty, Xamarin.Forms.Label.TextColorProperty);
|
||||
var formatted = values[0] as FormattedString;
|
||||
if (formatted != null) {
|
||||
Control.Text = (string)values[1];
|
||||
if (Element.FormattedText != null) {
|
||||
Control.Text = Element.Text;
|
||||
isTextFormatted = true;
|
||||
}
|
||||
else {
|
||||
Control.Text = (string)values[1];
|
||||
Control.Text = Element.Text;
|
||||
isTextFormatted = false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,14 +131,12 @@ namespace Ooui.Forms.Renderers
|
|||
{
|
||||
_perfectSizeValid = false;
|
||||
|
||||
var values = Element.GetValues (Xamarin.Forms.Label.FormattedTextProperty, Xamarin.Forms.Label.TextProperty, Xamarin.Forms.Label.TextColorProperty);
|
||||
var formatted = values[0] as FormattedString;
|
||||
if (formatted != null) {
|
||||
Control.Text = (string)values[1];
|
||||
if (Element.FormattedText != null) {
|
||||
Control.Text = Element.Text;
|
||||
isTextFormatted = true;
|
||||
}
|
||||
else {
|
||||
Control.Text = (string)values[1];
|
||||
Control.Text = Element.Text;
|
||||
isTextFormatted = false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,8 +9,11 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.2.3" />
|
||||
<PackageReference Include="Xamarin.Forms" Version="3.6.0.264807" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.2.3">
|
||||
<PrivateAssets Condition="'%(PackageReference.Version)' == ''">all</PrivateAssets>
|
||||
<Publish Condition="'%(PackageReference.Version)' == ''">true</Publish>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Xamarin.Forms" Version="3.6.0.264807" />
|
||||
<PackageReference Include="Xamarin.Forms" Version="4.5.0.356" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Loading…
Reference in New Issue