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
>> >>
>> >>
>>
>>

Reply via email to