Listview inside Grid with Rowdefinition of height Auto ? and Max Height of 100 not display scrollviewer on load

<Grid Grid.Column="0" Grid.Row="0" x:Name="grdValues">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" MaxHeight="100"></RowDefinition>
                <RowDefinition Height="5" ></RowDefinition>
                <RowDefinition Height="Auto" MaxHeight="100"></RowDefinition>
                <RowDefinition Height="5" ></RowDefinition>
                <RowDefinition Height="Auto" MaxHeight="100"></RowDefinition>
                <RowDefinition Height="Auto" MaxHeight="100"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="300"></ColumnDefinition>
            </Grid.ColumnDefinitions>
                <ListView x:Name="lstGenericList"
                                  Margin="4,0,0,0" Grid.Column="0" Grid.Row="0"
                                    ItemsSource="{Binding Items}"
                                    ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                                    ScrollViewer.VerticalScrollBarVisibility="Auto">
                    </ListView>
            <GridSplitter  Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ResizeDirection="Rows"  ResizeBehavior="PreviousAndNext"   Height="5"></GridSplitter>
            <!--<Separator Height="2" Grid.Row="2" />-->
            <ListView x:Name="lstBrandList"
                                  Grid.Column="0" Grid.Row="2" Margin="4,0,0,0"
                                    ItemsSource="{Binding Items}" 
                                    ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                    ScrollViewer.VerticalScrollBarVisibility="Auto"
                      VerticalContentAlignment="Stretch"
                      VirtualizingStackPanel.IsVirtualizing="True" 
                       VirtualizingStackPanel.VirtualizationMode="Recycling">
                <ListView.ItemContainerStyle>
                    <Style TargetType="{x:Type ListViewItem}">
                        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
                        <Setter Property="Focusable" Value="false"/>
                    </Style>
                </ListView.ItemContainerStyle>
            </ListView>
            <GridSplitter  Grid.Row="3" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ResizeDirection="Rows"  ResizeBehavior="PreviousAndNext"   Height="5"></GridSplitter>
            <!--<Separator Height="2" Grid.Row="2" />-->
            <ListView x:Name="lstBrandListv"
                                  Grid.Column="0" Grid.Row="4" Margin="4,0,0,0"
                                    ItemsSource="{Binding Itemsa}" 
                                    ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                    ScrollViewer.VerticalScrollBarVisibility="Auto">
            </ListView>
        </Grid>

I should think it is a combination of auto and stretch you have there on the sizing which makes it impossible for anything to work out how big it's supposed to be inside a scrollviewer... in an auto height row.
EG I would take this off:
VerticalContentAlignment="Stretch"
And any other stretches in there.
See what happens.
Think about giving the rows some sort of an actual height.
Hope that helps.
Technet articles: Uneventful MVVM;
All my Technet Articles

