@@ -261,9 +261,9 @@ public Element LeftToLeft(UIElement secondView = null, float margin = 0)
261
261
{
262
262
if ( secondView == null )
263
263
{
264
- return this . LeftToLeft ( ConstraintSet . ParentId , Dp2Px ( margin ) ) ;
264
+ return this . LeftToLeft ( ConstraintSet . ParentId , ( margin ) ) ;
265
265
}
266
- return this . LeftToLeft ( secondView . GetId ( ) , Dp2Px ( margin ) ) ;
266
+ return this . LeftToLeft ( secondView . GetId ( ) , ( margin ) ) ;
267
267
}
268
268
269
269
protected Element LeftToRight ( int secondView , float margin = 0 )
@@ -278,9 +278,9 @@ public Element LeftToRight(UIElement secondView = null, float margin = 0)
278
278
{
279
279
if ( secondView == null )
280
280
{
281
- return this . LeftToRight ( ConstraintSet . ParentId , Dp2Px ( margin ) ) ;
281
+ return this . LeftToRight ( ConstraintSet . ParentId , ( margin ) ) ;
282
282
}
283
- return this . LeftToRight ( secondView . GetId ( ) , Dp2Px ( margin ) ) ;
283
+ return this . LeftToRight ( secondView . GetId ( ) , ( margin ) ) ;
284
284
}
285
285
286
286
protected Element TopToTop ( int secondView , float margin = 0 )
@@ -295,9 +295,9 @@ public Element TopToTop(UIElement secondView = null, float margin = 0)
295
295
{
296
296
if ( secondView == null )
297
297
{
298
- return this . TopToTop ( ConstraintSet . ParentId , Dp2Px ( margin ) ) ;
298
+ return this . TopToTop ( ConstraintSet . ParentId , ( margin ) ) ;
299
299
}
300
- return this . TopToTop ( secondView . GetId ( ) , Dp2Px ( margin ) ) ;
300
+ return this . TopToTop ( secondView . GetId ( ) , ( margin ) ) ;
301
301
}
302
302
303
303
protected Element TopToBottom ( int secondView , float margin = 0 )
@@ -312,9 +312,9 @@ public Element TopToBottom(UIElement secondView = null, float margin = 0)
312
312
{
313
313
if ( secondView == null )
314
314
{
315
- return this . TopToBottom ( ConstraintSet . ParentId , Dp2Px ( margin ) ) ;
315
+ return this . TopToBottom ( ConstraintSet . ParentId , ( margin ) ) ;
316
316
}
317
- return this . TopToBottom ( secondView . GetId ( ) , Dp2Px ( margin ) ) ;
317
+ return this . TopToBottom ( secondView . GetId ( ) , ( margin ) ) ;
318
318
}
319
319
320
320
protected Element RightToLeft ( int secondView , float margin = 0 )
@@ -329,9 +329,9 @@ public Element RightToLeft(UIElement secondView = null, float margin = 0)
329
329
{
330
330
if ( secondView == null )
331
331
{
332
- return this . RightToLeft ( ConstraintSet . ParentId , Dp2Px ( margin ) ) ;
332
+ return this . RightToLeft ( ConstraintSet . ParentId , ( margin ) ) ;
333
333
}
334
- return this . RightToLeft ( secondView . GetId ( ) , Dp2Px ( margin ) ) ;
334
+ return this . RightToLeft ( secondView . GetId ( ) , ( margin ) ) ;
335
335
}
336
336
337
337
protected Element RightToRight ( int secondView , float margin = 0 )
@@ -346,9 +346,9 @@ public Element RightToRight(UIElement secondView = null, float margin = 0)
346
346
{
347
347
if ( secondView == null )
348
348
{
349
- return this . RightToRight ( ConstraintSet . ParentId , Dp2Px ( margin ) ) ;
349
+ return this . RightToRight ( ConstraintSet . ParentId , ( margin ) ) ;
350
350
}
351
- return this . RightToRight ( secondView . GetId ( ) , Dp2Px ( margin ) ) ;
351
+ return this . RightToRight ( secondView . GetId ( ) , ( margin ) ) ;
352
352
}
353
353
354
354
protected Element BottomToTop ( int secondView , float margin = 0 )
@@ -363,9 +363,9 @@ public Element BottomToTop(UIElement secondView = null, float margin = 0)
363
363
{
364
364
if ( secondView == null )
365
365
{
366
- return this . BottomToTop ( ConstraintSet . ParentId , Dp2Px ( margin ) ) ;
366
+ return this . BottomToTop ( ConstraintSet . ParentId , ( margin ) ) ;
367
367
}
368
- return this . BottomToTop ( secondView . GetId ( ) , Dp2Px ( margin ) ) ;
368
+ return this . BottomToTop ( secondView . GetId ( ) , ( margin ) ) ;
369
369
}
370
370
371
371
protected Element BottomToBottom ( int secondView , float margin = 0 )
@@ -380,9 +380,9 @@ public Element BottomToBottom(UIElement secondView = null, float margin = 0)
380
380
{
381
381
if ( secondView == null )
382
382
{
383
- return this . BottomToBottom ( ConstraintSet . ParentId , Dp2Px ( margin ) ) ;
383
+ return this . BottomToBottom ( ConstraintSet . ParentId , ( margin ) ) ;
384
384
}
385
- return this . BottomToBottom ( secondView . GetId ( ) , Dp2Px ( margin ) ) ;
385
+ return this . BottomToBottom ( secondView . GetId ( ) , ( margin ) ) ;
386
386
}
387
387
388
388
[ Obsolete ( "Maui have a complex text align, generate bug easily, so i avoid use baseline" ) ]
@@ -399,9 +399,9 @@ public Element BaselineToBaseline(UIElement secondView = null, float margin = 0)
399
399
{
400
400
if ( secondView == null )
401
401
{
402
- return this . BaselineToBaseline ( ConstraintSet . ParentId , Dp2Px ( margin ) ) ;
402
+ return this . BaselineToBaseline ( ConstraintSet . ParentId , ( margin ) ) ;
403
403
}
404
- return this . BaselineToBaseline ( secondView . GetId ( ) , Dp2Px ( margin ) ) ;
404
+ return this . BaselineToBaseline ( secondView . GetId ( ) , ( margin ) ) ;
405
405
}
406
406
407
407
public Element CenterTo ( UIElement secondView = null )
0 commit comments