![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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) |
| | 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) |
| | 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 | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Context Menu | Vista General | |||
New context menu | General Discussion | |||
| Start Menu - Customize Context Menu | Tutorials | |||
| Send To Context Menu - Restore Default Menu Items | Tutorials | |||
| New Context Menu - Restore Default Menu Items | Tutorials | |||