How to use height and width of relative panel that values are Nan

Shay Wilner 1,746 Reputation points
2020-05-05T11:36:05.343+00:00

Hi

I  have a classX  with  contructor 
 Public Sub New(ByVal heightbar As Double, ByVal widthcanvas As Double, Optional ByVal bottom As Double = 0)
The  problem i have to pass as parameter the width and height of a relative pane  which  are Nan .

Is there a solution  ?
Thanks 
Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. John Torjo 861 Reputation points
    2020-05-05T20:14:04.813+00:00

    Assuming you have the controls themselves, you can use ctrl.ActualWidth, and ctrl.ActualHeight


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.