![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | Context Menu IN XBAP Hi all, I am trying to create a contextMenu in an Xbap application, but it doesn't work. Is it because of the fact that popup windows are restricted in XBAP? Then why at all we need to go for XBAP? I tried the same code in XAMLPAD and it works fine.. the code is... <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > <Grid> <Button Name="cmButton" Height="30"> Button with Context Menu <Button.ContextMenu> <ContextMenu Name="cm" StaysOpen="true"> <MenuItem Header="File"/> <MenuItem Header="Save"/> <MenuItem Header="SaveAs"/> <MenuItem Header="Recent Files"> <MenuItem Header="ReadMe.txt"/> <MenuItem Header="Schedule.xls"/> </MenuItem> </ContextMenu> </Button.ContextMenu> </Button> </Grid> </Page> Could any one out there please answer my question? Thanks, V.Boomessh |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: Context Menu IN XBAP Hi, Boomessh wrote: > Hi all, > > I am trying to create a contextMenu in an Xbap application, but it doesn't > work. Is it because of the fact that popup windows are restricted in XBAP? > Then why at all we need to go for XBAP? It works fine on my PC. Can you give more details? Greetings, Laurent > > I tried the same code in XAMLPAD and it works fine.. > the code is... > <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > xmlns:sys="clr-namespace:System;assembly=mscorlib" > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > > <Grid> > <Button Name="cmButton" Height="30"> > Button with Context Menu > <Button.ContextMenu> > <ContextMenu Name="cm" StaysOpen="true"> > <MenuItem Header="File"/> > <MenuItem Header="Save"/> > <MenuItem Header="SaveAs"/> > <MenuItem Header="Recent Files"> > <MenuItem Header="ReadMe.txt"/> > <MenuItem Header="Schedule.xls"/> > </MenuItem> > </ContextMenu> > </Button.ContextMenu> > </Button> > </Grid> > </Page> > > Could any one out there please answer my question? > > Thanks, > V.Boomessh -- Laurent Bugnion [MVP ASP.NET] Software engineering, Blog: http://www.galasoft.ch PhotoAlbum: http://www.galasoft.ch/pictures Support children in Calcutta: http://www.calcutta-espoir.ch |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: Context Menu IN XBAP Hi Laurent, Thanks for your reply. I don't know what happened...yesterday it worked in XAMLPAD and did not work when i tried creating a XBAP project. But today to get the error message for you, once i ran the project it worked. ANy way thanks for your reply. Bye, Boomessh V "Laurent Bugnion, MVP" wrote: > Hi, > > Boomessh wrote: > > Hi all, > > > > I am trying to create a contextMenu in an Xbap application, but it doesn't > > work. Is it because of the fact that popup windows are restricted in XBAP? > > Then why at all we need to go for XBAP? > > It works fine on my PC. Can you give more details? > > Greetings, > Laurent > > > > > I tried the same code in XAMLPAD and it works fine.. > > the code is... > > <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > > xmlns:sys="clr-namespace:System;assembly=mscorlib" > > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > > > <Grid> > > <Button Name="cmButton" Height="30"> > > Button with Context Menu > > <Button.ContextMenu> > > <ContextMenu Name="cm" StaysOpen="true"> > > <MenuItem Header="File"/> > > <MenuItem Header="Save"/> > > <MenuItem Header="SaveAs"/> > > <MenuItem Header="Recent Files"> > > <MenuItem Header="ReadMe.txt"/> > > <MenuItem Header="Schedule.xls"/> > > </MenuItem> > > </ContextMenu> > > </Button.ContextMenu> > > </Button> > > </Grid> > > </Page> > > > > Could any one out there please answer my question? > > > > Thanks, > > V.Boomessh > > -- > Laurent Bugnion [MVP ASP.NET] > Software engineering, Blog: http://www.galasoft.ch > PhotoAlbum: http://www.galasoft.ch/pictures > Support children in Calcutta: http://www.calcutta-espoir.ch > |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New Context Menu - Restore Default Menu Items | Brink | Tutorials | 6 | 2 Weeks Ago 06:31 PM |
| Send To Context Menu - Restore Default Menu Items | Brink | Tutorials | 4 | 08-23-2008 04:34 PM |
| Start Menu - Customize Context Menu | Brink | Tutorials | 3 | 06-27-2008 12:29 AM |
| context menu doesn't appear sometimes | Inti | Vista performance & maintenance | 1 | 12-29-2007 06:54 PM |
| Context Menu | lobotomy- | Vista General | 0 | 05-27-2007 09:14 AM |