fix tizen obsolete errors (#6030)
authorShane Neuville <shane94@hotmail.com>
Sat, 27 Apr 2019 17:48:26 +0000 (11:48 -0600)
committerGitHub <noreply@github.com>
Sat, 27 Apr 2019 17:48:26 +0000 (11:48 -0600)
Xamarin.Forms.Platform.Tizen/Native/ToolbarItemButton.cs
Xamarin.Forms.Platform.Tizen/Shell/ShellRenderer.cs
Xamarin.Forms.Platform.Tizen/Xamarin.Forms.Platform.Tizen.csproj

index 716b80b..ca23856 100644 (file)
@@ -49,7 +49,7 @@ namespace Xamarin.Forms.Platform.Tizen.Native
                        {
                                UpdateIsEnabled();
                        }
-                       else if (e.PropertyName == ToolbarItem.IconProperty.PropertyName)
+                       else if (e.PropertyName == ToolbarItem.IconImageSourceProperty.PropertyName)
                        {
                                UpdateIcon();
                        }
index 6563fcc..3e9be95 100644 (file)
@@ -156,9 +156,9 @@ namespace Xamarin.Forms.Platform.Tizen
                                        else if (flyoutGroup[j] is MenuItem menuItem)
                                        {
                                                title = menuItem.Text;
-                                               if (menuItem.Icon != null)
+                                               if (menuItem.IconImageSource is FileImageSource source)
                                                {
-                                                       icon = menuItem.Icon.File;
+                                                       icon = source.File;
                                                }
                                        }
 
index 6d8eedd..01a3e14 100644 (file)
@@ -6,7 +6,6 @@
   </PropertyGroup>
 
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
-    <TreatWarningsAsErrors>false</TreatWarningsAsErrors>
     <WarningsAsErrors>NU1605</WarningsAsErrors>
   </PropertyGroup>