Right, you have set the Tilegroup to get smaller, but how did you set up the DataGrid to get smaller? In theory you would need to give the DG 100% width and height and set its minWidth/minHeight to 0 as well, otherwise the TileGroup will not shrink the layout. TileGroup may also have other rules about its ability to resize its cells.
-Alex On 12/13/13 9:37 AM, "mark goldin" <[email protected]> wrote: >I have set tilegroup to have minWidth="0" minHeight="0" and the result is >absolutely the same. When I resize titlewindow horizontally internal >datagrid is not getting smaller. On a side note. Is out there a resize >titlewindow example publicly available that I could use to show my test >case? > > >On Fri, Dec 13, 2013 at 11:18 AM, Alex Harui <[email protected]> wrote: > >> TileGroup and other containers should resize according to the default >>set >> of rules, which is that when given percentage sizes, they will default >>to >> trying not to shrink below the measured size of their content. If you >> want them to shrink below that measured size, the simplest thing is to >> determine what other minimum size you want (even zero) and set minWidth >> and minHeight accordingly. >> >> -Alex >> >> On 12/13/13 3:15 AM, "mark goldin" <[email protected]> wrote: >> >> >So, what I understand is that an out of the box TileGroup is not >>capable >> >of >> >of being resized correctly. My custom TileGroup is already heavily >> >modified >> >to accomplish what I need and I dont mind to add more code to make it >> >resizable. I just could not get any code into my custom control that >>would >> >show that I am on the right path. What is the right path? Should I >>somehow >> >listen to the resize event inside of my tilegroup to adjust its >> >measurements? Please give me some ideas. >> > >> >Thanks >> > >> > >> >On Thu, Dec 12, 2013 at 10:14 PM, Alex Harui <[email protected]> wrote: >> > >> >> If you replace TileGroup's width/height with actual numbers, that's >>the >> >> size it will be and it will not shrink or grow. When you use 100% >>for >> >> TileGroup width/height, its computed minWidth/minHeight will be >>based on >> >> the measurements of the DataGrid and it will not shrink below >>whatever >> >> that computes to be. >> >> >> >> On 12/12/13 2:28 PM, "mark goldin" <[email protected]> wrote: >> >> >> >> >Here is how I do it in a pseudo code: >> >> >TitleWindow >> >> > SkinnableContainer >> >> > TileGroup width="100%" height="100%" requestedRowCount="1" >> >> >requestedColumnCount="1" >> >> > DataGrid >> >> > >> >> >The same thing works fine without TileGroup. I tried to replace %% >>with >> >> >real numbers. Did not work either. >> >> > >> >> > >> >> >On Thu, Dec 12, 2013 at 3:57 PM, Alex Harui <[email protected]> >>wrote: >> >> > >> >> >> If you are using % width/height, the measuredWidth/Height also >> >>becomes >> >> >>the >> >> >> minWidth/minHeight which can prevent shrinking. >> >> >> >> >> >> On 12/12/13 11:59 AM, "mark goldin" <[email protected]> wrote: >> >> >> >> >> >> >I have a TitleWindow that is resizable. Inside of it I have a >> >>TileGroup >> >> >> >with a single dataGrid. Looks like when I resize the TitleWindow >>it >> >> >>does >> >> >> >not affect TileGroup. The same TitleWindow works fine if I remove >> >> >> >TitleGroup. Resizing will work correctly with dataGrid. I will >>try >> >>to >> >> >>come >> >> >> >up with a test case. But for now I am just asking for a >>direction of >> >> >> >researching the problem. >> >> >> > >> >> >> >Thanks >> >> >> >> >> >> >> >> >> >> >> >>
