Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Frame Disappearing on Clicking the ListViewItem

Closed Thread
 
Thread Tools Display Modes
Old 09-04-2006   #1 (permalink)
=?Utf-8?B?U3Jpbmk=?=
Guest


 

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>

Old 09-04-2006   #2 (permalink)
=?Utf-8?B?VGhlUkhvZ3Vl?=
Guest


 

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>
>

Old 09-05-2006   #3 (permalink)
=?Utf-8?B?U3Jpbmk=?=
Guest


 

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>
> >

Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
8800GT Frame Rate Viking707 Graphic cards 10 2 Days Ago 04:11 AM
frame rates gazz496 Graphic cards 2 06-18-2008 04:51 PM
Alt-Tab Frame Drop CS:S rockster Gaming 13 05-27-2008 12:18 AM
dot net frame work davi .NET General 0 03-29-2008 11:50 AM
Trouble customizing a frame in WPF Chris Lincoln Avalon 2 01-17-2007 05:57 AM








Vistax64.com 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 2005-2008

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 47 48 49 50