Stretching

Mar 21, 2009 at 1:57 PM
I'm trying to get the control to occupy a non-square space and have had no luck.  If I set the H/V alignment to stretch the app crashes.  Is this a bug?
Coordinator
Mar 21, 2009 at 7:38 PM
Do you mean non-square or non-rectangular?  The sample app has the control in approximately 800x600, which is non-square.

I haven't specifically tested stretch alignment.  Can you post a minimal code sample that reproduces the crash/error you experience?


Mar 22, 2009 at 11:29 PM
I just tested it again and I don't get a crash with the scenario I described, but the control doesn't fill up it's parent grid like I expect.  Here's the source:

<Window x:Class="VESizeTest.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ve="clr-namespace:InfoStrat.VE;assembly=InfoStrat.VE"
    Title="Window1" Height="300" Width="400">
    <Grid>
        <ve:VEMap HorizontalAlignment="Stretch" Width="400"/>
    </Grid>
</Window>

You can see the white background of the window on the sides of the map when you'd expect the map to fill the entire window.  I also noticed that if I set the height to 300 then the map does fill the entire window.  Not sure why that is.

Thanks!
Coordinator
Mar 23, 2009 at 12:11 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Mar 23, 2009 at 12:12 AM
Will investigate.  Might need to mess with MeasureOverride or ArrangeOverride for this.
Jun 12, 2009 at 5:13 PM

Any update on this?  The tip that was suggested in the work item didn't work for me.

Coordinator
Jun 14, 2009 at 9:33 PM

No updates on this.