Adding SpToPx in all the Views 41/273341/1
authoraman.jeph <aman.jeph@samsung.com>
Mon, 4 Apr 2022 12:24:35 +0000 (17:54 +0530)
committeraman.jeph <aman.jeph@samsung.com>
Mon, 4 Apr 2022 12:24:35 +0000 (17:54 +0530)
Change-Id: Ibd5a465bfb1d8ca3cd17f11ffe09fb9ab26b7e52
Signed-off-by: aman.jeph <aman.jeph@samsung.com>
26 files changed:
.gitignore
music-player/MusicPlayer.cs
music-player/Views/AlbumDetailLayout.cs
music-player/Views/AlbumDetailView.cs
music-player/Views/AlbumView.cs
music-player/Views/ArtistDetailGroupLayout.cs
music-player/Views/ArtistDetailItemLayout.cs
music-player/Views/ArtistView.cs
music-player/Views/BaseContentView.cs
music-player/Views/BaseSubContentView.cs
music-player/Views/BaseView.cs
music-player/Views/ListItemLayout.cs
music-player/Views/LyricsView.cs
music-player/Views/MiniPlayer.cs
music-player/Views/PlayerView.cs
music-player/Views/PlaylistSelectorView.cs
music-player/Views/PlaylistView.cs
music-player/Views/SearchView.cs
music-player/Views/SelectListLayout.cs
music-player/Views/SelectorView.cs
music-player/Views/TrackDetailView.cs
music-player/Views/TrackView.cs
music-player/Views/Utils/ErrorPopup.cs
music-player/Views/ViewManager.cs
music-player/res/themes/dark.xaml
music-player/res/themes/light.xaml

index 8a7dca8a8619f72defd0fbef74060a0f63ea60fe..77305303ea51821c90d064f3d717d2f7acf5e9ad 100644 (file)
@@ -1,3 +1,4 @@
 music-player/.vs/
 music-player/bin/
 music-player/obj/
+music-player/music-player.csproj.user
index 92fdad5fd9418c4b34073bc6bfd59a9a9b2e039f..06e246355c6d8f07a522713662cc5cb3430f0383 100755 (executable)
@@ -25,6 +25,7 @@ namespace MusicPlayer
             window.BackgroundColor = Color.White;
             Size2D size = window.Size;
             Tizen.Log.Info(AppConstants.LogTag, "Window Size: " + size.Width + "x" + size.Height);
+            Tizen.Log.Info(AppConstants.LogTag, "Scaled DPI: " + GraphicsTypeManager.Instance.ScaledDpi + ", Scale Factor" + GraphicsTypeManager.Instance.ScalingFactor);
 
             ViewManager manager = new ViewManager(Window.Instance);
         }
index f83da8b0269530bba0503067fe82e5935a5ce76b..820337ac40246b6b7e70ca366df13958ce70e5b8 100755 (executable)
@@ -33,11 +33,11 @@ namespace MusicPlayer.Views
         {\r
             OnInitialize();\r
             WidthSpecification = LayoutParamPolicies.MatchParent;\r
-            HeightSpecification = 108.DpToPx();\r
+            HeightSpecification = 108.SpToPx();\r
 \r
             Layout = new RelativeLayout()\r
             {\r
-                Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),\r
+                Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),\r
             };\r
             BackgroundColor = Color.Transparent;\r
 \r
