Click here to Skip to main content
15,888,461 members
Home / Discussions / WPF
   

WPF

 
QuestionWPF Combobox Pin
koleraba6-Apr-10 8:04
koleraba6-Apr-10 8:04 
AnswerRe: WPF Combobox Pin
vsaratkar6-Apr-10 10:23
vsaratkar6-Apr-10 10:23 
GeneralRe: WPF Combobox Pin
koleraba6-Apr-10 12:01
koleraba6-Apr-10 12:01 
QuestionChanging Button Programatically [SLVED, but still accepting input/comments] Pin
#realJSOP6-Apr-10 7:49
mve#realJSOP6-Apr-10 7:49 
AnswerRe: Changing Button Programatically [SLVED, but still accepting input/comments] Pin
Pete O'Hanlon6-Apr-10 9:17
mvePete O'Hanlon6-Apr-10 9:17 
AnswerRe: Changing Button Programatically [SLVED, but still accepting input/comments] Pin
Michael J. Eber19-Apr-10 11:49
Michael J. Eber19-Apr-10 11:49 
QuestionChart ToolKit error in WPF Pin
Nanda_MR6-Apr-10 1:36
Nanda_MR6-Apr-10 1:36 
Questionwpf menu errors in XP Pin
hb521342145-Apr-10 13:24
hb521342145-Apr-10 13:24 
I have an application built in vs2008 using .net3.5 sp1 on a Windows 7 box. On the build machine, everything works like a charm. However, when I install it on an XP machine, the menu's behave improperly.

The observed behavior is that when a menu is opened and the mouse moved over the menu items, the first menu item that the mouse enters, stays visible, while the rest of the menu disappears. Its very strange. It looks like the menu item that the mouse is over is just a floating button. The item can be clicked and it works, but the other menu items (and their enclosing panel) are gone. Moving the mouse up or down does not "recover" the other menu items. Using keyboard cursers produces the same strange behavior.

My app is large enough that there could be plenty of coding errors, so I built a simple app to test the issue. It shows the same odd behavior. The simple app is a default WPF project with:

<DockPanel LastChildFill="True">
    <Menu DockPanel.Dock="Top">
      <MenuItem Header="_File">
        <MenuItem Command="{x:Static c:Window1.OpenCmd}" />
        ...
      </MenuItem>
    </Menu>
    <StackPanel>
      <TextBlock Text="Here" />
    </StackPanel>
  </DockPanel>

added to the window1.xaml and:
bool isOpen=false;
public static readonly RoutedUICommand OpenCmd = new RoutedUICommand("_Open", "Open", typeof(Window1));
public Window1() {
  InitializeComponent();
  CommandBinding cb = new CommandBinding(OpenCmd, exe, can);
  CommandBindings.Add(cb);
}
void CanOpen(object sender, CanExecuteRoutedEventArgs e) {
  e.CanExecute = !isOpen;
  e.Handled = true;
}
void CanClose(object sender, CanExecuteRoutedEventArgs e) {
  e.CanExecute = isOpen;
  e.Handled = true;
}

added to the window1.xaml.cs.

I've simplified the xaml & c# code to only show 1 command, but obviously the error is only visible when with several items in the menu.

The Windows XP machine is a fully updated XP box (sp3 with .net 3.5sp1) that has been cleanly installed. It is running under VMWare 6.5, which I suppose opens a number of potential issues, but I run a heck of a lot of apps under vm's and haven't had any noticable issues.

Any suggestions would be greatly appreciated.
AnswerRe: wpf menu errors in XP Pin
hb521342145-Apr-10 13:54
hb521342145-Apr-10 13:54 
QuestionContext Menu Pin
ScottRadel5-Apr-10 12:09
ScottRadel5-Apr-10 12:09 
AnswerRe: Context Menu Pin
hb521342145-Apr-10 13:56
hb521342145-Apr-10 13:56 
GeneralRe: Context Menu Pin
ScottRadel6-Apr-10 8:21
ScottRadel6-Apr-10 8:21 
QuestionSetting a Style Programatically [modified] Pin
#realJSOP5-Apr-10 9:36
mve#realJSOP5-Apr-10 9:36 
AnswerRe: Setting a Style Programatically Pin
Pete O'Hanlon5-Apr-10 10:46
mvePete O'Hanlon5-Apr-10 10:46 
GeneralRe: Setting a Style Programatically Pin
#realJSOP5-Apr-10 12:14
mve#realJSOP5-Apr-10 12:14 
GeneralRe: Setting a Style Programatically Pin
Pete O'Hanlon6-Apr-10 9:03
mvePete O'Hanlon6-Apr-10 9:03 
GeneralRe: Setting a Style Programatically Pin
#realJSOP6-Apr-10 9:17
mve#realJSOP6-Apr-10 9:17 
QuestionText Rotation - Is It Just Me? Pin
#realJSOP5-Apr-10 0:04
mve#realJSOP5-Apr-10 0:04 
AnswerRe: Text Rotation - Is It Just Me? Pin
Pete O'Hanlon5-Apr-10 10:20
mvePete O'Hanlon5-Apr-10 10:20 
QuestionSilverlight Automatic Image Transition Pin
saurabh94-Apr-10 23:03
saurabh94-Apr-10 23:03 
AnswerRe: Silverlight Automatic Image Transition Pin
Michael J. Eber19-Apr-10 11:54
Michael J. Eber19-Apr-10 11:54 
QuestionRotaing Label control Pin
#realJSOP4-Apr-10 5:58
mve#realJSOP4-Apr-10 5:58 
AnswerRe: Rotaing Label control Pin
Abhinav S4-Apr-10 6:50
Abhinav S4-Apr-10 6:50 
GeneralRe: Rotaing Label control Pin
#realJSOP4-Apr-10 7:02
mve#realJSOP4-Apr-10 7:02 
GeneralRe: Rotaing Label control Pin
Abhinav S4-Apr-10 7:11
Abhinav S4-Apr-10 7:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.