Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Frame Disappearing on Clicking the ListViewItem

 
 
Old 09-04-2006   #1 (permalink)
=?Utf-8?B?U3Jpbmk=?=


 
 

Frame Disappearing on Clicking the ListViewItem

Hello,
I have a simple WPF app, which has a grid with 2 rows,
Row 1 has a frame pointing to http://www.microsoft.com
Row 2 has a listview with couple of Listviewitems
I have also set the Window Property ResizeMode="NoResize" and
WindowStyle="None"

When I click on the Listviewitem, the upper frame goes transparent.

This happens even if I replace <frame> with webbrowser control hosted by
WindowsFormsHost.

Is this a WPF bug?, is there a workaround. Below is the Xaml. Please help
Regards
Srini


<Window x:Class="TransparentFrame.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="TransparentFrame" Height="600" Width="300"
ResizeMode="NoResize"
WindowStyle="None"
>

<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="0.80*"/>
<RowDefinition Height="0.20*"/>
</Grid.RowDefinitions>
<Frame Grid.Row="0" Source="http://www.microsoft.com"
NavigationUIVisibility="Hidden"/>
<ListView Grid.Row="1">
<ListViewItem>Test1</ListViewItem>
<ListViewItem>Test2</ListViewItem>
</ListView>
</Grid>
</Window>


My System SpecsSystem Spec
Old 09-04-2006   #2 (permalink)
=?Utf-8?B?VGhlUkhvZ3Vl?=


 
 

RE: Frame Disappearing on Clicking the ListViewItem

I was not able to repro this.

What hardware are you running on (video card), and what version of WPF do
you have? What OS are you running?



"Srini" wrote:

> Hello,
> I have a simple WPF app, which has a grid with 2 rows,
> Row 1 has a frame pointing to http://www.microsoft.com
> Row 2 has a listview with couple of Listviewitems
> I have also set the Window Property ResizeMode="NoResize" and
> WindowStyle="None"
>
> When I click on the Listviewitem, the upper frame goes transparent.
>
> This happens even if I replace <frame> with webbrowser control hosted by
> WindowsFormsHost.
>
> Is this a WPF bug?, is there a workaround. Below is the Xaml. Please help
> Regards
> Srini
>
>
> <Window x:Class="TransparentFrame.Window1"
> xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
> Title="TransparentFrame" Height="600" Width="300"
> ResizeMode="NoResize"
> WindowStyle="None"
> >

> <Grid>
> <Grid.RowDefinitions>
> <RowDefinition Height="0.80*"/>
> <RowDefinition Height="0.20*"/>
> </Grid.RowDefinitions>
> <Frame Grid.Row="0" Source="http://www.microsoft.com"
> NavigationUIVisibility="Hidden"/>
> <ListView Grid.Row="1">
> <ListViewItem>Test1</ListViewItem>
> <ListViewItem>Test2</ListViewItem>
> </ListView>
> </Grid>
> </Window>
>

My System SpecsSystem Spec
Old 09-05-2006   #3 (permalink)
=?Utf-8?B?U3Jpbmk=?=


 
 

RE: Frame Disappearing on Clicking the ListViewItem

Its a regular desktop(x86), my current configuration is Windows Vista 5600,
Windows SDK 5536, with Aero turned On.

But I have been seeing this issue since Windows Vista 5456 and later(till
5600), Windows SDK 5456 and later, .Net Runtime 3.0 June CTP and later. The
video card on my box is X600 Radeon, but have seen this issue with other
Video Cards too.

The common recipe to repro the problem is that it should be Windows Vista
with aero turned on(should see glass everywhere) and the two Window
Properties should be set
ResizeMode="NoResize"
WindowStyle="None"

To elaborate, in Visual studio 2005 create a new WinFX Windows Application

Go to window.xaml. Replace <Grid></Grid> with

<StackPanel>
<Frame Source="http://www.microsoft.com" Height="200"
NavigationUIVisibility="Hidden"/>
<Button>test</Button>
</StackPanel>

Add these to properties to Window element
ResizeMode="NoResize"
WindowStyle="None"
and F5. And hover over the button, the frame will disappear.

Regards
Srini




"TheRHogue" wrote:

> I was not able to repro this.
>
> What hardware are you running on (video card), and what version of WPF do
> you have? What OS are you running?
>
>
>
> "Srini" wrote:
>
> > Hello,
> > I have a simple WPF app, which has a grid with 2 rows,
> > Row 1 has a frame pointing to http://www.microsoft.com
> > Row 2 has a listview with couple of Listviewitems
> > I have also set the Window Property ResizeMode="NoResize" and
> > WindowStyle="None"
> >
> > When I click on the Listviewitem, the upper frame goes transparent.
> >
> > This happens even if I replace <frame> with webbrowser control hosted by
> > WindowsFormsHost.
> >
> > Is this a WPF bug?, is there a workaround. Below is the Xaml. Please help
> > Regards
> > Srini
> >
> >
> > <Window x:Class="TransparentFrame.Window1"
> > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
> > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
> > Title="TransparentFrame" Height="600" Width="300"
> > ResizeMode="NoResize"
> > WindowStyle="None"
> > >

> > <Grid>
> > <Grid.RowDefinitions>
> > <RowDefinition Height="0.80*"/>
> > <RowDefinition Height="0.20*"/>
> > </Grid.RowDefinitions>
> > <Frame Grid.Row="0" Source="http://www.microsoft.com"
> > NavigationUIVisibility="Hidden"/>
> > <ListView Grid.Row="1">
> > <ListViewItem>Test1</ListViewItem>
> > <ListViewItem>Test2</ListViewItem>
> > </ListView>
> > </Grid>
> > </Window>
> >

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Black Frame Graphic cards
Alt-Tab Frame Drop CS:S Gaming
frame rates Graphic cards
dot net frame work .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46