![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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) |
| | 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) |
| | 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) |
| | 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) |
| | 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 | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Popup ads | Live Mail | |||
| popup | Vista General | |||
| IE8 popup | Network & Sharing | |||
| UAC popup | Vista General | |||
| UAC frequent popup | Vista security | |||