Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8617261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:48:47+00:00 2026-06-12T05:48:47+00:00

This is the XAML: <ListView.View> <GridView> <GridViewColumn DisplayMemberBinding={Binding Path=ScenarioName} Header=Scenario Name /> <GridViewColumn DisplayMemberBinding={Binding

  • 0

This is the XAML:

<ListView.View>
            <GridView>
                <GridViewColumn DisplayMemberBinding="{Binding Path=ScenarioName}" Header="Scenario Name" />
                <GridViewColumn DisplayMemberBinding="{Binding Path=ScenarioType}" Header="Scenario Type" />
                <GridViewColumn Header="Well names" Width="175">
                    <GridViewColumn.CellTemplate>
                        <DataTemplate>
                            <StackPanel>
                                <ItemsControl ItemsSource="{Binding Path=Wells}">
                                    <ItemsControl.ItemsPanel>
                                        <ItemsPanelTemplate>
                                            <WrapPanel Orientation="Vertical"/>
                                        </ItemsPanelTemplate>
                                    </ItemsControl.ItemsPanel>
                                    <ItemsControl.ItemTemplate>
                                        <DataTemplate>
                                            <StackPanel>
                                                <!--<TextBlock Text="{Binding}"/>-->                                                  
                                                    <Button Width="60" Margin="0 0 0 3">Test 1</Button>

                                                </StackPanel>
                                        </DataTemplate>
                                    </ItemsControl.ItemTemplate>
                                </ItemsControl>
                            </StackPanel>
                        </DataTemplate>
                    </GridViewColumn.CellTemplate>
                </GridViewColumn>
                <GridViewColumn DisplayMemberBinding="{Binding Path=StartPeriod}" Header="Start period" />
                <GridViewColumn DisplayMemberBinding="{Binding Path=EndPeriod}" Header="End period" />
                <GridViewColumn DisplayMemberBinding="{Binding Path=Lagged}" Header="Lagged" />
                <GridViewColumn DisplayMemberBinding="{Binding Path=Detrended}" Header="Detrended" />
                <GridViewColumn DisplayMemberBinding="{Binding Path=MinimumMonths}" Header="Length of continuous months" />
                <GridViewColumn DisplayMemberBinding="{Binding Path=CorrelatedWells}" Header="Correlated wells" />
                    <GridViewColumn Header="Excluded Wells">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <StackPanel>
                                    <ItemsControl ItemsSource="{Binding Path=ExcludedWells}">
                                        <ItemsControl.ItemsPanel>
                                            <ItemsPanelTemplate>
                                                <WrapPanel Orientation="Vertical"/>
                                            </ItemsPanelTemplate>
                                        </ItemsControl.ItemsPanel>
                                        <ItemsControl.ItemTemplate>
                                            <DataTemplate>
                                                <StackPanel>
                                                    <TextBlock Text="{Binding}"/>
                                                </StackPanel>
                                            </DataTemplate>
                                        </ItemsControl.ItemTemplate>
                                    </ItemsControl>
                                </StackPanel>
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                </GridView>
        </ListView.View>
    </ListView>

And it looks like:

http://tinypic.com/view.php?pic=xpse8n&s=6

The questions is whether there is an easy to group the “Test1” buttons under Well names(in groups of,let say, 5 items) because the volume of well names can be quite big and neither horizontal nor vertical wrapping helps.

many thanks,
elias

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:48:49+00:00Added an answer on June 12, 2026 at 5:48 am

    Well you can always add a new property to your ViewModel

     public IEnumerable<Well> SomeWells
     { get { return Wells.Take(5); }
    

    and change your ItemsSource binding to use this instead.

    Example here on MSDN

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I use this XAML code for the ListView: <ListView> <ListView.View> <GridView> <GridViewColumn DisplayMemberBinding={Binding Path=Flag}
This is my XAML: <ListView ItemsSource={Binding Items}> <ListView.View> <GridView> <GridViewColumn Header=Property1 DisplayMemberBinding={Binding Property1} />
this is my xaml: <ListView Name=myListView ItemsSource={Binding ElementName=IndexPage, Path=SeriesCollection} ScrollViewer.HorizontalScrollBarVisibility=Disabled IsSynchronizedWithCurrentItem=True SelectionChanged=handleSelected> <ListView.ItemsPanel >
I have the following code in xaml: <ListView Name=listView1 IsSynchronizedWithCurrentItem=True > <ListView.View> <GridView> <GridViewColumn
i am doing this xaml : <StackPanel Margin=320,0,0,0 Grid.RowSpan=2> <ListView ItemsSource={Binding employeeCollection}> <ListView.View> <GridView>
I'm using this XAML: <Border x:Name=border1 Grid.Row=1> <toolkit:HeaderedContentControl Header=HeaderedContentControl HorizontalContentAlignment=Stretch VerticalContentAlignment=Stretch MaxWidth={Binding ActualWidth, ElementName=border1}
I have following WPF ListView: <ListView Grid.Column=2 Grid.Row=1 Margin=0,53,12,6 Name=lvwProperties ItemsSource={Binding Path=SelectedPropertyItems, Mode=TwoWay} Grid.ColumnSpan=2>
I currently have this XAML Code: <ListView x:Name=listFeedSearch Margin=-548.856,95.333,0,7.667 HorizontalAlignment=Left Width=542.5 RenderTransformOrigin=0.5,0.5 ItemsSource={Binding SearchCollection}>
Here's a part of XAML of the application I'm working on: <ListView Name=lsvCustomerDetails ItemsSource={Binding
Let's say I have the follwoing listview in xaml: <ListView Name=myListView DataContext={Binding MyProperty} ItemsSource={Binding}

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.