@@ -54,8 +54,8 @@ namespace MusicPlayer.Views
         {\r
             textView = new View()\r
             {\r
-                HeightSpecification = 76.DpToPx(),\r
-                WidthSpecification = (DeviceInfo.IsPortrait ? 748 : 564).DpToPx(),\r
+                HeightSpecification = 76.SpToPx(),\r
+                WidthSpecification = (DeviceInfo.IsPortrait ? 748 : 564).SpToPx(),\r
                 BackgroundColor = Color.Transparent,\r
                 Layout = new LinearLayout()\r
                 {\r
@@ -77,8 +77,8 @@ namespace MusicPlayer.Views
             titleLabel = new TextLabel()\r
             {\r
                 WidthSpecification = LayoutParamPolicies.MatchParent,\r
-                HeightSpecification = 40.DpToPx(),\r
-                PixelSize = 32.DpToPx(),\r
+                HeightSpecification = 40.SpToPx(),\r
+                PixelSize = 32.SpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 HorizontalAlignment = HorizontalAlignment.Begin,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
@@ -93,8 +93,8 @@ namespace MusicPlayer.Views
             subtitleLabel = new TextLabel()\r
             {\r
                 WidthSpecification = LayoutParamPolicies.MatchParent,\r
-                HeightSpecification = 36.DpToPx(),\r
-                PixelSize = 28.DpToPx(),\r
+                HeightSpecification = 36.SpToPx(),\r
+                PixelSize = 28.SpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 HorizontalAlignment = HorizontalAlignment.Begin,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
@@ -108,14 +108,14 @@ namespace MusicPlayer.Views
         {\r
             additionalLabel = new TextLabel()\r
             {\r
-                WidthSpecification = 108.DpToPx(),\r
-                HeightSpecification = 36.DpToPx(),\r
-                PixelSize = 28.DpToPx(),\r
+                WidthSpecification = 108.SpToPx(),\r
+                HeightSpecification = 36.SpToPx(),\r
+                PixelSize = 28.SpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 VerticalAlignment = VerticalAlignment.Center,\r
                 HorizontalAlignment = HorizontalAlignment.End,\r
                 FontStyle = UIFontStyles.AllNormal,\r
-                Margin = new Extents(32, 0, 0, 0).DpToPx(),\r
+                Margin = new Extents(32, 0, 0, 0).SpToPx(),\r
                 Ellipsis = true,\r
             };\r
             Add(additionalLabel);\r
@@ -129,7 +129,7 @@ namespace MusicPlayer.Views
             itemSeperator = new View()\r
             {\r
                 WidthSpecification = LayoutParamPolicies.MatchParent,\r
-                HeightSpecification = 2.DpToPx(),\r
+                HeightSpecification = 2.SpToPx(),\r
                 BackgroundColor = UIColors.ItemSeperator,\r
             };\r
             Add(itemSeperator);\r
index 134f1745af9465d53dc5807cc9cd97392e16a015..e5bbdaddb1fe73663ea4ca8b055d652d10c4afb1 100755 (executable)
@@ -146,7 +146,7 @@ namespace MusicPlayer.Views
             albumArtIcon = new ImageView()\r
             {\r
                 BackgroundColor = UIColors.HEXEEEFF1,\r
-                Size2D = new Size2D(AlbumArtSize, AlbumArtSize).DpToPx(),\r
+                Size2D = new Size2D(AlbumArtSize, AlbumArtSize).SpToPx(),\r
             };\r
             albumArtIcon.BindingContext = viewModel;\r
             albumArtIcon.SetBinding(ImageView.ResourceUrlProperty, "AlbumArtPath");\r
@@ -158,10 +158,10 @@ namespace MusicPlayer.Views
             {\r
                 StyleName = "LabelText",\r
                 ThemeChangeSensitive = true,\r
-                WidthSpecification = (DeviceInfo.IsPortrait ? 508 : 640).DpToPx(),\r
-                HeightSpecification = 48.DpToPx(),\r
-                PixelSize = 36.DpToPx(),\r
-                Margin = new Extents(0, 0, 32, 14).DpToPx(),\r
+                WidthSpecification = (DeviceInfo.IsPortrait ? 508 : 640).SpToPx(),\r
+                HeightSpecification = 48.SpToPx(),\r
+                PixelSize = 36.SpToPx(),\r
+                Margin = new Extents(0, 0, 32, 14).SpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 HorizontalAlignment = HorizontalAlignment.Center,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
@@ -175,9 +175,9 @@ namespace MusicPlayer.Views
             {\r
                 StyleName = "LabelText",\r
                 ThemeChangeSensitive = true,\r
-                WidthSpecification = (DeviceInfo.IsPortrait ? 508 : 640).DpToPx(),\r
-                HeightSpecification = 36.DpToPx(),\r
-                PixelSize = 28.DpToPx(),\r
+                WidthSpecification = (DeviceInfo.IsPortrait ? 508 : 640).SpToPx(),\r
+                HeightSpecification = 36.SpToPx(),\r
+                PixelSize = 28.SpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 HorizontalAlignment = HorizontalAlignment.Center,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
index e5cd4bbcc6cfca432c10c56ad4b25e2b5f4cf8f1..c1bfa2ff7f081672a9c9b6ef221b69aaa60b7d2d 100755 (executable)
@@ -37,7 +37,7 @@ namespace MusicPlayer.Views
             {\r
                 StyleName = "LabelText",\r
                 ThemeChangeSensitive = true,\r
-                PixelSize = 28.DpToPx(),\r
+                PixelSize = 28.SpToPx(),\r
                 Text = "ALBUM COUNT",\r
                 HorizontalAlignment = HorizontalAlignment.Begin,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
index e07bf5b27af8122581232e6773ad4d2a7ac2fd0b..6c8ee563161d399af96c1904ade4c092c9289389 100755 (executable)
@@ -17,11 +17,11 @@ namespace MusicPlayer.Views
         {
             OnInitialize();
             WidthSpecification = LayoutParamPolicies.MatchParent;
-            HeightSpecification = 108.DpToPx();
+            HeightSpecification = 108.SpToPx();
 
             Layout = new RelativeLayout()
             {
-                Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+                Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
             };
             BackgroundColor = Color.Transparent;
 
@@ -34,8 +34,8 @@ namespace MusicPlayer.Views
         {
             ImageView icon = new ImageView()
             {
-                WidthSpecification = IconSize.DpToPx(),
-                HeightSpecification = IconSize.DpToPx(),
+                WidthSpecification = IconSize.SpToPx(),
+                HeightSpecification = IconSize.SpToPx(),
             };
             Add(icon);
             RelativeLayout.SetVerticalAlignment(icon, RelativeLayout.Alignment.Center);
@@ -49,7 +49,7 @@ namespace MusicPlayer.Views
             View itemSeperator = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 2.DpToPx(),
+                HeightSpecification = 2.SpToPx(),
                 BackgroundColor = UIColors.ItemSeperator,
             };
             Add(itemSeperator);
@@ -62,13 +62,13 @@ namespace MusicPlayer.Views
             TextLabel titleLabel = new TextLabel()
             {
                 StyleName = "ItemLabel",
-                HeightSpecification = 40.DpToPx(),
-                PixelSize = 32.DpToPx(),
+                HeightSpecification = 40.SpToPx(),
+                PixelSize = 32.SpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
                 FontStyle = UIFontStyles.NormalLight,
-                Margin = new Extents(32, 0, 0, 0).DpToPx(),
+                Margin = new Extents(32, 0, 0, 0).SpToPx(),
                 Ellipsis = true,
             };
             Add(titleLabel);
index f1f3ff2fb6cf68c60872ce065a40ab5d30556e28..c2c8f825a9d9c02f47c0dd034380293c5df4a8eb 100755 (executable)
@@ -31,11 +31,11 @@ namespace MusicPlayer.Views
         {
             OnInitialize();
             WidthSpecification = LayoutParamPolicies.MatchParent;
-            HeightSpecification = 108.DpToPx();
+            HeightSpecification = 108.SpToPx();
 
             Layout = new RelativeLayout()
             {
-                Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+                Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
             };
             BackgroundColor = Color.Transparent;
 
@@ -51,7 +51,7 @@ namespace MusicPlayer.Views
             itemSeperator = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 2.DpToPx(),
+                HeightSpecification = 2.SpToPx(),
                 BackgroundColor = UIColors.ItemSeperator,
             };
             Add(itemSeperator);
@@ -62,8 +62,8 @@ namespace MusicPlayer.Views
         {
             titleLabel = new TextLabel()
             {
-                HeightSpecification = 40.DpToPx(),
-                PixelSize = 32.DpToPx(),
+                HeightSpecification = 40.SpToPx(),
+                PixelSize = 32.SpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -82,14 +82,14 @@ namespace MusicPlayer.Views
         {
             extraLabel = new TextLabel()
             {
-                WidthSpecification = 160.DpToPx(),
-                HeightSpecification = 36.DpToPx(),
-                PixelSize = 28.DpToPx(),
+                WidthSpecification = 160.SpToPx(),
+                HeightSpecification = 36.SpToPx(),
+                PixelSize = 28.SpToPx(),
                 FontFamily = "BreezeSans",
                 VerticalAlignment = VerticalAlignment.Center,
                 HorizontalAlignment = HorizontalAlignment.End,
                 FontStyle = UIFontStyles.AllNormal,
-                Margin = new Extents(32, 0, 0, 0).DpToPx(),
+                Margin = new Extents(32, 0, 0, 0).SpToPx(),
                 Ellipsis = true,
             };
             Add(extraLabel);
index c498cb3a4ac58a67d69b707864a57005adfacd9d..7e391106c3de8c7c8f4b0fe118be8ea0c1366df2 100755 (executable)
@@ -39,7 +39,7 @@ namespace MusicPlayer.Views
             {
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
-                PixelSize = 28.DpToPx(),
+                PixelSize = 28.SpToPx(),
                 Text = "ARTIST COUNT",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
index fd4f821e58ab63483ca49ad06f9867f354f5da64..e6cd96575c1437fa2d80eb97739600faf3c9c8fa 100755 (executable)
@@ -38,7 +38,7 @@ namespace MusicPlayer.Views
                 Layout = new LinearLayout()
                 {
                     LinearOrientation = LinearLayout.Orientation.Vertical,
-                    Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+                    Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
                 },
             };
             base.Add(contentViewContainer);
@@ -47,10 +47,10 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 60.DpToPx(),
+                HeightSpecification = 60.SpToPx(),
                 Layout = new RelativeLayout()
                 {
-                    Padding = new Extents(0, 0, 6, 6).DpToPx(),
+                    Padding = new Extents(0, 0, 6, 6).SpToPx(),
                 },
             };
             contentViewContainer.Add(titleView);
@@ -140,13 +140,13 @@ namespace MusicPlayer.Views
                         Direction = FlexLayout.FlexDirection.Column,
                         ItemsAlignment = FlexLayout.AlignmentType.Center,
                         Justification = FlexLayout.FlexJustification.FlexStart,
-                        Padding = (DeviceInfo.IsPortrait ? new Extents(0, 0, 343, 0) : new Extents(0, 0, 24, 0)).DpToPx(),
+                        Padding = (DeviceInfo.IsPortrait ? new Extents(0, 0, 343, 0) : new Extents(0, 0, 24, 0)).SpToPx(),
                     }
                 };
                 noItemsAnimation = new LottieAnimationView()
                 {
                     URL = Resources.GetLottiePath() + "no_items_folder.json",
-                    Size2D = new Size2D(700, 560).DpToPx(),
+                    Size2D = new Size2D(700, 560).SpToPx(),
                     LoopCount = -1,
                     BackgroundColor = Color.Transparent,
                 };
@@ -154,12 +154,12 @@ namespace MusicPlayer.Views
                 TextLabel textLabel = new TextLabel()
                 {
                     StyleName = "TitleText",
-                    Size2D = new Size2D(234, 36).DpToPx(),
+                    Size2D = new Size2D(234, 36).SpToPx(),
                     Text = "No items in folder",
-                    PixelSize = 28.DpToPx(),
+                    PixelSize = 28.SpToPx(),
                     FontFamily = "BreezeSans",
                     HorizontalAlignment = HorizontalAlignment.Center,
-                    Margin = new Extents(0, 0, 8, 0).DpToPx(),
+                    Margin = new Extents(0, 0, 8, 0).SpToPx(),
                 };
                 noItemView.Add(textLabel);
             }
index 26e053a3f9abce00f48fd999ed43e10e300a24d5..db4327a7f9abdbadb047e2f3ba90a0dc3ff36697 100755 (executable)
@@ -22,7 +22,7 @@ namespace MusicPlayer.Views
 
         public event EventHandler<OperationViewAddEventArgs> SubContentOperationViewAdd;
 
-        public BaseSubContentView():base()
+        public BaseSubContentView() : base()
         {
             WidthResizePolicy = ResizePolicyType.FillToParent;
             HeightResizePolicy = ResizePolicyType.FillToParent;
@@ -35,7 +35,7 @@ namespace MusicPlayer.Views
                 {
                     LinearOrientation = LinearLayout.Orientation.Vertical,
                     VerticalAlignment = VerticalAlignment.Top,
-                    Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx()
+                    Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx()
                 },
                 BackgroundColor = Color.Transparent,
                 WidthResizePolicy = ResizePolicyType.FillToParent,
@@ -46,10 +46,10 @@ namespace MusicPlayer.Views
             topView = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 60.DpToPx(),
+                HeightSpecification = 60.SpToPx(),
                 Layout = new RelativeLayout()
                 {
-                    Padding = new Extents(0, 0, 6, 6).DpToPx(),
+                    Padding = new Extents(0, 0, 6, 6).SpToPx(),
                 },
             };
             listContainer.Add(topView);
@@ -58,7 +58,7 @@ namespace MusicPlayer.Views
             {
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
-                PixelSize = 28.DpToPx(),
+                PixelSize = 28.SpToPx(),
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
                 FontFamily = "BreezeSans",
@@ -86,7 +86,7 @@ namespace MusicPlayer.Views
             playAllWithShuffle = new Button("ShuffleButton")
             {
                 ThemeChangeSensitive = true,
-                Margin = new Extents(32, 40, 0, 0).DpToPx(),
+                Margin = new Extents(32, 40, 0, 0).SpToPx(),
             };
             topView.Add(playAllWithShuffle);
             playAllWithShuffle.Clicked += (object sender, ClickedEventArgs e) =>
@@ -137,13 +137,13 @@ namespace MusicPlayer.Views
                         Direction = FlexLayout.FlexDirection.Column,
                         ItemsAlignment = FlexLayout.AlignmentType.Center,
                         Justification = FlexLayout.FlexJustification.FlexStart,
-                        Padding = (DeviceInfo.IsPortrait ? new Extents(0, 0, 343, 0) : new Extents(0, 0, 24, 0)).DpToPx(),
+                        Padding = (DeviceInfo.IsPortrait ? new Extents(0, 0, 343, 0) : new Extents(0, 0, 24, 0)).SpToPx(),
                     }
                 };
                 noItemsAnimation = new LottieAnimationView()
                 {
                     URL = Resources.GetLottiePath() + "no_items_folder.json",
-                    Size2D = new Size2D(700, 560).DpToPx(),
+                    Size2D = new Size2D(700, 560).SpToPx(),
                     LoopCount = -1,
                     BackgroundColor = Color.Transparent,
                 };
@@ -151,12 +151,12 @@ namespace MusicPlayer.Views
                 TextLabel textLabel = new TextLabel()
                 {
                     StyleName = "TitleText",
-                    Size2D = new Size2D(234, 36).DpToPx(),
+                    Size2D = new Size2D(234, 36).SpToPx(),
                     Text = "No items in folder",
-                    PixelSize = 28.DpToPx(),
+                    PixelSize = 28.SpToPx(),
                     FontFamily = "BreezeSans",
                     HorizontalAlignment = HorizontalAlignment.Center,
-                    Margin = new Extents(0, 0, 8, 0).DpToPx(),
+                    Margin = new Extents(0, 0, 8, 0).SpToPx(),
                 };
                 noItemView.Add(textLabel);
                 listContainer.Add(noItemView);
index a3b223e7910f1f2a83bd38e3b535e6a17a2bedd0..66f472a06a37488ed439e180040382adb3b56ec7 100755 (executable)
@@ -42,10 +42,10 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 120.DpToPx(),
+                HeightSpecification = 120.SpToPx(),
                 Layout = new RelativeLayout()
                 {
-                    Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 30, 30) : new Extents(64, 64, 30, 30)).DpToPx(),
+                    Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 30, 30) : new Extents(64, 64, 30, 30)).SpToPx(),
                 },
             };
             base.Add(topView);
@@ -56,7 +56,7 @@ namespace MusicPlayer.Views
                 StyleName = "PageLabel",
                 ThemeChangeSensitive = true,
                 Text = "Music",
-                PixelSize = 40.DpToPx(),
+                PixelSize = 40.SpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -84,9 +84,9 @@ namespace MusicPlayer.Views
             tabs = new Tab("Tabs")
             {
                 ThemeChangeSensitive = true,
-                Size2D = new Size2D(Window.Instance.Size.Width, 84).DpToPx(),
+                Size2D = new Size2D(Window.Instance.Size.Width, 84).SpToPx(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 84.DpToPx(),
+                HeightSpecification = 84.SpToPx(),
             };
             base.Add(tabs);
             for(int i = 0; i<4; ++i)
@@ -125,8 +125,8 @@ namespace MusicPlayer.Views
                         backButton = new Button("BackButton")
                         {
                             ThemeChangeSensitive = true,
-                            Size2D = new Size2D(48, 48).DpToPx(),
-                            Margin = new Extents(0, 24, 6, 6).DpToPx(),
+                            Size2D = new Size2D(48, 48).SpToPx(),
+                            Margin = new Extents(0, 24, 6, 6).SpToPx(),
                         };
 
                         backButton.Clicked += OnBackButtonClicked;
@@ -160,7 +160,7 @@ namespace MusicPlayer.Views
                 moreButton = new Button("MoreButton")
                 {
                     ThemeChangeSensitive = true,
-                    Margin = new Extents(32, 0, 6, 6).DpToPx(),
+                    Margin = new Extents(32, 0, 6, 6).SpToPx(),
                 };
                 topView.Add(moreButton);
                 RelativeLayout.SetLeftRelativeOffset(moreButton, 1.0f);
@@ -182,7 +182,7 @@ namespace MusicPlayer.Views
                     searchButton = new Button("SearchButton")
                     {
                         ThemeChangeSensitive = true,
-                        Margin = new Extents(24, 0, 0, 0).DpToPx(),
+                        Margin = new Extents(24, 0, 0, 0).SpToPx(),
                     };
                     topView.Add(searchButton);
                     RelativeLayout.SetRightTarget(searchButton, moreButton);
index 285cebd3207072a0059a104cef4e095cfa4ca820..22e61a1d9078f7ecb71b0346f345c485abb1b636 100755 (executable)
@@ -58,17 +58,17 @@ defaultValueCreator: (bindable) => ((ListItemLayout)bindable).playingStatus);
             OnInitialize();\r
             AnimationRequired = animationRequired;\r
             WidthSpecification = LayoutParamPolicies.MatchParent;\r
-            HeightSpecification = height.DpToPx();\r
+            HeightSpecification = height.SpToPx();\r
             BackgroundColor = Color.Transparent;\r
             Layout = new RelativeLayout()\r
             {\r
-                Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),\r
+                Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),\r
             };\r
 \r
             icon = new ImageView()\r
             {\r
-                WidthSpecification = IconSize.DpToPx(),\r
-                HeightSpecification = IconSize.DpToPx(),\r
+                WidthSpecification = IconSize.SpToPx(),\r
+                HeightSpecification = IconSize.SpToPx(),\r
             };\r
             Add(icon);\r
             RelativeLayout.SetVerticalAlignment(icon, RelativeLayout.Alignment.Center);\r
@@ -78,13 +78,13 @@ defaultValueCreator: (bindable) => ((ListItemLayout)bindable).playingStatus);
             textView = new View()\r
             {\r
                 BackgroundColor = Color.Transparent,\r
-                HeightSpecification = 76.DpToPx(),\r
+                HeightSpecification = 76.SpToPx(),\r
                 Layout = new LinearLayout()\r
                 {\r
                     LinearOrientation = LinearLayout.Orientation.Vertical,\r
                     HorizontalAlignment = HorizontalAlignment.Begin,\r
                     VerticalAlignment = VerticalAlignment.Top,\r
-                    Margin = new Extents(32, 0, 0, 0).DpToPx(),\r
+                    Margin = new Extents(32, 0, 0, 0).SpToPx(),\r
                 }\r
             };\r
             Add(textView);\r
@@ -97,8 +97,8 @@ defaultValueCreator: (bindable) => ((ListItemLayout)bindable).playingStatus);
             titleLabel = new TextLabel()\r
             {\r
                 WidthSpecification = LayoutParamPolicies.MatchParent,\r
-                HeightSpecification = 40.DpToPx(),\r
-                PixelSize = 32.DpToPx(),\r
+                HeightSpecification = 40.SpToPx(),\r
+                PixelSize = 32.SpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 HorizontalAlignment = HorizontalAlignment.Begin,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
@@ -110,8 +110,8 @@ defaultValueCreator: (bindable) => ((ListItemLayout)bindable).playingStatus);
             subtitleLabel = new TextLabel()\r
             {\r
                 WidthSpecification = LayoutParamPolicies.MatchParent,\r
-                HeightSpecification = 36.DpToPx(),\r
-                PixelSize = 28.DpToPx(),\r
+                HeightSpecification = 36.SpToPx(),\r
+                PixelSize = 28.SpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 HorizontalAlignment = HorizontalAlignment.Begin,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
@@ -124,7 +124,7 @@ defaultValueCreator: (bindable) => ((ListItemLayout)bindable).playingStatus);
             itemSeperator = new View()\r
             {\r
                 WidthSpecification = LayoutParamPolicies.MatchParent,\r
-                HeightSpecification = SeperatorHeight.DpToPx(),\r
+                HeightSpecification = SeperatorHeight.SpToPx(),\r
                 BackgroundColor = UIColors.ItemSeperator,\r
             };\r
             Add(itemSeperator);\r
index 900e3d306b4ea36890a946eddcb51da1eac3fae0..818c648029292f6b96b5040ccb58d17bbfcd0937 100755 (executable)
@@ -34,7 +34,7 @@ namespace MusicPlayer.Views
                 Direction = FlexLayout.FlexDirection.Column,
                 Alignment = FlexLayout.AlignmentType.Center,
                 Justification = FlexLayout.FlexJustification.Center,
-                Margin = new Extents(24, 24, 0, 46).DpToPx(),
+                Margin = new Extents(24, 24, 0, 46).SpToPx(),
             };
             isAnimating = false;
             AddThumbnail();
@@ -125,7 +125,7 @@ namespace MusicPlayer.Views
                 {
                     Direction = FlexLayout.FlexDirection.Column,
                     ItemsAlignment = FlexLayout.AlignmentType.Center,
-                    Padding = new Extents(40, 40, 40, 40).DpToPx(),
+                    Padding = new Extents(40, 40, 40, 40).SpToPx(),
                 },
             };
             FlexLayout.SetFlexPositionType(lyricsScrollBaseView, FlexLayout.PositionType.Absolute);
