diff options
author | Seungkeun Lee <sngn.lee@samsung.com> | 2017-02-08 10:17:28 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-07-10 11:11:19 +0900 |
commit | bc891e2b6160d47a9e1960c38e911773bff64b66 (patch) | |
tree | a7abb3e73052974406369757a13c478248561152 /Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs | |
parent | 6964d20afc00124fd73b540ead1e004844e944fc (diff) | |
download | xamarin-forms-bc891e2b6160d47a9e1960c38e911773bff64b66.tar.gz xamarin-forms-bc891e2b6160d47a9e1960c38e911773bff64b66.tar.bz2 xamarin-forms-bc891e2b6160d47a9e1960c38e911773bff64b66.zip |
Support density independent pixel
- Support Enable/Disable of this feature
- By default, it was disabled. if you want enabling DP support feature,
Use Forms.Init(FormsApplication application, bool useDeviceIndependentPixel) API
- Hard-coded pixel value was changed to DP units
- If you deal with native coordinate, use Forms.ConvertToScaledPixel / Forms.ConvertToScaledDP
- If you convert hard-coded DP to pixels, use Forms.ConvertToPixel
- Update font size convert formula
Change-Id: I345115551e1c37d27b8a7152af5ef847d035c9a4
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs index 39f26b4f..456bb0d5 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs @@ -1,5 +1,6 @@ using System; using EColor = ElmSharp.Color; +using ESize = ElmSharp.Size; using Specific = Xamarin.Forms.PlatformConfiguration.TizenSpecific.VisualElement; namespace Xamarin.Forms.Platform.Tizen @@ -46,7 +47,7 @@ namespace Xamarin.Forms.Platform.Tizen protected override Size MinimumSize() { - return new Size(Control.MinimumWidth, Control.MinimumHeight); + return new ESize(Control.MinimumWidth, Control.MinimumHeight).ToDP(); } void ButtonClickedHandler(object sender, EventArgs e) |