![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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 | Popup question For the following XAML, Once I bring up the popup, I can't dismiss it by clicking somewhere outside, I have StaysOpen="false" <Button HorizontalAlignment="Left" x:Name="btn" Click="DisplayPopup"> <StackPanel> <TextBlock>Click</TextBlock> <Popup StaysOpen="false" x:Name="ButtonPopup"> <StackPanel> <MenuItem Name="PopupText" Background="Blue" Header="Blue" Click="OnBlue"> </MenuItem> <MenuItem Background="Red" Header="Red" Click="OnRed"></MenuItem> </StackPanel> </Popup> </StackPanel> </Button> // Sample event handler: private void DisplayPopup(object sender, RoutedEventArgs e) { ButtonPopup.IsOpen = true; } private void OnRed(object sender, RoutedEventArgs e) { MessageBox.Show("Chose Red"); } private void OnBlue(object sender, RoutedEventArgs e) { MessageBox.Show("Chose Blue"); } -- Vipin Aravind http://www.explorewindows.com |
My System Specs![]() |
| | #2 (permalink) |
| Guest | RE: Popup question Yes, I have the same problem in my DropDownButton I use in my ColorPicker. Popup closes only after you have focused some control on it. |
My System Specs![]() |
| | #3 (permalink) |
| Guest | RE: Popup question And one more thing: When I use for example Border with no Background set in Popup, it has black color (or transparent when I allow transparency in Popup) but the Border in normal Window or Page has white color (or the color of window as defined in Windows OS). |
My System Specs![]() |
| | #4 (permalink) |
| Guest | Re: Popup question Exactly,that is a bug. I see that problem too,to overcome I am explicitly setting the Background property on the menuitem. -- Vipin Aravind http://www.explorewindows.com "Marek" <Marek@discussions.microsoft.com> wrote in message news:60E61299-F8EA-4899-9F6A-0EAD6534A229@microsoft.com... > And one more thing: > When I use for example Border with no Background set in Popup, it has > black > color (or transparent when I allow transparency in Popup) but the Border > in > normal Window or Page has white color (or the color of window as defined > in > Windows OS). |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Acrobat popup :( | dbacs | Software | 5 | 05-18-2008 07:05 PM |
| dllhost.exe dos popup | mrteo | Vista General | 0 | 03-20-2008 03:01 PM |
| SP1 and IE popup windows | Doogal | Vista General | 4 | 02-22-2008 08:56 AM |
| popup permissions | bobbya | Vista account administration | 4 | 12-19-2007 11:31 AM |
| Battery Popup | killjoy | Vista General | 2 | 05-29-2007 11:20 PM |