index 4a30dae31408d072430284de6a5b5d3790732319..e9b5b3212f87ed9562f971704a34c9d3b9081b20 100755 (executable)
@@ -37,7 +37,7 @@ namespace MusicPlayer.Views
             StyleName = "MiniPlayer";\r
             ThemeChangeSensitive = true;\r
             WidthSpecification = LayoutParamPolicies.MatchParent;\r
-            HeightSpecification = (DeviceInfo.IsPortrait ? 170 : 124).DpToPx();\r
+            HeightSpecification = (DeviceInfo.IsPortrait ? 170 : 124).SpToPx();\r
 \r
             Layout = new LinearLayout()\r
             {\r
@@ -47,19 +47,19 @@ namespace MusicPlayer.Views
             baseView = new View()\r
             {\r
                 WidthSpecification = LayoutParamPolicies.MatchParent,\r
-                HeightSpecification = 123.DpToPx(),\r
+                HeightSpecification = 123.SpToPx(),\r
                 BackgroundColor = Color.Transparent,\r
                 Layout = new LinearLayout()\r
                 {\r
                     LinearOrientation = LinearLayout.Orientation.Horizontal,\r
                     VerticalAlignment = VerticalAlignment.Center,\r
                 },\r
-                Padding = new Extents(64, 64, 24, 19).DpToPx(),\r
+                Padding = new Extents(64, 64, 24, 19).SpToPx(),\r
             };\r
             if(DeviceInfo.IsPortrait)\r
             {\r
-                baseView.Padding = new Extents(33, 33, 24, 8).DpToPx();\r
-                baseView.HeightSpecification = 108.DpToPx();\r
+                baseView.Padding = new Extents(33, 33, 24, 8).SpToPx();\r
+                baseView.HeightSpecification = 108.SpToPx();\r
             }\r
             Add(baseView);\r
             AddTrackDetails();\r
@@ -72,7 +72,7 @@ namespace MusicPlayer.Views
             View separator = new View()\r
             {\r
                 WidthSpecification = LayoutParamPolicies.MatchParent,\r
-                HeightSpecification = 1.DpToPx(),\r
+                HeightSpecification = 1.SpToPx(),\r
                 StyleName = "InputLine",\r
             };\r
             Add(separator);\r
@@ -88,8 +88,8 @@ namespace MusicPlayer.Views
                 },\r
                 BackgroundColor = Color.Transparent,\r
             };\r
-            trackInfo.WidthSpecification = (DeviceInfo.IsPortrait ? 536 : 622).DpToPx();\r
-            trackInfo.HeightSpecification = 76.DpToPx();\r
+            trackInfo.WidthSpecification = (DeviceInfo.IsPortrait ? 536 : 622).SpToPx();\r
+            trackInfo.HeightSpecification = 76.SpToPx();\r
             baseView.Add(trackInfo);\r
             AddThumbnail();\r
             AddTrackTextLabels();\r
@@ -104,16 +104,16 @@ namespace MusicPlayer.Views
                 {\r
                     LinearOrientation = LinearLayout.Orientation.Vertical,\r
                 },\r
-                HeightSpecification = 76.DpToPx(),\r
+                HeightSpecification = 76.SpToPx(),\r
             };\r
             if(DeviceInfo.IsPortrait)\r
             {\r
-                trackTextView.WidthSpecification = 436.DpToPx();\r
+                trackTextView.WidthSpecification = 436.SpToPx();\r
                 trackTextView.Margin = new Extents(24, 0, 0, 0);\r
             }\r
             else\r
             {\r
-                trackTextView.WidthSpecification = 516.DpToPx();\r
+                trackTextView.WidthSpecification = 516.SpToPx();\r
                 trackTextView.Margin = new Extents(30, 0, 0, 0);\r
             }\r
             trackInfo.Add(trackTextView);\r
@@ -126,7 +126,7 @@ namespace MusicPlayer.Views
             thumbnail = new ImageView()\r
             {\r
                 BackgroundColor = UIColors.HEXEEEFF1,\r
-                Size2D = new Size2D(76, 76).DpToPx(),\r
+                Size2D = new Size2D(76, 76).SpToPx(),\r
             };\r
             thumbnail.SetBinding(ImageView.ResourceUrlProperty, "ThumbnailPath");\r
             thumbnail.TouchEvent += (object source, TouchEventArgs e) =>\r
@@ -144,8 +144,8 @@ namespace MusicPlayer.Views
                 StyleName = "TitleText",\r
                 ThemeChangeSensitive = true,\r
                 WidthSpecification = LayoutParamPolicies.MatchParent,\r
-                HeightSpecification = 48.DpToPx(),\r
-                PixelSize = 36.DpToPx(),\r
+                HeightSpecification = 48.SpToPx(),\r
+                PixelSize = 36.SpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 HorizontalAlignment = HorizontalAlignment.Begin,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
@@ -162,8 +162,8 @@ namespace MusicPlayer.Views
                 StyleName = "TitleText",\r
                 ThemeChangeSensitive = true,\r
                 WidthSpecification = LayoutParamPolicies.MatchParent,\r
-                HeightSpecification = 28.DpToPx(),\r
-                PixelSize = 22.DpToPx(),\r
+                HeightSpecification = 28.SpToPx(),\r
+                PixelSize = 22.SpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 HorizontalAlignment = HorizontalAlignment.Begin,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
@@ -176,15 +176,15 @@ namespace MusicPlayer.Views
         {\r
             controlsView = new View()\r
             {\r
-                WidthSpecification = 304.DpToPx(),\r
+                WidthSpecification = 304.SpToPx(),\r
                 Layout = new LinearLayout()\r
                 {\r
                     LinearOrientation = LinearLayout.Orientation.Horizontal,\r
                     HorizontalAlignment = HorizontalAlignment.Begin,\r
                     VerticalAlignment = VerticalAlignment.Center,\r
-                    CellPadding = new Size2D(80, 0).DpToPx(),\r
+                    CellPadding = new Size2D(80, 0).SpToPx(),\r
                 },\r
-                Margin = new Extents(120, 120, 0, 0).DpToPx(),\r
+                Margin = new Extents(120, 120, 0, 0).SpToPx(),\r
                 BackgroundColor = Color.Transparent,\r
             };\r
             baseView.Add(controlsView);\r
@@ -212,7 +212,7 @@ namespace MusicPlayer.Views
         {\r
             playButton = new MultiStateButton()\r
             {\r
-                Size2D = new Size2D(48, 48).DpToPx(),\r
+                Size2D = new Size2D(48, 48).SpToPx(),\r
                 BackgroundColor = Color.Transparent,\r
                 IconResources = new Dictionary<ThemeType, Dictionary<string, StringSelector>>()\r
                 {\r
@@ -304,23 +304,23 @@ namespace MusicPlayer.Views
                 {\r
                     LinearOrientation = LinearLayout.Orientation.Horizontal,\r
                     VerticalAlignment = VerticalAlignment.Center,\r
-                    Padding = new Extents(33, 33, 0, 8).DpToPx(),\r
+                    Padding = new Extents(33, 33, 0, 8).SpToPx(),\r
                 };\r
-                sliderView.SizeHeight = 61.DpToPx();\r
+                sliderView.SizeHeight = 61.SpToPx();\r
                 base.Add(sliderView);\r
-                currentTime.WidthSpecification = 72.DpToPx();\r
+                currentTime.WidthSpecification = 72.SpToPx();\r
                 sliderView.Add(currentTime);\r
-                playbackSlider.WidthSpecification = 872.DpToPx();\r
+                playbackSlider.WidthSpecification = 872.SpToPx();\r
                 sliderView.Add(playbackSlider);\r
-                totalTime.WidthSpecification = 72.DpToPx();\r
+                totalTime.WidthSpecification = 72.SpToPx();\r
                 sliderView.Add(totalTime);\r
             }\r
             else\r
             {\r
-                sliderView.SizeHeight = 24.DpToPx();\r
+                sliderView.SizeHeight = 24.SpToPx();\r
                 baseView.Add(playbackSlider);\r
                 sliderView.Layout = new RelativeLayout();\r
-                sliderView.Position2D = new Position2D(0, SliderHeight).DpToPx();\r
+                sliderView.Position2D = new Position2D(0, SliderHeight).SpToPx();\r
                 playbackSlider.Add(sliderView);\r
                 sliderView.Add(currentTime);\r
                 RelativeLayout.SetHorizontalAlignment(currentTime, RelativeLayout.Alignment.Start);\r
@@ -352,9 +352,9 @@ namespace MusicPlayer.Views
                 ThemeChangeSensitive = true,\r
                 MinValue = 0.0f,\r
                 MaxValue = 1.0f,\r
-                WidthSpecification = 626.DpToPx(),\r
-                HeightSpecification = SliderHeight.DpToPx(),\r
-                ThumbSize = new Tizen.NUI.Size(30, 30).DpToPx(),\r
+                WidthSpecification = 626.SpToPx(),\r
+                HeightSpecification = SliderHeight.SpToPx(),\r
+                ThumbSize = new Tizen.NUI.Size(30, 30).SpToPx(),\r
                 Direction = Slider.DirectionType.Horizontal,\r
             };\r
             playbackSlider.SetBinding(Slider.CurrentValueProperty, "ElapsedTime");\r
@@ -367,8 +367,8 @@ namespace MusicPlayer.Views
             {\r
                 StyleName = "TitleText",\r
                 ThemeChangeSensitive = true,\r
-                Size2D = new Size2D(180, 24).DpToPx(),\r
-                PixelSize = 18.DpToPx(),\r
+                Size2D = new Size2D(180, 24).SpToPx(),\r
+                PixelSize = 18.SpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 Text = "00::00:00",\r
                 HorizontalAlignment = HorizontalAlignment.Begin,\r
@@ -382,8 +382,8 @@ namespace MusicPlayer.Views
             {\r
                 StyleName = "TitleText",\r
                 ThemeChangeSensitive = true,\r
-                Size2D = new Size2D(180, 24).DpToPx(),\r
-                PixelSize = 18.DpToPx(),\r
+                Size2D = new Size2D(180, 24).SpToPx(),\r
+                PixelSize = 18.SpToPx(),\r
                 FontFamily = "BreezeSans",\r
                 HorizontalAlignment = HorizontalAlignment.End,\r
                 Text = "59:59:59",\r
index ce69e7df02674323738c57faadbf300cdcbe8cc2..47d1ee7b61fc141fd188cf5429fa9bb051fbfe31 100755 (executable)
@@ -85,7 +85,7 @@ namespace MusicPlayer.Views
                     Direction = FlexLayout.FlexDirection.Column,
                     Justification = FlexLayout.FlexJustification.FlexStart,
                     ItemsAlignment = FlexLayout.AlignmentType.Center,
-                    Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+                    Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
                 },
             };
             Add(playerContentView);
@@ -165,12 +165,12 @@ namespace MusicPlayer.Views
                 if (viewState == PlayerViewState.AlbumArt)
                 {
                     leftView.Add(topRightView);
-                    topRightView.HeightSpecification = 48.DpToPx();
+                    topRightView.HeightSpecification = 48.SpToPx();
                 }
             }
             else
             {
-                leftView.Layout.Padding = (new Extents(0, 64, 0, 0)).DpToPx();
+                leftView.Layout.Padding = (new Extents(0, 64, 0, 0)).SpToPx();
             }
             AddLyricsView();
         }
@@ -193,7 +193,7 @@ namespace MusicPlayer.Views
             if (DeviceInfo.IsPortrait == false || viewState == PlayerViewState.TrackList)
             {
                 rightView.Add(topRightView);
-                topRightView.HeightSpecification = 200.DpToPx();
+                topRightView.HeightSpecification = 200.SpToPx();
                 AddThumbnail();
             }
             AddControlView();
@@ -238,7 +238,7 @@ namespace MusicPlayer.Views
             {
                 Layout = new RelativeLayout(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 120.DpToPx(),
+                HeightSpecification = 120.SpToPx(),
                 MaximumSize = new Size2D(Window.Instance.WindowSize.Width, (int)(Window.Instance.WindowSize.Height*0.111f))
             };
             playerContentView.Add(topView);
@@ -323,8 +323,8 @@ namespace MusicPlayer.Views
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 48.DpToPx(),
-                PixelSize = 40.DpToPx(),
+                HeightSpecification = 48.SpToPx(),
+                PixelSize = 40.SpToPx(),
                 FontFamily = "BreezeSans",
                 FontStyle = UIFontStyles.AllNormal,
                 Text = "Delete",
@@ -341,14 +341,14 @@ namespace MusicPlayer.Views
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 40.DpToPx(),
-                PixelSize = 32.DpToPx(),
+                HeightSpecification = 40.SpToPx(),
+                PixelSize = 32.SpToPx(),
                 FontFamily = "BreezeSans",
                 FontStyle = UIFontStyles.NormalLight,
                 Text = "This track will be deleted.",
                 HorizontalAlignment = HorizontalAlignment.Center,
                 VerticalAlignment = VerticalAlignment.Center,
-                Margin = new Extents(0, 0, 40, 64).DpToPx(),
+                Margin = new Extents(0, 0, 40, 64).SpToPx(),
             };
             return titleLabel;
         }
