Author Topic: Self-Adjusting Widths For Text Blocks  (Read 144 times)

Darius1968

  • Hero Member
  • ***
  • Posts: 994
  • ---Darius
Self-Adjusting Widths For Text Blocks
« 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? 
« Last Edit: June 22, 2022, 09:13:30 PM by Darius1968 »

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 31547
Re: Self-Adjusting Widths For Text Blocks
« Reply #1 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.

Darius1968

  • Hero Member
  • ***
  • Posts: 994
  • ---Darius
Re: Self-Adjusting Widths For Text Blocks
« Reply #2 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? 

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 31547
Re: Self-Adjusting Widths For Text Blocks
« Reply #3 on: June 22, 2022, 10:27:23 PM »
Nope, sorry.