I
I
Ignatiy22019-12-21 11:55:02
WPF
Ignatiy2, 2019-12-21 11:55:02

How to get data about the size of an element if the sizes are proportional?

I have an element that is inside a grid. The element is in a cell with proportional (*) dimensions. When I try to display its dimensions through the MessageBox, "not a number" is returned to me. How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ignatiy2, 2019-12-21
@Ignatiy2

In my case, the ActualHeigth and ActualWidth properties came up

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question