What I'm trying to accomplish: Create a dynamic bubble that expands in height and width depending on the amount of text in the bubble.
What I have investigated so far: In the SO article, they described the use of the measurestring function to determine the exact width or height so that dynamic changes in .cs can be made in width and height.
Is there something similar in Silverlight? The only thing I have is to use myTxt.Text.length and then change myGrid.height and myGrid.width to leave wasted space to accommodate all cases?
On TextBlockyou will find the properties ActualWidthand ActualHeight. I think this is what you are looking for.
TextBlock
ActualWidth
ActualHeight
Source: https://habr.com/ru/post/1739092/More articles:Change reverse or background image of MDI container shape in .net - c #Sophisticated user interface -> MVC template - c #WPF performance for a large number of items on the screen - performanceDatamatrix / QRCode online resource for encoding? - barcodeHow to use ORDER BY, LOWER in SQL SERVER 2008 with data other than unicode - sql-serverDependency Property on ValueConverter - c #GWT 1.4 TO 2.0 UiBinder - gwtDetect if Asp.Net form is valid with javascript / jquery - jqueryjQuery change all links on a page - jqueryC ++ pointer, the initial question is c ++All Articles