Cant see columns in listview on designer
-
Hi. I have the following code in a WPF Application :
<Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid> <ListView Name="listView1" Margin="11.5,7,10.5,19.5"> <ListView.View> <GridView > <GridViewColumn Header="1"/> <GridViewColumn Header="2"/> </GridView> </ListView.View> </ListView> </Grid> </Window>
But in designer i see the listview empty and i dont see the 2 columns. I only see them on runtime. -
Hi. I have the following code in a WPF Application :
<Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="300"> <Grid> <ListView Name="listView1" Margin="11.5,7,10.5,19.5"> <ListView.View> <GridView > <GridViewColumn Header="1"/> <GridViewColumn Header="2"/> </GridView> </ListView.View> </ListView> </Grid> </Window>
But in designer i see the listview empty and i dont see the 2 columns. I only see them on runtime. -
I copied your code as it is in to a new WPF Project and I had no problems at all i.e. the columns were visible in designer. I use VS2008(SP1).
Ok. It seems that an update to sp1 was required. Thanks.