49 references to ToScaledPixel
Microsoft.Maui (49)
Handlers\ScrollView\ScrollViewHandler.Tizen.cs (2)
56
var width = Math.Max((VirtualView.PresentedContent.Margin.HorizontalThickness + VirtualView.PresentedContent.Frame.Width + VirtualView.Padding.HorizontalThickness).
ToScaledPixel
(), 100);
57
var height = Math.Max((VirtualView.PresentedContent.Margin.VerticalThickness + VirtualView.PresentedContent.Frame.Height + VirtualView.Padding.VerticalThickness).
ToScaledPixel
(), 100);
Handlers\ViewHandlerExtensions.Tizen.cs (2)
58
int availableWidthAsInt = widthConstraint.
ToScaledPixel
();
59
int availableHeightAsInt = heightConstraint.
ToScaledPixel
();
Handlers\WebView\WebViewHandler.Tizen.cs (2)
9
MinimumSize = new Tizen.NUI.Size2D(MinimumSize.
ToScaledPixel
(), MinimumSize.
ToScaledPixel
()),
Platform\Tizen\ButtonExtensions.cs (3)
20
platformButton.TextLabel.CharacterSpacing = button.CharacterSpacing.
ToScaledPixel
();
37
platformButton.BorderlineWidth = button.StrokeThickness.
ToScaledPixel
();
44
platformButton.CornerRadius = ((double)button.CornerRadius).
ToScaledPixel
();
Platform\Tizen\DPExtensions.cs (1)
77
return dp.
ToScaledPixel
() * 72 / DeviceInfo.DPI;
Platform\Tizen\EditorExtensions.cs (1)
104
platformEditor.CharacterSpacing = editor.CharacterSpacing.
ToScaledPixel
();
Platform\Tizen\EntryExtensions.cs (1)
109
platformEntry.CharacterSpacing = entry.CharacterSpacing.
ToScaledPixel
();
Platform\Tizen\FlyoutViewExtensions.cs (1)
39
platformDrawerView.DrawerWidth = flyoutView.FlyoutWidth.
ToScaledPixel
();
Platform\Tizen\LabelExtensions.cs (4)
49
var offsetX = view.Shadow.Offset.X.
ToScaledPixel
();
50
var offsetY = view.Shadow.Offset.Y.
ToScaledPixel
();
51
var radius = ((double)view.Shadow.Radius).
ToScaledPixel
();
70
platformLabel.CharacterSpacing = label.CharacterSpacing.
ToScaledPixel
();
Platform\Tizen\MauiImageButton.cs (2)
31
BorderlineWidth = button.StrokeThickness.
ToScaledPixel
();
37
CornerRadius = ((double)button.CornerRadius).
ToScaledPixel
();
Platform\Tizen\MauiPageControl.cs (5)
89
return new TSize(IndicatorSizeWithMargin.
ToScaledPixel
() * _indicators.Count, IndicatorSizeWithMargin.
ToScaledPixel
());
154
Margin = new NExtents((ushort)DefaultMargin.
ToScaledPixel
()),
155
Size = new NSize(IndicatorSize.
ToScaledPixel
(), IndicatorSize.
ToScaledPixel
())
Platform\Tizen\MauiPicker.cs (1)
20
SizeHeight = 1d.
ToScaledPixel
(),
Platform\Tizen\MauiSearchBar.cs (7)
62
return new TSize(availableWidth, Math.Max(Entry.NaturalSize.Height, IconSize.
ToScaledPixel
() + IconMargin.
ToScaledPixel
()));
66
return new TSize(Math.Max(Entry.PixelSize + 10, availableWidth), Math.Max(Entry.PixelSize + 10, IconSize.
ToScaledPixel
() + IconMargin.
ToScaledPixel
()));
110
var margin = (float)IconMargin.
ToScaledPixel
();
112
var iconSize = (float)IconSize.
ToScaledPixel
();
115
CornerRadius = Radius.
ToScaledPixel
();
Platform\Tizen\MauiStepper.cs (8)
80
return new TSize(Math.Min(200d.
ToScaledPixel
(), availableWidth), 60d.
ToScaledPixel
());
149
Margin = new Extents((ushort)s_margin.
ToScaledPixel
(), (ushort)s_margin.
ToScaledPixel
(), (ushort)s_margin.
ToScaledPixel
(), (ushort)s_margin.
ToScaledPixel
());
150
BorderlineWidth = 1d.
ToScaledPixel
();
152
CornerRadius = s_cornerRadius.
ToScaledPixel
();
Platform\Tizen\MauiSwipeView.cs (4)
343
var swipeItemHeight = swipeItemSize.Height.
ToScaledPixel
();
344
var swipeItemWidth = swipeItemSize.Width.
ToScaledPixel
();
408
var offset = AdjustSwipeOffset(_swipeOffset.
ToScaledPixel
());
556
float swipeThreshold = _swipeOffset.
ToScaledPixel
();
Platform\Tizen\MauiToolbar.cs (3)
33
BoxShadow = new NShadow(5d.
ToScaledPixel
(), NColor.Black, new NVector2(0, 0));
35
SizeHeight = s_toolbarHeight.
ToScaledPixel
();
42
SizeHeight = s_toolbarHeight.
ToScaledPixel
();
Platform\Tizen\ViewExtensions.cs (2)
198
platformView.MinimumSize = new Tizen.NUI.Size2D(view.MinimumWidth.
ToScaledPixel
(), platformView.MinimumSize.Height);
203
platformView.MinimumSize = new Tizen.NUI.Size2D(platformView.MinimumSize.Width, view.MinimumHeight.
ToScaledPixel
());