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 8040359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:52:15+00:00 2026-06-05T03:52:15+00:00

In metro style windows 8 application, how can i display the data using xaml

  • 0

In metro style windows 8 application, how can i display the data using xaml similar to this (https://dl.dropbox.com/u/59251888/img.png)image. is it possible using ListBox,ListView,GrdView.. ?

  • 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-05T03:52:16+00:00Added an answer on June 5, 2026 at 3:52 am

    Yes, but you need to style it up so that it looks like a datagrid. (Assuming you are developing in XAML based on the tags you’ve assigned to this question). The trick is to make a data template that uses a Grid with columns with proper widths, alignments etc.

    I’ve done something similar – using a ListView. This could be modified to make the backgrounds appear only for cells as opposed to rows – which I have done. Hope this helps:

    ListView simulating the look of a data grid / table

    XAML:

     <ListView 
          VerticalAlignment="Top"
          Margin="0,5"
          ItemsSource="{Binding HighestExpensesAlternatingList}"
          ItemTemplate="{StaticResource HighestExpensesTemplate}"
          BorderBrush="#19FFFFFF" BorderThickness="1,0,0,0" 
          SelectionMode="None" IsItemClickEnabled="False"
          ScrollViewer.VerticalScrollBarVisibility="Hidden"
          ScrollViewer.HorizontalScrollBarVisibility="Hidden"
          ItemContainerStyle="{StaticResource SimpleListViewItemStyle}"
          IsHitTestVisible="False"/>
    
    
        <DataTemplate x:Key="HighestExpensesTemplate">
            <Grid Width="500" VerticalAlignment="Center" Margin="5,0"
                  Background="{Binding AlternatingIndexBrush}">
    
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="120" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="150" />
                </Grid.ColumnDefinitions>
    
                <TextBlock Grid.Column="0" Margin="5" TextWrapping="NoWrap" 
                           Style="{StaticResource BasicTextStyle}" 
                           VerticalAlignment="Center"
                           Text="{Binding Item.DateString}" />
    
                <TextBlock Grid.Column="1" Margin="5" TextWrapping="NoWrap" 
                           Style="{StaticResource BasicTextStyle}" 
                           VerticalAlignment="Center"
                           Text="{Binding Item.Description}" />
    
                <TextBlock Grid.Column="2" Margin="5" TextWrapping="NoWrap"
                           Style="{StaticResource BasicTextStyle}" 
                           VerticalAlignment="Center"
                           Text="{Binding Item.AmountStringCurrencyFormat}"
                           HorizontalAlignment="Right"/>
    
            </Grid>
        </DataTemplate>
    
    <Style x:Key="SimpleListViewItemStyle" TargetType="ListViewItem">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="TabNavigation" Value="Local"/>
        <Setter Property="IsHoldingEnabled" Value="False"/>
        <Setter Property="IsDoubleTapEnabled" Value="False"/>
        <Setter Property="IsRightTapEnabled" Value="False" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ListViewItem">
                    <Border BorderBrush="{TemplateBinding BorderBrush}" 
                                BorderThickness="{TemplateBinding BorderThickness}" 
                                Background="{TemplateBinding Background}" 
                                Margin="{TemplateBinding Margin}">
    
                        <VisualStateManager.VisualStateGroups>
                            <VisualStateGroup x:Name="CommonStates">
                                <VisualState x:Name="Normal"/>
                                <VisualState x:Name="Pressed">
                                    <Storyboard>
                                        <PointerDownThemeAnimation TargetName="Container"/>
                                    </Storyboard>
                                </VisualState>
                            </VisualStateGroup>
                        </VisualStateManager.VisualStateGroups>
    
                        <Grid x:Name="Container">
                            <ContentPresenter x:Name="contentPresenter" 
                                                  ContentTemplate="{TemplateBinding ContentTemplate}" 
                                                  ContentTransitions="{TemplateBinding ContentTransitions}" 
                                                  Content="{TemplateBinding Content}" 
                                                  HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
                                                  Margin="{TemplateBinding Padding}" 
                                                  VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                        </Grid>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to build a Windows 8 Metro Style application (C# with XAML) that
I'm trying to create some primitive imitation of the Windows Metro style application. What
I am trying to use Windows.Media.Capture.CameraCaptureUI() of Metro Style app in WPF application in
Can i style my websites with metro design from windows 8/windows phone 7 for
I'm working on a Metro app using XAML & C#. I started this using
Looking at the following CSS in a Windows 8 metro style application, what is
I am trying to write a metro style application to read data from a
I am developing the metro style application using Win RT. I Need to List
I'm using this code to download a web page in my Metro Style app:
Has anyone managed to get Ninject working in Metro Style app using the Windows

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.