Similar Messages

  • I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    I have a problem with the sync between iTunes and ipad2. I can not see the files in iPad. Help me please.

    Cannot see what files ? Music (synced music should appear in the iPod app), films/TV shows (Videos app), documents ... ?

  • I just updated my 4S with iOS 8.1.1 and now my screens are not proportioned correctly - just a bit to long and wide. Is there a way to adjust? Or go back to 8.1?

    I just updated my 4S with iOS 8.1.1 and now my screens are not proportioned correctly - just a bit to long and wide. Is there a way to adjust? Or go back to 8.1?

        lisan1234,
    I am sorry to hear about the screen issues. To clarify, do you only notice the screen proportion difference when in a certain application? By to long or wide are you stating that parts of the screen images are cut off? Please provide details
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • How many iPhone I can install my application with my apple ID? and is it legal or not??

    how many iPhone I can install my application with my apple ID? and is it legal or not??

    I believe the limit on how any times an application can be installed has been removed, but, as it stands, there is no limit to the number of installations you can have... just the number of activated installations.  For what it sounds like you are doing, there is should not be an issue of hitting a limit even if there is one.
    If you are reinstalling on new machines then you probably want to deactivate the current installations before you attempt to activate on the new machines.

  • TA38641 i upadated my iphone 4 with ios 5.1.1 and now the passcode option not coming

    i upadated my iphone 4 with ios 5.1.1 and now the passcode option not coming

    Delete then add back the exchange acct on each device.

  • Hi i would like help with:  When I draw circle and add stroke I can not see stroke  I use Photoshop CS 5

    Hi i would like help with:
    When I draw circle and add stroke I can not see stroke
    I use Photoshop CS 5

    Make sure the stroke is set to a color and not to the symbol that appears here for Fill

  • Youtube not opening in Safari browser. However it works with google browser. There is a red arrow coming, with https in you tube, and the page just does not open. help required.

    youtube not opening in Safari browser. However it works with google browser. There is a red arrow coming, with https in you tube, and the page just does not open. help required.
    It seems I have done some mistake when you tube was open, and i stopped one site to delete!
    From then on it is not working.
    Any solutions?
    GV Joshi

    Hi gajanan vasant!
    I have a couple of articles for you that should help you troubleshoot your issue with Safari. First, you may want to try a reset on Safari by following the procedure listed in this article:
    Safari 5.1 (OS X Lion): Reset Safari
    http://support.apple.com/kb/PH5043
    If you are still having issues after resetting Safari, you may want to check out this article about third-party add-ons in Safari:
    Safari: Unsupported third-party add-ons may cause Safari to unexpectedly quit or have performance issues
    http://support.apple.com/kb/TS3230
    Thanks for using the Apple Support Communities!
    Regards,
    Braden

  • FR Studio - Is there a workaround for the issue with referencing data from a grid with a different DB connection and different # of dimensions?

    Hi,
    I am trying to reference a column in a different grid with a different database connection. I did some research in the forums, and it seems like this is a known issue with FR Studio. The issue is that if the 2 different database connections have different # of dimensions, then the reference will throw an error.
    For example, what I'm trying to do is below:
    In grid2.column[A], I have the following formula:
    grid1.column[A]
    The result is an error.
    The ultimate goal is to have a basic variance formula in the grid between grid1 and grid2, which have different database connections with a different # of dimensions. Is there a workaround at all to this bug? The example of the basic formula is below:
    grid1.column[A] - grid2.column[A] 
    Any help is much appreciated!
    Thanks,
    Tiffany

    Thanks for the detailed response Mike.
    The issue with trying it in Grid1 vs Grid2 is that Grid1's DB connection has more dimensions than Grid2's DB connection. I can't change the DB connection to a database with more dimensions because you have to be able to map all dimensions from the existing DB connection  (Grid1) to the new DB connection (Grid2). This isn't possible, so instead I have to map Grid2 (less dimensions) to Grid1 (more dimensions). It just ignores the extra dimensions from Grid1. Does that make sense?
    Thanks again for your responses. It's very much appreciated.
    Tiffany

  • Why can't firefox deal with percent max-height of percent max-height?

    I think this is possibly a bug.
    Firefox is not able to use percent max-height of a percent max-height. Chromium does. But it is difficult to explain. Please have a look at this fiddle, with firefox and chromium, you will see the different behaviour by resizing the browser window: http://jsfiddle.net/qx75g/
    I need this for my website but cannot use it, because it does not work with firefox :(
    ( archlinux with firefox 28.0 )

    Okay, so the page on MDN says
    <blockquote>The percentage is calculated with respect to the height of the generated box's containing block. If the height of the containing block is not specified explicitly (i.e., it depends on content height), and this element is not absolutely positioned, the percentage value is treated as none.</blockquote>
    https://developer.mozilla.org/en-US/docs/Web/CSS/max-height
    That seems to be copied more or less verbatim from CSS2 Level 1: http://www.w3.org/TR/CSS2/visudet.html#min-max-heights
    Which makes me think that it isn't like to change in the near future...
    Any reason not to set height:50% for .inner? How does leaving that unspecified benefit the layout?

  • T410s with extremely poor performanc​e and CPU always near 100% usage

    Hi,
    I've had my T410s for almost a year now and lately its been starting to get extremely slow, which is odd since it used to be so fast.
    Just by opening one program, Outlook, or IE or Chrome, just one window, it will start to get extremely slow and on task manger I can clearly see the CPU usage at 100% or very near.
    Also another thing I noticed was the performance index on the processor dropped from 6.8 to 3.6!!!
    I did a clean Windows 7 Pro 64Bit install, I have all Windows and Lenovo updates installed and the problem persits
    What is happening and what should I do??
    Thank you
    Nuno

    thank you again for your answer,
    I've done that but hard drive health is also ok as you can see from the screenshot.
    IAt the time of the screenshot I had just fineshed to boot up the laptop and it wasnt hot at all.
    I am getting desperate here, I am unable to work with my T410s
    Link to picture
    Thank you
    Nuno
    Moderator note; picture(s) totalling >50K converted to link(s) Forum Rules

  • Problem with subtotal, and the total icon is not displayed at the toolbar

    Hi all,
    I'm currentlyhaving difficulties working with the subtotal and the grandtotal. I have the code in the right place like the sort table
      CLEAR k_sort.
      ADD 1 TO k_sort-spos.
      k_sort-fieldname = pv_fieldname.
      k_sort-up        = c_x.
      k_sort-subtot    = pv_subtot.
      APPEND k_sort TO i_sort.
    and the fieldcatalog
      CLEAR k_fieldcat.
      add 1 to k_fieldcat-col_pos.
      k_fieldcat-fieldname  = pv_fieldname.
      k_fieldcat-tabname    = c_tabname.
      k_fieldcat-seltext_l  = pv_seltext.
      k_fieldcat-outputlen  = pv_outputlen.
      k_fieldcat-datatype   = pv_datatype.
      k_fieldcat-do_sum     = pv_dosum.
      APPEND k_fieldcat TO i_fieldcat.
    but it didn't seems to show both the total and subtotal. Even the icon is not displayed at the ALV toolbar. The field which I need the total is a currency field. I even try other fields (interger fields) but with no luck. I'm using REUSE_ALV. Any help is greatly appreciated.

    hi,
    In field catalog for the particular column which you want to sum make that as 'X'.
    say
    WHEN'MATNR'.
    it_fcat-do_sum = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program     = report_id
                i_grid_title           = ws_title
    *            i_callback_top_of_page = 'TOP-OF-PAGE'
                is_layout              = wa_layout
                it_fieldcat            = i_fieldcat[]
                it_sort                = i_sortcat
                i_save                 = 'A'
                it_events              = i_events
           TABLES
                t_outtab               = i_reportdata1
           EXCEPTIONS
                program_error          = 1
                OTHERS                 = 2.
      IF sy-subrc <> 0.
    This will enable.

  • With Firefox 5.0.1 and Firefox 6 beta there are display problems apparently due to Java and some Javascript compatibility problems -- there were links to solutions, but they are no longer active. What to do?

    The box and button lines are not displayed or are mis-sized, if they appear at all; problem varies with the website and page style.
    The threads I found in discussions mentioned a couple pages that are no longer active/cannot be opened -- so these solutions don't work.
    When starting version 5x and 6beta I get information certain add-ons are STILL incompatible with these versions?
    Are there any work-arounds or patches?

    I am having this problem too. Just like WinOnBatch the problem started for me around firefox 5.0.1.
    I have not been able to get rid of this problem. I have tried creating a new profile, restarting firefox in safe mode. disabling extensions 1 by 1. When I built this computer I did a clean install of firefox 5.0.1, and 2 weeks later with no extensions the problems came back. At that point I had the Java and flash plugins only.
    When firefox 6 was released I did another fresh install (uninstalled firefox, went through my hard disc and deleted any reference to firefox and mozilla. Did the same in the registry, then run a registry cleaner and restarted the computer) before I installed firefox 6 and the problem was happening in less than a week. The I said to hell with it and re-created my entire profile from scratch and installed all my old extensions (updated them off course). 2 weeks ago it got really sever and I couldn't see any buttons on the chome interface and all web pages I visited were displaying really messed up. The only way i can describe it is kinda like greentech70 screenshots but on every inch of the application window. Like a really bad screen tearing effect.
    The only thing that seem to help is when I downgraded to firefox 3.6.18. That fixed it but like greentech70 I have security and privacy concerns, so upgraded to firefox 6 again as the issue went away for 1 day, then came back but not as severe. since then I have been downgrading to firefox 3.6.18 re-installing java and flash, then upgrading back to firefox 6. It keeps the problem minimised but im still plagued by it. I also wonder if its a problem with firefox's 6 graphical engine.

  • I'm trying to use my iPad mini for the first time with a previous apple ID and password but it will not connect to iTunes but I can download apps from my iPhone using the same appleID and password and it works on my iphone...PLEASE HELP NOW

    I'm trying to use my iPad mini for the first time with a previous apple ID and password but it says "iTunes is not working try again"...it allowed me to download an app on my iPhone using the same apple ID &amp; password but all my apps are in "Waiting Status" on my iPad mini because it says "iTunes is not working"...PLEASE HELP ME NOW!!!

    Previous user installed iOS 7 beta on that iPhone.
    Take it back and get your money returned. You
    are running into a new security feature. Whoever owns
    the ID that it is asking for is the only person who can
    remove the security. That iPhone is worthless to you.

  • I phone 4s frozen with a pic of USB and I tunes logo will not reset by holding home and sleep wake buttons

    I phone 4s frozen with a pic of USB and itunes logo on screen will not reset by holding sleep/wake buttons and home button at same time

    It is plugged into computer and itunes is not showing that my phone is connected. Apple gave me a website address to fix the problem but it must have not been the correct web address. I'm outside of 90 day window for phone support.

  • PanelBox Stretch between min and max height

    Hello,
    I am using JDeveloper 11.1.1.6 and my client requests in the application that I am currently developing a PanelBox that stretches its height according to the content inside it. There is a minimum height (which can be greater than the height of the content) and a maximum height (which, if is exceeded by the content, should display a scroll bar).
    If you have any suggestions on how I could achieve this (including modifying the CSS file) please let me know.
    Best regards,
    Toma

    Hi,
    have a look at the "type" property if this helps
    af:panelBox tag documentation
    Frank

Maybe you are looking for

  • Ilustrator freezes creating a new document with web profile.

    Hi, I have the illustrator instalation from creative cloud subscription and everytime i create a new document and on the profile combo choose "web", the illustrator freezes forever. Im using mac version in a macbook pro 13" corei7 with 8gigs ram.

  • How do I remove movies from my hard drive?

    I tried to update my system and it says that I don't have enough space on my hard drive. When I went to delete files it shows quite a bit of space being taken up by movies. I don't have any movies on my iTunes but they are on my cloud. How do I remov

  • Validation on Transport Request Description

    I want to put some validation on the transport request description. Please let me know the procedure.

  • How do I qualify for a Student Discount?

    Hello, I'm currently studying Interactive Media at my college in the UK, and was wondering how would I qualify for a student discount? Because I went to this link http://store.apple.com/uk/mac/education and the college that I go to isn't there, and I

  • App on App Store not working with iPhone 3G

    hey guys, we finished a app, it is on the app store. the strange thing is that we have a problem with the intro video and the overall performance on iPhone 3G. when the intro starts the message is that, this file is not supported. we tested the game