@@ -358,7 +358,7 @@ namespace MusicPlayer.Views
             View buttonArea = new View()
             {
                 BackgroundColor = Color.Transparent,
-                HeightSpecification = 96.DpToPx(),
+                HeightSpecification = 96.SpToPx(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 Layout = new RelativeLayout()
             };
@@ -380,8 +380,8 @@ namespace MusicPlayer.Views
 
             Button deleteButton = new Button()
             {
-                WidthSpecification = 336.DpToPx(),
-                HeightSpecification = 96.DpToPx(),
+                WidthSpecification = 336.SpToPx(),
+                HeightSpecification = 96.SpToPx(),
                 Text = "Delete",
             };
             buttonArea.Add(deleteButton);
@@ -393,12 +393,12 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 StyleName = "Dialogs",
-                WidthSpecification = (DeviceInfo.IsPortrait ? 952 : 1184).DpToPx(),
-                HeightSpecification = 368.DpToPx(),
+                WidthSpecification = (DeviceInfo.IsPortrait ? 952 : 1184).SpToPx(),
+                HeightSpecification = 368.SpToPx(),
                 Layout = new LinearLayout()
                 {
-                    Padding = new Extents(80, 80, 40, 40).DpToPx(),
-                    Margin = new Extents(32, 32, 0, 0).DpToPx(),
+                    Padding = new Extents(80, 80, 40, 40).SpToPx(),
+                    Margin = new Extents(32, 32, 0, 0).SpToPx(),
                     LinearOrientation = LinearLayout.Orientation.Vertical,
                     HorizontalAlignment = HorizontalAlignment.Center,
                     VerticalAlignment = VerticalAlignment.Top,
@@ -424,12 +424,12 @@ namespace MusicPlayer.Views
         {
             controlsView = new View()
             {
-                WidthSpecification = 640.DpToPx(),
-                HeightSpecification = (DeviceInfo.IsPortrait ? ControlViewHeightPortrait : ControlViewHeightLandscape).DpToPx(),
+                WidthSpecification = 640.SpToPx(),
+                HeightSpecification = (DeviceInfo.IsPortrait ? ControlViewHeightPortrait : ControlViewHeightLandscape).SpToPx(),
                 Layout = new LinearLayout()
                 {
                     LinearOrientation = LinearLayout.Orientation.Vertical,
-                    Margin = (new Extents(0, 0, 115, 0)).DpToPx(),
+                    Margin = (new Extents(0, 0, 115, 0)).SpToPx(),
                 }
             };
             rightView.Add(controlsView);
@@ -443,8 +443,8 @@ namespace MusicPlayer.Views
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = TitleLabelHeight.DpToPx(),
-                PixelSize = 36.DpToPx(),
+                HeightSpecification = TitleLabelHeight.SpToPx(),
+                PixelSize = 36.SpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.Center,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -461,8 +461,8 @@ namespace MusicPlayer.Views
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = ArtistLabelHeight.DpToPx(),
-                PixelSize = 28.DpToPx(),
+                HeightSpecification = ArtistLabelHeight.SpToPx(),
+                PixelSize = 28.SpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.Center,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -482,8 +482,8 @@ namespace MusicPlayer.Views
         {
             shuffleButton = new MultiStateButton()
             {
-                Size2D = new Size2D(IconSize, IconSize).DpToPx(),
-                Margin = new Extents(0, 40, 0, 0).DpToPx(),
+                Size2D = new Size2D(IconSize, IconSize).SpToPx(),
+                Margin = new Extents(0, 40, 0, 0).SpToPx(),
                 IconResources = new Dictionary<ThemeType, Dictionary<string, StringSelector>>()
                 {
                     {
@@ -558,7 +558,7 @@ namespace MusicPlayer.Views
         {
             playButton = new MultiStateButton()
             {
-                Size2D = new Size2D(IconSize, IconSize).DpToPx(),
+                Size2D = new Size2D(IconSize, IconSize).SpToPx(),
                 BackgroundColor = Color.Transparent,
                 IconResources = new Dictionary<ThemeType, Dictionary<string, StringSelector>>()
                 {
@@ -642,8 +642,8 @@ namespace MusicPlayer.Views
         {
             repeatButton = new MultiStateButton()
             {
-                Size2D = new Size2D(IconSize, IconSize).DpToPx(),
-                Margin = new Extents(40, 0, 0, 0).DpToPx(),
+                Size2D = new Size2D(IconSize, IconSize).SpToPx(),
+                Margin = new Extents(40, 0, 0, 0).SpToPx(),
                 IconResources = new Dictionary<ThemeType, Dictionary<string, StringSelector>>()
                 {
                     {
@@ -717,14 +717,14 @@ namespace MusicPlayer.Views
             playbackButtonsView = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 48.DpToPx(),
+                HeightSpecification = 48.SpToPx(),
                 Layout = new LinearLayout()
                 {
                     LinearOrientation = LinearLayout.Orientation.Horizontal,
                     HorizontalAlignment = HorizontalAlignment.Begin,
                     VerticalAlignment = VerticalAlignment.Center,
-                    Margin = (DeviceInfo.IsPortrait ? new Extents(0, 0, 140, 104) : new Extents(0, 0, 100, 92)).DpToPx(),
-                    CellPadding = new Size2D(80, 0).DpToPx(),
+                    Margin = (DeviceInfo.IsPortrait ? new Extents(0, 0, 140, 104) : new Extents(0, 0, 100, 92)).SpToPx(),
+                    CellPadding = new Size2D(80, 0).SpToPx(),
                 },
             };
             controlsView.Add(playbackButtonsView);
@@ -776,8 +776,8 @@ namespace MusicPlayer.Views
             volumeSlider = new Slider("Slider")
             {
                 ThemeChangeSensitive = true,
-                Size2D = new Size2D(496, 48).DpToPx(),
-                ThumbSize = new Tizen.NUI.Size(36, 36).DpToPx(),
+                Size2D = new Size2D(496, 48).SpToPx(),
+                ThumbSize = new Tizen.NUI.Size(36, 36).SpToPx(),
                 Direction = Slider.DirectionType.Horizontal,
                 MinValue = 0,
                 MaxValue = AudioManager.VolumeController.MaxLevel[AudioVolumeType.Media],
@@ -794,10 +794,10 @@ namespace MusicPlayer.Views
             volumeSliderView = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 48.DpToPx(),
+                HeightSpecification = 48.SpToPx(),
                 Layout = new LinearLayout()
                 {
-                    CellPadding = (new Size2D(24, 0)).DpToPx(),
+                    CellPadding = (new Size2D(24, 0)).SpToPx(),
                     LinearOrientation = LinearLayout.Orientation.Horizontal,
                     HorizontalAlignment = HorizontalAlignment.Begin,
                     VerticalAlignment = VerticalAlignment.Center,
@@ -840,8 +840,8 @@ namespace MusicPlayer.Views
                 MinValue = 0.0f,
                 MaxValue = 1.0f,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 44.DpToPx(),
-                ThumbSize = new Tizen.NUI.Size(36, 36).DpToPx(),
+                HeightSpecification = 44.SpToPx(),
+                ThumbSize = new Tizen.NUI.Size(36, 36).SpToPx(),
                 Direction = Slider.DirectionType.Horizontal,
             };
             playbackSlider.SetBinding(Slider.CurrentValueProperty, "ElapsedTime");
@@ -855,8 +855,8 @@ namespace MusicPlayer.Views
             {
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
-                Size2D = new Size2D(400, 32).DpToPx(),
-                PixelSize = 24.DpToPx(),
+                Size2D = new Size2D(400, 32).SpToPx(),
+                PixelSize = 24.SpToPx(),
                 FontFamily = "BreezeSans",
                 Text = "00::00:00",
                 HorizontalAlignment = HorizontalAlignment.Begin,
@@ -873,8 +873,8 @@ namespace MusicPlayer.Views
             {
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
-                Size2D = new Size2D(400, 32).DpToPx(),
-                PixelSize = 24.DpToPx(),
+                Size2D = new Size2D(400, 32).SpToPx(),
+                PixelSize = 24.SpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.End,
                 Text = "59:59:59",
@@ -890,7 +890,7 @@ namespace MusicPlayer.Views
             sliderView = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 84.DpToPx(),
+                HeightSpecification = 84.SpToPx(),
                 Layout = new LinearLayout()
                 {
                     LinearOrientation = LinearLayout.Orientation.Vertical,
@@ -910,10 +910,10 @@ namespace MusicPlayer.Views
             playbackSliderTextView = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 32.DpToPx(),
+                HeightSpecification = 32.SpToPx(),
                 Layout = new RelativeLayout()
                 {
-                    Margin = (new Extents(0, 0, 8, 0)).DpToPx(),
+                    Margin = (new Extents(0, 0, 8, 0)).SpToPx(),
                 },
             };
             sliderView.Add(playbackSliderTextView);
@@ -932,12 +932,12 @@ namespace MusicPlayer.Views
                     LinearOrientation = LinearLayout.Orientation.Horizontal,
                     HorizontalAlignment = HorizontalAlignment.End,
                     VerticalAlignment = VerticalAlignment.Top,
-                    CellPadding = new Size2D(92, 0).DpToPx(),
+                    CellPadding = new Size2D(92, 0).SpToPx(),
                 },
             };
             if (DeviceInfo.IsPortrait)
             {
-                topRightView.Margin = new Extents(0, 46, 0, 0).DpToPx();
+                topRightView.Margin = new Extents(0, 46, 0, 0).SpToPx();
             }
         }
 
@@ -945,12 +945,12 @@ namespace MusicPlayer.Views
         {
             actionButtonView = new View()
             {
-                WidthSpecification = 224.DpToPx(),
-                HeightSpecification = 48.DpToPx(),
+                WidthSpecification = 224.SpToPx(),
+                HeightSpecification = 48.SpToPx(),
                 Layout = new LinearLayout()
                 {
                     LinearOrientation = LinearLayout.Orientation.Horizontal,
-                    CellPadding = new Size2D(40, 0).DpToPx(),
+                    CellPadding = new Size2D(40, 0).SpToPx(),
                 },
                 BackgroundColor = Color.Transparent,
             };
@@ -975,7 +975,7 @@ namespace MusicPlayer.Views
 
             favouriteButton = new MultiStateButton()
             {
-                Size2D = new Size2D(IconSize, IconSize).DpToPx(),
+                Size2D = new Size2D(IconSize, IconSize).SpToPx(),
                 IconResources = new Dictionary<ThemeType, Dictionary<string, StringSelector>>()
                 {
                     {
@@ -1039,25 +1039,25 @@ namespace MusicPlayer.Views
                 playerContentView.Remove(sliderView);
                 if (DeviceInfo.IsPortrait)
                 {
-                    sliderView.Margin = new Extents(32, 32, 0, 0).DpToPx();
+                    sliderView.Margin = new Extents(32, 32, 0, 0).SpToPx();
                     rightView.Remove(controlsView);
                     contentView.Remove(rightView);
                     contentView.Remove(leftView);
                     contentView.Add(rightView);
                     contentView.Add(leftView);
                     topRightView.Remove(actionButtonView);
-                    topRightView.HeightSpecification = 200.DpToPx();
+                    topRightView.HeightSpecification = 200.SpToPx();
                     AddThumbnail();
                     topRightView.Add(actionButtonView);
                     rightView.Add(topRightView);
-                    controlsView.Margin = new Extents(0, 0, 40, 0).DpToPx();
+                    controlsView.Margin = new Extents(0, 0, 40, 0).SpToPx();
                     rightView.Add(controlsView);
                 }
                 else
                 {
-                    leftView.Padding = new Extents(0, 64, 0, 64).DpToPx();
-                    sliderView.Margin = new Extents(0, 0, 84, 0).DpToPx();
-                    sliderView.WidthSpecification = 640.DpToPx();
+                    leftView.Padding = new Extents(0, 64, 0, 64).SpToPx();
+                    sliderView.Margin = new Extents(0, 0, 84, 0).SpToPx();
+                    sliderView.WidthSpecification = 640.SpToPx();
                 }
                 rightView.Add(sliderView);
                 AddPlayingListView();
@@ -1072,20 +1072,20 @@ namespace MusicPlayer.Views
                 rightView.Remove(sliderView);
                 if (DeviceInfo.IsPortrait)
                 {
-                    controlsView.Margin = new Extents(0, 0, 115, 0).DpToPx();
-                    sliderView.Margin = new Extents(0, 0, 0, 0).DpToPx();
+                    controlsView.Margin = new Extents(0, 0, 115, 0).SpToPx();
+                    sliderView.Margin = new Extents(0, 0, 0, 0).SpToPx();
                     contentView.Remove(leftView);
                     contentView.Remove(rightView);
                     contentView.Add(leftView);
                     contentView.Add(rightView);
                     topRightView.Remove(thumb);
-                    topRightView.HeightSpecification = 48.DpToPx();
+                    topRightView.HeightSpecification = 48.SpToPx();
                     leftView.Add(topRightView);
                 }
                 else
                 {
-                    leftView.Padding = new Extents(0, 64, 0, 0).DpToPx();
-                    sliderView.Margin = new Extents(0, 0, 0, 0).DpToPx();
+                    leftView.Padding = new Extents(0, 64, 0, 0).SpToPx();
+                    sliderView.Margin = new Extents(0, 0, 0, 0).SpToPx();
                     sliderView.WidthSpecification = LayoutParamPolicies.MatchParent;
                 }
                 playerContentView.Add(sliderView);
@@ -1120,7 +1120,7 @@ namespace MusicPlayer.Views
             thumb = new ImageView()
             {
                 BackgroundColor = Color.Cyan,
-                Size2D = new Size2D(200, 200).DpToPx(),
+                Size2D = new Size2D(200, 200).SpToPx(),
                 BoxShadow = new Shadow(6.0f, Color.Black, new Vector2(0, 3)),
             };
             thumb.SetBinding(ImageView.ResourceUrlProperty, "ThumbnailPath");
index 296165508021ec763c732c70ef83a1348e224258..42217816c95f600c5f3ecadad121f2bc982065b1 100755 (executable)
@@ -49,12 +49,12 @@ namespace MusicPlayer.Views
             AddSelectPlaylistCancelButton();
             selectPlaylistDialog = new AlertDialog()
             {
-                Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 660).DpToPx(),
+                Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 660).SpToPx(),
                 Title = "Add to playlist",
                 Content = selectPlaylistContentArea,
                 Actions = new List<View> { selectPlaylistCancelButton },
-                Padding = new Extents(0, 0, 0, 0).DpToPx(),
-                Margin = new Extents(32, 32, 0, 0).DpToPx(),
+                Padding = new Extents(0, 0, 0, 0).SpToPx(),
+                Margin = new Extents(32, 32, 0, 0).SpToPx(),
             };
             TextLabel textLabel = (TextLabel)selectPlaylistDialog.TitleContent;
             textLabel.FontStyle = UIFontStyles.AllNormal;
@@ -72,7 +72,7 @@ namespace MusicPlayer.Views
             selectPlaylistContentArea = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 340.DpToPx(),
+                HeightSpecification = 340.SpToPx(),
                 BackgroundColor = Color.Transparent,
                 Layout = new FlexLayout()
                 {
@@ -95,9 +95,9 @@ namespace MusicPlayer.Views
             createNewPlaylistButton = new Button("PlaylistCreate")
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 108.DpToPx(),
+                HeightSpecification = 108.SpToPx(),
                 TextAlignment = HorizontalAlignment.Begin,
-                Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+                Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
                 IsEnabled = true,
                 IsSelectable = false,
                 ItemAlignment = LinearLayout.Alignment.CenterVertical,
@@ -109,9 +109,9 @@ namespace MusicPlayer.Views
             View itemSeperator = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 2.DpToPx(),
+                HeightSpecification = 2.SpToPx(),
                 BackgroundColor = UIColors.ItemSeperator,
-                Margin = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+                Margin = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
             };
             selectPlaylistContentArea.Add(itemSeperator);
             createNewPlaylistButton.Clicked += CreateNewPlaylistButtonClicked;
@@ -124,12 +124,12 @@ namespace MusicPlayer.Views
             AddCreatePlaylistButtons();
             createPlaylistDialog = new AlertDialog()
             {
-                Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 465).DpToPx(),
+                Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 465).SpToPx(),
                 Title = "Create playlist",
                 Content = createPlaylistContentArea,
                 Actions = new List<View> { createPlaylistCancelButton, createPlaylistCreateButton },
-                Padding = new Extents(0, 0, 0, 0).DpToPx(),
-                Margin = new Extents(32, 32, 0, 0).DpToPx(),
+                Padding = new Extents(0, 0, 0, 0).SpToPx(),
+                Margin = new Extents(32, 32, 0, 0).SpToPx(),
             };
             TextLabel textLabel = (TextLabel)selectPlaylistDialog.TitleContent;
             textLabel.FontStyle = UIFontStyles.AllNormal;
@@ -148,7 +148,7 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 StyleName = "ListBackground",
-                Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 108).DpToPx(),
+                Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 108).SpToPx(),
                 ItemsLayouter = new LinearLayouter(),
                 ScrollingDirection = ScrollableBase.Direction.Vertical,
                 HeightSpecification = LayoutParamPolicies.WrapContent,
@@ -170,16 +170,16 @@ namespace MusicPlayer.Views
                 DefaultLinearItem layout = new DefaultLinearItem("LinearItem")
                 {
                     WidthSpecification = LayoutParamPolicies.MatchParent,
-                    HeightSpecification = 108.DpToPx(),
+                    HeightSpecification = 108.SpToPx(),
                 };
                 layout.Seperator.BackgroundColor = UIColors.ItemSeperator;
-                layout.Seperator.Padding = new Extents(0, 0, 0, 0).DpToPx();
-                layout.Seperator.Margin = new Extents(0, 0, 0, 0).DpToPx();
+                layout.Seperator.Padding = new Extents(0, 0, 0, 0).SpToPx();
+                layout.Seperator.Margin = new Extents(0, 0, 0, 0).SpToPx();
                 layout.Seperator.WidthSpecification = LayoutParamPolicies.MatchParent;
                 layout.Label.SetBinding(TextLabel.TextProperty, "PlaylistName");
                 layout.Label.FontStyle = UIFontStyles.NormalLight;
-                layout.Padding = new Extents(0, 0, 0, 0).DpToPx();
-                layout.Margin = new Extents(0, 0, 0, 0).DpToPx();
+                layout.Padding = new Extents(0, 0, 0, 0).SpToPx();
+                layout.Margin = new Extents(0, 0, 0, 0).SpToPx();
                 return layout;
             });
             collectionView.ItemsSource = viewModel.ListViewModel;
@@ -224,14 +224,14 @@ namespace MusicPlayer.Views
                 StyleName = "ItemLabel",
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 108.DpToPx(),
-                PixelSize = 32.DpToPx(),
+                HeightSpecification = 108.SpToPx(),
+                PixelSize = 32.SpToPx(),
                 Text = "No playlists available",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
                 FontFamily = "BreezeSans",
                 FontStyle = UIFontStyles.NormalLight,
-                Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+                Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
             };
             selectPlaylistContentArea.Add(noListText);
         }
@@ -239,7 +239,7 @@ namespace MusicPlayer.Views
         {
             selectPlaylistCancelButton = new Button()
             {
-                Size2D = new Size2D(336, 96).DpToPx(),
+                Size2D = new Size2D(336, 96).SpToPx(),
                 Text = "Cancel",
             };
             selectPlaylistCancelButton.TextLabel.FontStyle = UIFontStyles.AllNormal;
@@ -264,14 +264,14 @@ namespace MusicPlayer.Views
             createPlaylistContentArea = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 169.DpToPx(),
+                HeightSpecification = 169.SpToPx(),
                 BackgroundColor = Color.Transparent,
                 Layout = new FlexLayout()
                 {
                     Direction = FlexLayout.FlexDirection.Column,
                     ItemsAlignment = FlexLayout.AlignmentType.FlexStart,
                     Justification = FlexLayout.FlexJustification.FlexStart,
-                    Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+                    Padding = (DeviceInfo.IsPortrait ? new Extents(80, 80, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
                 },
             };
             TextLabel textLabel = new TextLabel()
@@ -279,14 +279,14 @@ namespace MusicPlayer.Views
                 StyleName = "TitleText",
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 40.DpToPx(),
-                PixelSize = 32.DpToPx(),
+                HeightSpecification = 40.SpToPx(),
+                PixelSize = 32.SpToPx(),
                 Text = "Add playlist name.",
                 HorizontalAlignment = HorizontalAlignment.Center,
                 VerticalAlignment = VerticalAlignment.Center,
                 FontFamily = "BreezeSans",
                 FontStyle = UIFontStyles.NormalLight,
-                Margin = new Extents(0, 0, 0, 24).DpToPx(),
+                Margin = new Extents(0, 0, 0, 24).SpToPx(),
             };
             createPlaylistContentArea.Add(textLabel);
             AddInputArea();
@@ -294,7 +294,7 @@ namespace MusicPlayer.Views
             {
                 BackgroundColor = UIColors.ItemSeperator,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 1.DpToPx(),
+                HeightSpecification = 1.SpToPx(),
             };
             createPlaylistContentArea.Add(itemSeperator);
             underText = new TextLabel()
@@ -302,8 +302,8 @@ namespace MusicPlayer.Views
                 StyleName = "ItemLabel",
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 32.DpToPx(),
-                PixelSize = 24.DpToPx(),
+                HeightSpecification = 32.SpToPx(),
+                PixelSize = 24.SpToPx(),
                 Text = "Can't enter more than 64 characters.",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -317,7 +317,7 @@ namespace MusicPlayer.Views
         {
             inputArea = new View()
             {
-                Size2D = new Size2D((DeviceInfo.IsPortrait ? 856 : 1024), 48).DpToPx(),
+                Size2D = new Size2D((DeviceInfo.IsPortrait ? 856 : 1024), 48).SpToPx(),
                 Layout = new FlexLayout()
                 {
                     Direction = FlexLayout.FlexDirection.Row,
@@ -329,10 +329,10 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 StyleName = "TextField",
-                PixelSize = 32.DpToPx(),
-                Size2D = new Size2D((DeviceInfo.IsPortrait ? 808 : 928), 48).DpToPx(),
-                Position2D = new Position2D(0, 0).DpToPx(),
-                Margin = new Extents(0, (ushort)(DeviceInfo.IsPortrait ? 0 : 48), 0, 0).DpToPx(),
+                PixelSize = 32.SpToPx(),
+                Size2D = new Size2D((DeviceInfo.IsPortrait ? 808 : 928), 48).SpToPx(),
+                Position2D = new Position2D(0, 0).SpToPx(),
+                Margin = new Extents(0, (ushort)(DeviceInfo.IsPortrait ? 0 : 48), 0, 0).SpToPx(),
                 FontStyle = UIFontStyles.NormalLight,
                 MaxLength = 65,
             };
@@ -342,7 +342,7 @@ namespace MusicPlayer.Views
             crossButton = new Button("ClearButton")
             {
                 ThemeChangeSensitive = true,
-                Position2D = new Position2D((DeviceInfo.IsPortrait ? 808 : 976), 6).DpToPx(),
+                Position2D = new Position2D((DeviceInfo.IsPortrait ? 808 : 976), 6).SpToPx(),
             };
             crossButton.Clicked += (object o, ClickedEventArgs e) =>
             {
@@ -391,7 +391,7 @@ namespace MusicPlayer.Views
 
             createPlaylistCreateButton = new Button()
             {
-                Size2D = new Size2D(336, 96).DpToPx(),
+                Size2D = new Size2D(336, 96).SpToPx(),
                 Text = "Create",
             };
             createPlaylistCreateButton.TextLabel.FontStyle = UIFontStyles.AllNormal;
index 57d191de02e3f295c1cd97900931213af9c01b9b..920afb3ad534ae9d27b9a2caf6c72e7b6eb7fcf1 100755 (executable)
@@ -38,7 +38,7 @@ namespace MusicPlayer.Views
             {
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
-                PixelSize = 28.DpToPx(),
+                PixelSize = 28.SpToPx(),
                 Text = "Playlist COUNT",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -56,7 +56,7 @@ namespace MusicPlayer.Views
             playlistCreateButton = new Button("PlaylistAdd")
             {
                 ThemeChangeSensitive = true,
-                Margin = new Extents(40, 0, 0, 0).DpToPx(),
+                Margin = new Extents(40, 0, 0, 0).SpToPx(),
             };
             playlistCreateButton.BindingContext = viewModel;
             playlistCreateButton.SetBinding(Button.IsEnabledProperty, "CanCreatePlaylist");
@@ -121,7 +121,7 @@ namespace MusicPlayer.Views
                 Name = "AlertDialogTitle",
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
-                PixelSize = 40.DpToPx(),
+                PixelSize = 40.SpToPx(),
                 FontFamily = "BreezeSans",
                 FontStyle = UIFontStyles.AllNormal,
                 Text = "Create playlist",
@@ -139,12 +139,12 @@ namespace MusicPlayer.Views
                 Name = "AlertDialogContentMessage",
                 StyleName = "LabelText",
                 ThemeChangeSensitive = true,
-                PixelSize = 32.DpToPx(),
+                PixelSize = 32.SpToPx(),
                 FontFamily = "BreezeSans",
                 FontStyle = UIFontStyles.NormalLight,
                 Text = "Add playlist name",
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 40.DpToPx(),
+                HeightSpecification = 40.SpToPx(),
                 HorizontalAlignment = HorizontalAlignment.Center,
             };
             return contentLabel;
@@ -158,7 +158,7 @@ namespace MusicPlayer.Views
                 PlaceholderText = "Enter Playlist Name",
                 Text = DefaultPlaylistName,
                 HorizontalAlignment = HorizontalAlignment.Begin,
-                PixelSize = 32.DpToPx(),
+                PixelSize = 32.SpToPx(),
             };
             return inputTextField;
         }
@@ -169,7 +169,7 @@ namespace MusicPlayer.Views
             {
                 Name = "AlertDialogClearButton",
                 ThemeChangeSensitive = true,
-                Margin = new Extents(48, 0, 0, 0).DpToPx(),
+                Margin = new Extents(48, 0, 0, 0).SpToPx(),
             };
             return clearButton;
         }
@@ -181,8 +181,8 @@ namespace MusicPlayer.Views
                 Name = "AlertDialogInputArea",
                 BackgroundColor = Color.Transparent,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 48.DpToPx(),
-                Margin = new Extents(0, 0, 24, 0).DpToPx(),
+                HeightSpecification = 48.SpToPx(),
+                Margin = new Extents(0, 0, 24, 0).SpToPx(),
                 Layout = new RelativeLayout()
             };
             return inputArea;
@@ -194,14 +194,14 @@ namespace MusicPlayer.Views
             {
                 Name = "AlertDialogContent",
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 116.DpToPx(),
+                HeightSpecification = 116.SpToPx(),
                 BackgroundColor = Color.Transparent,
                 Layout = new LinearLayout()
                 {
                     LinearOrientation = LinearLayout.Orientation.Vertical,
                     HorizontalAlignment = HorizontalAlignment.Center,
                     VerticalAlignment = VerticalAlignment.Top,
-                    Margin = new Extents(0, 0, 40, 24).DpToPx(),
+                    Margin = new Extents(0, 0, 40, 24).SpToPx(),
                 }
             };
             return contentArea;
@@ -222,7 +222,7 @@ namespace MusicPlayer.Views
         {
             Button createButton = new Button()
             {
-                Size2D = new Size2D(336, 96).DpToPx(),
+                Size2D = new Size2D(336, 96).SpToPx(),
                 Name = "AlertDialogCreateButton",
                 Text = "Create",
             };
@@ -269,7 +269,7 @@ namespace MusicPlayer.Views
             {
                 Name = "InputLineView",
                 StyleName = "InputLine",
-                HeightSpecification = 2.DpToPx(),
+                HeightSpecification = 2.SpToPx(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
             };
             return view;
@@ -280,11 +280,11 @@ namespace MusicPlayer.Views
             View buttonArea = new View()
             {
                 BackgroundColor = Color.Transparent,
-                HeightSpecification = 96.DpToPx(),
+                HeightSpecification = 96.SpToPx(),
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 Layout = new RelativeLayout()
                 {
-                    Margin = new Extents(0, 0, 64, 0).DpToPx(),
+                    Margin = new Extents(0, 0, 64, 0).SpToPx(),
                 }
             };
             return buttonArea;
@@ -340,12 +340,12 @@ namespace MusicPlayer.Views
                 StyleName = "Dialogs",
                 //FixMe : Here WidthSpecification in portrait mode should be 1016 but that cause the
                 // AlertDialog to fill Full width of window but keeping width 952 is showing correclty
-                WidthSpecification = (DeviceInfo.IsPortrait ? 952 : 1184).DpToPx(),
-                HeightSpecification = 466.DpToPx(),
+                WidthSpecification = (DeviceInfo.IsPortrait ? 952 : 1184).SpToPx(),
+                HeightSpecification = 466.SpToPx(),
                 Layout = new LinearLayout()
                 {
-                    Padding = new Extents(80, 80, 40, 40).DpToPx(),
-                    Margin = new Extents(32, 32, 0, 0).DpToPx(),
+                    Padding = new Extents(80, 80, 40, 40).SpToPx(),
+                    Margin = new Extents(32, 32, 0, 0).SpToPx(),
                     LinearOrientation = LinearLayout.Orientation.Vertical,
                     HorizontalAlignment = HorizontalAlignment.Center,
                     VerticalAlignment = VerticalAlignment.Top,
index 434d11c0d2029104e24825e6dff0349d0e835056..31776901fc853c9276b603176eb64524a30eb136 100755 (executable)
@@ -42,7 +42,7 @@ namespace MusicPlayer.Views
                 Direction = FlexLayout.FlexDirection.Column,
                 ItemsAlignment = FlexLayout.AlignmentType.FlexStart,
                 Justification = FlexLayout.FlexJustification.FlexStart,
-                Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+                Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
             };
             AddTopView();
             AddTopViewElements();
@@ -65,7 +65,7 @@ namespace MusicPlayer.Views
             {
                 BackgroundColor = Color.Transparent,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 120.DpToPx(),
+                HeightSpecification = 120.SpToPx(),
                 Layout = new RelativeLayout(),
             };
             base.Add(topView);
@@ -76,8 +76,8 @@ namespace MusicPlayer.Views
             backButton = new Button("BackButton")
             {
                 ThemeChangeSensitive = true,
-                Size2D = new Size2D(48, 48).DpToPx(),
-                Margin = new Extents(0, 24, 0, 0).DpToPx(),
+                Size2D = new Size2D(48, 48).SpToPx(),
+                Margin = new Extents(0, 24, 0, 0).SpToPx(),
             };
             topView.Add(backButton);
             RelativeLayout.SetLeftTarget(backButton, topView);
@@ -90,11 +90,11 @@ namespace MusicPlayer.Views
             {
                 StyleName = "PageLabel",
                 ThemeChangeSensitive = true,
-                HeightSpecification = 48.DpToPx(),
+                HeightSpecification = 48.SpToPx(),
                 Text = "Search",
-                PixelSize = 36.DpToPx(),
+                PixelSize = 36.SpToPx(),
                 FontFamily = "BreezeSans",
-                Margin = new Extents(0, 32, 0, 0).DpToPx(),
+                Margin = new Extents(0, 32, 0, 0).SpToPx(),
                 VerticalAlignment = VerticalAlignment.Center,
                 FontStyle = UIFontStyles.NormalLight,
             };
@@ -111,8 +111,8 @@ namespace MusicPlayer.Views
             {
                 StyleName = "SearchBox",
                 ThemeChangeSensitive = true,
-                Size2D = new Size2D(648, 60).DpToPx(),
-                Margin = new Extents(0, 32, 0, 0).DpToPx(),
+                Size2D = new Size2D(648, 60).SpToPx(),
+                Margin = new Extents(0, 32, 0, 0).SpToPx(),
                 Layout = new FlexLayout()
                 {
                     Direction = FlexLayout.FlexDirection.Row,
@@ -125,19 +125,19 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 Name = "searchbutton",
-                Margin = new Extents(24, 0, 10, 10).DpToPx(),
-                Position2D = new Position2D(24, 10).DpToPx(),
+                Margin = new Extents(24, 0, 10, 10).SpToPx(),
+                Position2D = new Position2D(24, 10).SpToPx(),
             };
             textField = new TextField()
             {
                 StyleName = "TextField",
                 ThemeChangeSensitive = true,
                 Name ="Textfield",
-                Size2D = new Size2D(460, 40).DpToPx(),
+                Size2D = new Size2D(460, 40).SpToPx(),
                 BackgroundColor = Color.Transparent,
-                Position2D = new Position2D(88, 10).DpToPx(),
-                Margin = new Extents(24, 0, 10, 10).DpToPx(),
-                PixelSize = 32.DpToPx(),
+                Position2D = new Position2D(88, 10).SpToPx(),
+                Margin = new Extents(24, 0, 10, 10).SpToPx(),
+                PixelSize = 32.SpToPx(),
                 PlaceholderText = "Type Here",
                 PlaceholderTextFocused = "Search music",
             };
@@ -147,8 +147,8 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 Name = "crossButton",
-                Margin = new Extents(24, 0, 6, 6).DpToPx(),
-                Position2D = new Position2D(572, 6).DpToPx(),
+                Margin = new Extents(24, 0, 6, 6).SpToPx(),
+                Position2D = new Position2D(572, 6).SpToPx(),
             };
             crossButton.Clicked += CrossButtonClicked;
 
@@ -289,13 +289,13 @@ namespace MusicPlayer.Views
                             Direction = FlexLayout.FlexDirection.Column,
                             ItemsAlignment = FlexLayout.AlignmentType.Center,
                             Justification = FlexLayout.FlexJustification.FlexStart,
-                            Padding = (DeviceInfo.IsPortrait ? new Extents(0, 0, 482, 0) : new Extents(0, 0, 40, 0)).DpToPx(),
+                            Padding = (DeviceInfo.IsPortrait ? new Extents(0, 0, 482, 0) : new Extents(0, 0, 40, 0)).SpToPx(),
                         }
                     };
                     noItemsAnimation = new LottieAnimationView()
                     {
                         URL = Resources.GetLottiePath() + "search_no_result.json",
-                        Size2D = new Size2D(264, 292).DpToPx(),
+                        Size2D = new Size2D(264, 292).SpToPx(),
                         LoopCount = -1,
                         BackgroundColor = Color.Transparent,
                     };
@@ -304,12 +304,12 @@ namespace MusicPlayer.Views
                     {
                         StyleName = "TitleText",
                         WidthSpecification = LayoutParamPolicies.MatchParent,
-                        HeightSpecification = 36.DpToPx(),
+                        HeightSpecification = 36.SpToPx(),
                         Text = "No results found",
-                        PixelSize = 28.DpToPx(),
+                        PixelSize = 28.SpToPx(),
                         FontFamily = "BreezeSans",
                         HorizontalAlignment = HorizontalAlignment.Center,
-                        Margin = new Extents(0, 0, 32, 0).DpToPx(),
+                        Margin = new Extents(0, 0, 32, 0).SpToPx(),
                     };
                     noItemView.Add(textLabel);
                 }
index ec3757d0b5a5ec2e6997651ee85148a50c1fa349..e034f28cdd2d24e66c17082e2f1107fa3f881032 100755 (executable)
@@ -21,17 +21,17 @@ namespace MusicPlayer.Views
         {
             OnInitialize();
             WidthSpecification = LayoutParamPolicies.MatchParent;
-            HeightSpecification = 108.DpToPx();
+            HeightSpecification = 108.SpToPx();
 
             Layout = new RelativeLayout()
             {
-                Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+                Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
             };
             BackgroundColor = Color.Transparent;
 
             checkBox = new CheckBox("CheckBox");
             checkBox.Icon.Opacity = 1.0f;
-            checkBox.Icon.Size = new Size2D(BoxSize, BoxSize).DpToPx();
+            checkBox.Icon.Size = new Size2D(BoxSize, BoxSize).SpToPx();
             Add(checkBox);
             RelativeLayout.SetVerticalAlignment(checkBox, RelativeLayout.Alignment.Center);
             RelativeLayout.SetHorizontalAlignment(checkBox, RelativeLayout.Alignment.Start);
@@ -39,9 +39,9 @@ namespace MusicPlayer.Views
 
             icon = new ImageView()
             {
-                WidthSpecification = IconSize.DpToPx(),
-                HeightSpecification = IconSize.DpToPx(),
-                Margin = new Extents(32, 0, 0, 0).DpToPx(),
+                WidthSpecification = IconSize.SpToPx(),
+                HeightSpecification = IconSize.SpToPx(),
+                Margin = new Extents(32, 0, 0, 0).SpToPx(),
             };
             Add(icon);
             RelativeLayout.SetLeftTarget(icon, checkBox);
@@ -51,13 +51,13 @@ namespace MusicPlayer.Views
             textView = new View()
             {
                 BackgroundColor = Color.Transparent,
-                HeightSpecification = 76.DpToPx(),
+                HeightSpecification = 76.SpToPx(),
                 Layout = new LinearLayout()
                 {
                     LinearOrientation = LinearLayout.Orientation.Vertical,
                     HorizontalAlignment = HorizontalAlignment.Begin,
                     VerticalAlignment = VerticalAlignment.Top,
-                    Margin = new Extents(32, 0, 0, 0).DpToPx(),
+                    Margin = new Extents(32, 0, 0, 0).SpToPx(),
                 }
             };
             Add(textView);
@@ -71,8 +71,8 @@ namespace MusicPlayer.Views
             {
                 StyleName = "ItemLabel",
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 40.DpToPx(),
-                PixelSize = 32.DpToPx(),
+                HeightSpecification = 40.SpToPx(),
+                PixelSize = 32.SpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -85,8 +85,8 @@ namespace MusicPlayer.Views
             {
                 StyleName = "ItemLabel",
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 36.DpToPx(),
-                PixelSize = 28.DpToPx(),
+                HeightSpecification = 36.SpToPx(),
+                PixelSize = 28.SpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -98,7 +98,7 @@ namespace MusicPlayer.Views
             itemSeperator = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 2.DpToPx(),
+                HeightSpecification = 2.SpToPx(),
                 BackgroundColor = UIColors.ItemSeperator,
             };
             Add(itemSeperator);
index 1c92dec4483b0dce740e7d7a8ce0304eca02e632..3e0ff2aa60497e8ce584d193ec1c970c1dab52f8 100755 (executable)
@@ -49,7 +49,7 @@ namespace MusicPlayer.Views
                 Direction = FlexLayout.FlexDirection.Column,
                 ItemsAlignment = FlexLayout.AlignmentType.FlexStart,
                 Justification = FlexLayout.FlexJustification.FlexStart,
-                Padding = (DeviceInfo.IsPortrait ? new Extents(PortraitPadding ,PortraitPadding, 0, 0) : new Extents(LayoutPadding, LayoutPadding, 0, 0)).DpToPx(),
+                Padding = (DeviceInfo.IsPortrait ? new Extents(PortraitPadding ,PortraitPadding, 0, 0) : new Extents(LayoutPadding, LayoutPadding, 0, 0)).SpToPx(),
             };
 
             topView = AddTopView();
@@ -87,7 +87,7 @@ namespace MusicPlayer.Views
             {
                 BackgroundColor = Color.Transparent,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 120.DpToPx(),
+                HeightSpecification = 120.SpToPx(),
                 Layout = new RelativeLayout(),
             };
             base.Add(topView);
@@ -99,8 +99,8 @@ namespace MusicPlayer.Views
             selectedCountLabel = new TextLabel()
             {
                 StyleName = "TitleText",
-                HeightSpecification = 48.DpToPx(),
-                PixelSize = 36.DpToPx(),
+                HeightSpecification = 48.SpToPx(),
+                PixelSize = 36.SpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
@@ -119,7 +119,7 @@ namespace MusicPlayer.Views
         private void AddButtons()
         {
             doneButton = CreateButton("Done");
-            doneButton.Margin = new Extents(40, 0, 0, 0).DpToPx();
+            doneButton.Margin = new Extents(40, 0, 0, 0).SpToPx();
             topView.Add(doneButton);
             doneButton.Clicked += (object o, ClickedEventArgs args) =>
             {
@@ -132,7 +132,7 @@ namespace MusicPlayer.Views
             RelativeLayout.SetVerticalAlignment(doneButton, RelativeLayout.Alignment.Center);
 
             cancelButton = CreateButton("Cancel");
-            cancelButton.Margin = new Extents(40, 0, 0, 0).DpToPx();
+            cancelButton.Margin = new Extents(40, 0, 0, 0).SpToPx();
             cancelButton.IsEnabled = true;
             topView.Add(cancelButton);
             cancelButton.Clicked += (object o, ClickedEventArgs args) =>
@@ -213,14 +213,14 @@ namespace MusicPlayer.Views
                 StyleName = "SelectAllBg",
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 108.DpToPx(),
-                Margin = new Extents(0, 0, 0, 40).DpToPx(),
+                HeightSpecification = 108.SpToPx(),
+                Margin = new Extents(0, 0, 0, 40).SpToPx(),
                 Layout = new LinearLayout
                 {
                     LinearOrientation= LinearLayout.Orientation.Horizontal,
                     HorizontalAlignment = HorizontalAlignment.Begin,
                     VerticalAlignment = VerticalAlignment.Center,
-                    Padding = (DeviceInfo.IsPortrait ? new Extents(PortraitPadding, PortraitPadding, 34, 34) : new Extents(LayoutPadding, LayoutPadding, 34, 34)).DpToPx()
+                    Padding = (DeviceInfo.IsPortrait ? new Extents(PortraitPadding, PortraitPadding, 34, 34) : new Extents(LayoutPadding, LayoutPadding, 34, 34)).SpToPx()
                 },
             };
             base.Add(selAllView);
@@ -231,8 +231,8 @@ namespace MusicPlayer.Views
         {
             selAllButton = new CheckBox()
             {
-                Size2D = new Size2D(36, 36).DpToPx(),
-                Margin = new Extents(0, 32, 2, 2).DpToPx(),
+                Size2D = new Size2D(36, 36).SpToPx(),
+                Margin = new Extents(0, 32, 2, 2).SpToPx(),
             };
             selAllView.Add(selAllButton);
             selAllButton.Clicked += OnSelAllClicked;
@@ -241,8 +241,8 @@ namespace MusicPlayer.Views
             {
                 StyleName ="LabelText",
                 Text = "Select All",
-                HeightSpecification = 40.DpToPx(),
-                PixelSize = 32.DpToPx(),
+                HeightSpecification = 40.SpToPx(),
+                PixelSize = 32.SpToPx(),
                 FontFamily = "BreezeSans",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
index 6fd92f6e4302bc579eb4524b4f20c3b55dc400be..051524593bd895ebfee63d2aaef19b6934c14de2 100755 (executable)
@@ -95,7 +95,7 @@ namespace MusicPlayer.Views
                 BackgroundColor = Color.Transparent,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
                 HeightSpecification = LayoutParamPolicies.MatchParent,
-                Margin = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 64) : new Extents(64, 64, 0, 32)).DpToPx(),
+                Margin = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 64) : new Extents(64, 64, 0, 32)).SpToPx(),
                 ScrollingDirection = ScrollableBase.Direction.Vertical,
                 Layout = new LinearLayout(),
             };
@@ -123,14 +123,14 @@ namespace MusicPlayer.Views
             navigationContent = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 120.DpToPx(),
+                HeightSpecification = 120.SpToPx(),
                 BackgroundColor = Color.Transparent,
                 Layout = new LinearLayout()
                 {
                     LinearOrientation = LinearLayout.Orientation.Horizontal,
                     HorizontalAlignment = HorizontalAlignment.Begin,
                     VerticalAlignment = VerticalAlignment.Center,
-                    CellPadding = new Size2D(24, 0).DpToPx()
+                    CellPadding = new Size2D(24, 0).SpToPx()
                 },
             };
             backButton = new Button("BackButton");
@@ -145,7 +145,7 @@ namespace MusicPlayer.Views
                 StyleName = "PageLabel",
                 HorizontalAlignment = HorizontalAlignment.Begin,
                 VerticalAlignment = VerticalAlignment.Center,
-                PixelSize = 40.DpToPx(),
+                PixelSize = 40.SpToPx(),
                 FontFamily = "BreezeSans",
                 FontStyle = UIFontStyles.AllNormal,
                 Text = "Details",
@@ -163,7 +163,7 @@ namespace MusicPlayer.Views
                 {
                     BackgroundColor = Color.Transparent,
                     NavigationContent = CreateNavigationContent(),
-                    Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+                    Padding = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
                 },
                 Content = CreateContent(),
             };
@@ -176,24 +176,24 @@ namespace MusicPlayer.Views
             {
                 BackgroundColor = Color.Transparent,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 108.DpToPx(),
+                HeightSpecification = 108.SpToPx(),
                 BindingContext = viewModel.Model,
                 Layout = new RelativeLayout()
                 {
-                    Margin = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).DpToPx(),
+                    Margin = (DeviceInfo.IsPortrait ? new Extents(32, 32, 0, 0) : new Extents(64, 64, 0, 0)).SpToPx(),
                 }
             };
 
             View textArea = new View()
             {
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 76.DpToPx(),
+                HeightSpecification = 76.SpToPx(),
                 Layout = new LinearLayout()
                 {
                     LinearOrientation = LinearLayout.Orientation.Vertical,
                     HorizontalAlignment = HorizontalAlignment.Begin,
                     VerticalAlignment = VerticalAlignment.Top,
-                    Margin = new Extents(0, 0, 16, 16).DpToPx(),
+                    Margin = new Extents(0, 0, 16, 16).SpToPx(),
                 },
             };
             view.Add(textArea);
@@ -203,7 +203,7 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 40.DpToPx(),
+                HeightSpecification = 40.SpToPx(),
                 StyleName = "DetailTitle",
                 FontStyle = UIFontStyles.NormalLight,
                 Text = title,
@@ -216,7 +216,7 @@ namespace MusicPlayer.Views
             {
                 ThemeChangeSensitive = true,
                 WidthSpecification = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 36.DpToPx(),
+                HeightSpecification = 36.SpToPx(),
                 StyleName = "DetailSubTitle",
                 FontStyle = UIFontStyles.AllNormal,
                 HorizontalAlignment = HorizontalAlignment.Begin,
@@ -229,7 +229,7 @@ namespace MusicPlayer.Views
             {
                 BackgroundColor = UIColors.HEXC3CAD2,
                 WidthSpecification  = LayoutParamPolicies.MatchParent,
-                HeightSpecification = 2.DpToPx(),
+                HeightSpecification = 2.SpToPx(),
             };
             view.Add(itemSeparator);
             RelativeLayout.SetVerticalAlignment(itemSeparator, RelativeLayout.Alignment.End);
index 762dfb3b0441b6cf0e3318bacd33f19cfc436835..d06a2274044f29f5a1e1efe2bf4cb5ac65ac4116 100755 (executable)
@@ -42,7 +42,7 @@ namespace MusicPlayer.Views
             {\r
                 StyleName = "LabelText",\r
                 ThemeChangeSensitive = true,\r
-                PixelSize = 28.DpToPx(),\r
+                PixelSize = 28.SpToPx(),\r
                 Text = "TRACK COUNT",\r
                 HorizontalAlignment = HorizontalAlignment.Begin,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
@@ -72,7 +72,7 @@ namespace MusicPlayer.Views
             playAllWithShuffle = new Button("ShuffleButton")\r
             {\r
                 ThemeChangeSensitive = true,\r
-                Margin = new Extents(32, 40, 0, 0).DpToPx(),\r
+                Margin = new Extents(32, 40, 0, 0).SpToPx(),\r
             };\r
             titleView.Add(playAllWithShuffle);\r
             playAllWithShuffle.Clicked += (object sender, ClickedEventArgs e) =>\r
index 846bf4213f3b3f08449fea7fc3c0f9308ba4f444..8da2cc0f80137876303cfa4f2fb35e1abea23c6d 100755 (executable)
@@ -15,11 +15,11 @@ namespace MusicPlayer.Views.Utils
             AddOkButton();
             errorDialog = new AlertDialog()
             {
-                Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 368).DpToPx(),
+                Size2D = new Size2D((DeviceInfo.IsPortrait ? 1016 : 1184), 368).SpToPx(),
                 Title = "Unable to play track",
                 Message = "",
                 Actions = new List<View> { okButton },
-                Margin = new Extents(32, 32, 0, 0).DpToPx(),
+                Margin = new Extents(32, 32, 0, 0).SpToPx(),
             };
 
             TextLabel textLabel = (TextLabel)errorDialog.TitleContent;
index ce6ef127ebcd46d422fab2e1488744f7b41ac11b..0508d5523ceddf8eb640698f959f07933d7cc714 100755 (executable)
@@ -16,7 +16,6 @@ namespace MusicPlayer.Views
         private readonly ViewLibrary viewLibrary;
         private View rootView;
         private BaseView baseView;
-        private View miniPlayer;
         private static readonly  string[] TabNames = new string[]
         {
             "Playlists",
index 64aee73109609b0bafec9faa772f1bcd97fab800..0b0febc02d8c671d24b5fb32ce005a454d05734b 100755 (executable)
@@ -15,13 +15,13 @@ Id="DarkTheme">
 
   <TextFieldStyle x:Key="TextField" TextColor ="#FFFFFF" />
 
-  <c:DefaultTitleItemStyle x:Key="DefaultTitle" Size="1920dp, 60dp" BackgroundColor="#0E1017">
+  <c:DefaultTitleItemStyle x:Key="DefaultTitle" Size="1920sp, 60sp" BackgroundColor="#0E1017">
     <c:DefaultTitleItemStyle.Label>
-      <TextLabelStyle PixelSize ="28dp" TextColor ="#FFFFFF" />
+      <TextLabelStyle PixelSize ="28sp" TextColor ="#FFFFFF" />
     </c:DefaultTitleItemStyle.Label>
   </c:DefaultTitleItemStyle>
 
-  <c:ButtonStyle x:Key="PrevButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PrevButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -31,7 +31,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="NextButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="NextButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -41,7 +41,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="ShuffleButton" Size="48dp, 48dp" Position="0dp, 196dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="ShuffleButton" Size="48sp, 48sp" Position="0sp, 196sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -51,7 +51,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="RepeatButton" Size="48dp, 48dp" Position="592dp, 196dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="RepeatButton" Size="48sp, 48sp" Position="592sp, 196sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -61,7 +61,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="ListButton" Size="48dp, 48dp" Position="0dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="ListButton" Size="48sp, 48sp" Position="0sp, 0sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -71,7 +71,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="PlaylistButton" Size="48dp, 48dp" Position="88dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PlaylistButton" Size="48sp, 48sp" Position="88sp, 0sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -81,7 +81,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="FavouriteButton" Size="48dp, 48dp" Position="176dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="FavouriteButton" Size="48sp, 48sp" Position="176sp, 0sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -91,7 +91,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="PlayAll" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PlayAll" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -101,7 +101,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="PlaylistAdd" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PlaylistAdd" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -111,7 +111,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:SliderStyle x:Key="Slider" TrackThickness="8dp" IndicatorType="Image">
+  <c:SliderStyle x:Key="Slider" TrackThickness="8sp" IndicatorType="Image">
     <c:SliderStyle.Track>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/empty_track.png</ImageViewStyle.ResourceUrl>
@@ -131,7 +131,7 @@ Id="DarkTheme">
     </c:SliderStyle.Thumb>
   </c:SliderStyle>
 
-  <c:ButtonStyle x:Key="BackButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="BackButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -141,7 +141,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="MoreButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="MoreButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -151,7 +151,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="SearchIcon" Size="40dp, 40dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="SearchIcon" Size="40sp, 40sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/dark/search_icon.png</ImageViewStyle.ResourceUrl>
@@ -159,11 +159,11 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <ImageViewStyle x:Key="LeftVolume" Size="48dp, 48dp" Position="0dp, 336dp">
+  <ImageViewStyle x:Key="LeftVolume" Size="48sp, 48sp" Position="0sp, 336sp">
     <ImageViewStyle.ResourceUrl>*Resource*/images/dark/left_sound_icon.png</ImageViewStyle.ResourceUrl>
   </ImageViewStyle>
 
-  <ImageViewStyle x:Key="RightVolume" Size="48dp, 48dp" Position="592dp, 336dp">
+  <ImageViewStyle x:Key="RightVolume" Size="48sp, 48sp" Position="592sp, 336sp">
     <ImageViewStyle.ResourceUrl>*Resource*/images/dark/right_sound_icon.png</ImageViewStyle.ResourceUrl>
   </ImageViewStyle>
 
@@ -179,16 +179,16 @@ Id="DarkTheme">
 
   <TextLabelStyle x:Key="TitleText" TextColor="#FFFFFF"/>
 
-  <c:ButtonStyle x:Key="CancelButton" Size="336dp, 96dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
+  <c:ButtonStyle x:Key="CancelButton" Size="336sp, 96sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
     <c:ButtonStyle.BackgroundImage>*Resource*/images/dark/cancel_button_bg.png</c:ButtonStyle.BackgroundImage>
     <c:ButtonStyle.Text>
-      <TextLabelStyle TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="32dp" Text="Cancel"/>
+      <TextLabelStyle TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="32sp" Text="Cancel"/>
     </c:ButtonStyle.Text>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="TextButton" Size="260dp, 64dp" BackgroundColor="Transparent" >
+  <c:ButtonStyle x:Key="TextButton" Size="260sp, 64sp" BackgroundColor="Transparent" >
     <c:ButtonStyle.Text>
-      <TextLabelStyle FontFamily="BreezeSans" PixelSize="28dp" VerticalAlignment ="Center" >
+      <TextLabelStyle FontFamily="BreezeSans" PixelSize="28sp" VerticalAlignment ="Center" >
         <TextLabelStyle.TextColor>
           <Selector x:TypeArguments="Color" Normal="#FFFFFF" Pressed="#1473E6" Disabled="#B2B7BE" />
         </TextLabelStyle.TextColor>
@@ -196,7 +196,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Text>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="ClearButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="ClearButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/dark/cross_button.png</ImageViewStyle.ResourceUrl>
@@ -204,7 +204,7 @@ Id="DarkTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="CheckBox" Size="36dp, 36dp" IsSelected="false" IsEnabled="false" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="CheckBox" Size="36sp, 36sp" IsSelected="false" IsEnabled="false" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -216,14 +216,14 @@ Id="DarkTheme">
 
   <c:TabStyle x:Key="Tabs" BackgroundColor="#000209">
     <c:TabStyle.Text>
-      <TextLabelStyle TextColor="#FFFFFF" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="28dp"/>
+      <TextLabelStyle TextColor="#FFFFFF" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="28sp"/>
     </c:TabStyle.Text>
     <c:TabStyle.UnderLine>
-      <ViewStyle BackgroundColor="#FFFFFF" SizeHeight="8dp"/>
+      <ViewStyle BackgroundColor="#FFFFFF" SizeHeight="8sp"/>
     </c:TabStyle.UnderLine>
   </c:TabStyle>
 
-  <c:ButtonStyle x:Key="SearchButton" Size="96dp, 60dp" IsSelectable="false" IsEnabled="true" BackgroundImage="*Resource*/images/dark/search_button_bg.png">
+  <c:ButtonStyle x:Key="SearchButton" Size="96sp, 60sp" IsSelectable="false" IsEnabled="true" BackgroundImage="*Resource*/images/dark/search_button_bg.png">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/dark/search_icon.png</ImageViewStyle.ResourceUrl>
@@ -233,13 +233,13 @@ Id="DarkTheme">
 
   <c:DefaultLinearItemStyle x:Key="LinearItem" BackgroundColor="Transparent">
     <c:DefaultLinearItemStyle.Label>
-      <TextLabelStyle TextColor="#FFFFFF" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="32dp"/>
+      <TextLabelStyle TextColor="#FFFFFF" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="32sp"/>
     </c:DefaultLinearItemStyle.Label>
   </c:DefaultLinearItemStyle>
 
   <c:ButtonStyle x:Key="PlaylistCreate" BackgroundColor="Transparent" >
     <c:ButtonStyle.Text>
-      <TextLabelStyle FontFamily="BreezeSans" PixelSize="32dp" Text="+ Create new playlist">
+      <TextLabelStyle FontFamily="BreezeSans" PixelSize="32sp" Text="+ Create new playlist">
         <TextLabelStyle.TextColor>
           <Selector x:TypeArguments="Color" Normal="#FFFFFF" Pressed="#1473E6" Disabled="#C3CAD2" />
         </TextLabelStyle.TextColor>
@@ -247,8 +247,8 @@ Id="DarkTheme">
     </c:ButtonStyle.Text>
   </c:ButtonStyle>
 
-  <TextLabelStyle x:Key="DetailTitle" TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="32dp"/>
-  <TextLabelStyle x:Key="DetailSubTitle" TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="28dp"/>
+  <TextLabelStyle x:Key="DetailTitle" TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="32sp"/>
+  <TextLabelStyle x:Key="DetailSubTitle" TextColor="#FFFFFF" FontFamily="BreezeSans" PixelSize="28sp"/>
 
   <c:AlertDialogStyle x:Key="Dialogs" BackgroundImage="*Resource*/images/dark/alert_dialog_bg.png" />
 
index 44c34512dec8c8b0002ce5075e8db2a7fa98b1c5..17dee3745fefd8cb280506c66054e6dcafc99759 100755 (executable)
@@ -15,13 +15,13 @@ Id="LightTheme">
 
   <TextFieldStyle x:Key="TextField" TextColor ="#001447" />
 
-  <c:DefaultTitleItemStyle x:Key="DefaultTitle" Size="1920dp, 60dp" BackgroundColor="#EEEFF1">
+  <c:DefaultTitleItemStyle x:Key="DefaultTitle" Size="1920sp, 60sp" BackgroundColor="#EEEFF1">
     <c:DefaultTitleItemStyle.Label>
-      <TextLabelStyle PixelSize ="28dp" TextColor ="#001447" />
+      <TextLabelStyle PixelSize ="28sp" TextColor ="#001447" />
     </c:DefaultTitleItemStyle.Label>
   </c:DefaultTitleItemStyle>
 
-  <c:ButtonStyle x:Key="PrevButton" Size="48dp, 48dp" BackgroundColor="Transparent" >
+  <c:ButtonStyle x:Key="PrevButton" Size="48sp, 48sp" BackgroundColor="Transparent" >
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -31,7 +31,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="NextButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
+  <c:ButtonStyle x:Key="NextButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -41,7 +41,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="ShuffleButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="ShuffleButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -51,7 +51,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="RepeatButton" Size="48dp, 48dp" Position="592dp, 196dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="RepeatButton" Size="48sp, 48sp" Position="592sp, 196sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -61,7 +61,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="ListButton" Size="48dp, 48dp" Position="0dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="ListButton" Size="48sp, 48sp" Position="0sp, 0sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -71,7 +71,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="PlaylistButton" Size="48dp, 48dp" Position="88dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PlaylistButton" Size="48sp, 48sp" Position="88sp, 0sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -81,7 +81,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="FavouriteButton" Size="48dp, 48dp" Position="176dp, 0dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="FavouriteButton" Size="48sp, 48sp" Position="176sp, 0sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -91,7 +91,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="PlayAll" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PlayAll" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -101,7 +101,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="PlaylistAdd" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="PlaylistAdd" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -111,7 +111,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:SliderStyle x:Key="Slider" TrackThickness="8dp" IndicatorType="Image">
+  <c:SliderStyle x:Key="Slider" TrackThickness="8sp" IndicatorType="Image">
     <c:SliderStyle.Track>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/empty_track.png</ImageViewStyle.ResourceUrl>
@@ -131,7 +131,7 @@ Id="LightTheme">
     </c:SliderStyle.Thumb>
   </c:SliderStyle>
 
-  <c:ButtonStyle x:Key="BackButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="BackButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -141,7 +141,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="MoreButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="MoreButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -151,7 +151,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="SearchIcon" Size="40dp, 40dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="SearchIcon" Size="40sp, 40sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/light/search_icon.png</ImageViewStyle.ResourceUrl>
@@ -159,11 +159,11 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <ImageViewStyle x:Key="LeftVolume" Size="48dp, 48dp" Position="0dp, 336dp">
+  <ImageViewStyle x:Key="LeftVolume" Size="48sp, 48sp" Position="0sp, 336sp">
     <ImageViewStyle.ResourceUrl>*Resource*/images/light/left_sound_icon.png</ImageViewStyle.ResourceUrl>
   </ImageViewStyle>
 
-  <ImageViewStyle x:Key="RightVolume" Size="48dp, 48dp" Position="592dp, 336dp">
+  <ImageViewStyle x:Key="RightVolume" Size="48sp, 48sp" Position="592sp, 336sp">
     <ImageViewStyle.ResourceUrl>*Resource*/images/light/right_sound_icon.png</ImageViewStyle.ResourceUrl>
   </ImageViewStyle>
 
@@ -179,16 +179,16 @@ Id="LightTheme">
 
   <TextLabelStyle x:Key="TitleText" TextColor="#000C2B"/>
 
-  <c:ButtonStyle x:Key="CancelButton" Size="336dp, 96dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
+  <c:ButtonStyle x:Key="CancelButton" Size="336sp, 96sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent" >
     <c:ButtonStyle.BackgroundImage>*Resource*/images/light/cancel_button_bg.png</c:ButtonStyle.BackgroundImage>
     <c:ButtonStyle.Text>
-      <TextLabelStyle TextColor="#000C2B" FontFamily="BreezeSans" PixelSize="32dp" Text="Cancel"/>
+      <TextLabelStyle TextColor="#000C2B" FontFamily="BreezeSans" PixelSize="32sp" Text="Cancel"/>
     </c:ButtonStyle.Text>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="TextButton" Size="260dp, 64dp" BackgroundColor="Transparent" >
+  <c:ButtonStyle x:Key="TextButton" Size="260sp, 64sp" BackgroundColor="Transparent" >
     <c:ButtonStyle.Text>
-      <TextLabelStyle FontFamily="BreezeSans" PixelSize="28dp" VerticalAlignment ="Center" >
+      <TextLabelStyle FontFamily="BreezeSans" PixelSize="28sp" VerticalAlignment ="Center" >
         <TextLabelStyle.TextColor>
           <Selector x:TypeArguments="Color" Normal="#000C2B" Pressed="#1473E6" Disabled="#B2B7BE" />
         </TextLabelStyle.TextColor>
@@ -196,7 +196,7 @@ Id="LightTheme">
     </c:ButtonStyle.Text>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="ClearButton" Size="48dp, 48dp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="ClearButton" Size="48sp, 48sp" IsSelectable="false" IsEnabled="true" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/light/cross_button.png</ImageViewStyle.ResourceUrl>
@@ -204,7 +204,7 @@ Id="LightTheme">
     </c:ButtonStyle.Icon>
   </c:ButtonStyle>
 
-  <c:ButtonStyle x:Key="CheckBox" Size="36dp, 36dp" IsSelected="false" IsEnabled="false" BackgroundColor="Transparent">
+  <c:ButtonStyle x:Key="CheckBox" Size="36sp, 36sp" IsSelected="false" IsEnabled="false" BackgroundColor="Transparent">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>
@@ -216,14 +216,14 @@ Id="LightTheme">
 
   <c:TabStyle x:Key="Tabs" BackgroundColor="White">
     <c:TabStyle.Text>
-      <TextLabelStyle TextColor="#000C2B" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="28dp"/>
+      <TextLabelStyle TextColor="#000C2B" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="28sp"/>
     </c:TabStyle.Text>
     <c:TabStyle.UnderLine>
-      <ViewStyle BackgroundColor="#0A0E4A" SizeHeight="8dp"/>
+      <ViewStyle BackgroundColor="#0A0E4A" SizeHeight="8sp"/>
     </c:TabStyle.UnderLine>
   </c:TabStyle>
 
-  <c:ButtonStyle x:Key="SearchButton" Size="96dp, 60dp" IsSelectable="false" IsEnabled="true" BackgroundImage="*Resource*/images/light/search_button_bg.png">
+  <c:ButtonStyle x:Key="SearchButton" Size="96sp, 60sp" IsSelectable="false" IsEnabled="true" BackgroundImage="*Resource*/images/light/search_button_bg.png">
     <c:ButtonStyle.Icon>
       <ImageViewStyle>
         <ImageViewStyle.ResourceUrl>*Resource*/images/light/search_icon.png</ImageViewStyle.ResourceUrl>
@@ -233,13 +233,13 @@ Id="LightTheme">
 
   <c:DefaultLinearItemStyle x:Key="LinearItem" BackgroundColor="Transparent">
     <c:DefaultLinearItemStyle.Label>
-      <TextLabelStyle TextColor="#001447" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="32dp"/>
+      <TextLabelStyle TextColor="#001447" ThemeChangeSensitive="true" FontFamily="BreezeSans" PixelSize="32sp"/>
     </c:DefaultLinearItemStyle.Label>
   </c:DefaultLinearItemStyle>
 
   <c:ButtonStyle x:Key="PlaylistCreate" BackgroundColor="Transparent" >
     <c:ButtonStyle.Text>
-      <TextLabelStyle FontFamily="BreezeSans" PixelSize="32dp" Text="+ Create new playlist">
+      <TextLabelStyle FontFamily="BreezeSans" PixelSize="32sp" Text="+ Create new playlist">
         <TextLabelStyle.TextColor>
           <Selector x:TypeArguments="Color" Normal="#001447" Pressed="#1473E6" Disabled="#C3CAD2" />
         </TextLabelStyle.TextColor>
@@ -247,8 +247,8 @@ Id="LightTheme">
     </c:ButtonStyle.Text>
   </c:ButtonStyle>
 
-  <TextLabelStyle x:Key="DetailTitle" TextColor="#001447" FontFamily="BreezeSans" PixelSize="32dp"/>
-  <TextLabelStyle x:Key="DetailSubTitle" TextColor="#001447" FontFamily="BreezeSans" PixelSize="28dp"/>
+  <TextLabelStyle x:Key="DetailTitle" TextColor="#001447" FontFamily="BreezeSans" PixelSize="32sp"/>
+  <TextLabelStyle x:Key="DetailSubTitle" TextColor="#001447" FontFamily="BreezeSans" PixelSize="28sp"/>
 
   <c:AlertDialogStyle x:Key="Dialogs" BackgroundImage="*Resource*/images/light/alert_dialog_bg.png" />