photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: Darius1968 on June 22, 2022, 09:00:07 PM

Title: Self-Adjusting Widths For Text Blocks
Post by: Darius1968 on June 22, 2022, 09:00:07 PM
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? 
Title: Re: Self-Adjusting Widths For Text Blocks
Post by: Mario on June 22, 2022, 09:24:23 PM
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.
Title: Re: Self-Adjusting Widths For Text Blocks
Post by: Darius1968 on June 22, 2022, 10:07:40 PM
What variable in IMatch would grab the value of a column width.  Is there any such thing? 
Title: Re: Self-Adjusting Widths For Text Blocks
Post by: Mario on June 22, 2022, 10:27:23 PM
Nope, sorry.