Self-Adjusting Widths For Text Blocks

Started by Darius1968, June 22, 2022, 09:00:07 PM

Previous topic - Next topic

Darius1968

About Edit Layouts...>Layout Name>Column #>Size
This value is easily adjustable via draggable column borders (in addition to data-entry of the value in the said field).  And, normally, text will self-adjust to fit, with respect to the column width. 

However, that's not the case in the presence of text blocks: 
In this case, it is necessary for <TextBlock Width=""> to match the value of Edit Layouts...>Layout Name>Column #>Size 

With this in mind, is there a variable (if not, could one be instated for a subsequent release of IMatch?) that can be inserted into <TextBlock Width=""> that would, hereafter and going forward, ensure that the width of that text box would self adjust to whatever the user sets the column width to? 

Mario

What?
I doubt that more than one user on this planet will ever see a need for this.
You can always hard-code a value or refer to a global variable or add TextWrapping="Wrap" to your Textblock.
Keep in mind that probably 95% of the IMatch user base don't know or care what XAML is or TextBlocks.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

Darius1968

What variable in IMatch would grab the value of a column width.  Is there any such thing? 

Mario

-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook