﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - ClientUI - Issue with drop down menu selection</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Issue-with-drop-down-menu-selection/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Issue with drop down menu selection</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Issue-with-drop-down-menu-selection/</link><pubDate>Wed, 21 Dec 2011 20:44:32 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;Finally I was able to reproduce the reported problem. It was the lines between the “REQUIRED TO SUPPRESS EXCEPTION” comments are &lt;strong&gt;&lt;em&gt;not&lt;/em&gt;&lt;/strong&gt; commented out in my copy.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The development team has confirmed this as bug. This problem is filed under work item #1099. I will keep you informed with any news I heard from the team regarding work item #1099.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;strong&gt;Edited - December 22, 2011 01:30 AM&lt;/strong&gt;&lt;br /&gt;Reason: update latest status of work item #1099&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;I have good news regarding work item #1099.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;This morning, the development team informed me that they have rectified the reported problem. They gave me a nightly-build hotfix to retest the problem with the sample project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;After apply the nightly-build hotfix, the evaluation showed a good result. The reported problem is no longer persisting.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui', 'sans-serif'; color: #1f497d; font-size: 9pt"&gt;The nightly-build will be officially released on our regular schedule.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Issue with drop down menu selection</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Issue-with-drop-down-menu-selection/</link><pubDate>Tue, 20 Dec 2011 16:21:09 GMT</pubDate><dc:creator>terrell.jm@gmail.com</dc:creator><description>&lt;p&gt;Hi, not sure if it makes any difference, but I'm using a Windows 7 64 bit laptop with a 120 dpi monitor. I also noticed that both lines between the "REQUIRED TO SUPPRESS EXCEPTION" comments are commented out in my copy. However I don't think this makes any difference.  I have attached a copy of the stack trace from my exception. Thanks, Jonathan&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Issue with drop down menu selection</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Issue-with-drop-down-menu-selection/</link><pubDate>Mon, 19 Dec 2011 23:41:25 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Yes, I forgot to click the second (last) menu item labeled “Item 1”. Thank you for correcting this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Another video shows the second attempt to reproduce the problematic behavior. Unfortunately, I’m still unable to replicate the exception after move the cursor over the remaining (first) menu item for about six second.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Issue with drop down menu selection</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Issue-with-drop-down-menu-selection/</link><pubDate>Mon, 19 Dec 2011 03:45:49 GMT</pubDate><dc:creator>terrell.jm@gmail.com</dc:creator><description>&lt;p&gt;Hi, in step three you have to click the second (last) menu item labled "Item 1", not the first one.  Thanks, Jonathan&lt;/p&gt;</description></item><item><title>Issue with drop down menu selection</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Issue-with-drop-down-menu-selection/</link><pubDate>Mon, 19 Dec 2011 02:43:14 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I have tested the sample project which is included within the message (as inserted code), however I was unable to reproduce the reported problem. I never receive an exception after run the step #5.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;I enclosed the video that shows step-by-step of the test. please kindly let me know if there are any steps that I missed during my attempt to reproduce the issue.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Issue with drop down menu selection</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Issue-with-drop-down-menu-selection/</link><pubDate>Sun, 18 Dec 2011 18:07:41 GMT</pubDate><dc:creator>terrell.jm@gmail.com</dc:creator><description>&lt;p&gt;Hi, there was no physical attachment, the sample project is included within the message as inserted code.  Thanks, Jonathan&lt;/p&gt;</description></item><item><title>Issue with drop down menu selection</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Issue-with-drop-down-menu-selection/</link><pubDate>Sun, 18 Dec 2011 15:03:59 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt;"&gt;I’m afraid that you forgot to enclose the sample project as attachment.&lt;br /&gt;Please try re-attach it so that we can assist you further.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Issue with drop down menu selection</title><link>http://www.intersoftsolutions.com/Community/ClientUI/Issue-with-drop-down-menu-selection/</link><pubDate>Fri, 16 Dec 2011 18:38:39 GMT</pubDate><dc:creator>terrell.jm@gmail.com</dc:creator><description>&lt;p /&gt;
&lt;p&gt;Hi, I have attached a sample project to demonstrate an issue I experienced with the drop down menu. Please run the application and try the following:&lt;/p&gt;
&lt;p&gt;1. Click Button 1 to show a single item drop down menu.&lt;/p&gt;
&lt;p&gt;2. Click Update 1 to dynamically add a second menu item to the drop down menu.&lt;/p&gt;
&lt;p&gt;3. Click Button 1 and select the new (second) menu item. Important you actually select it.&lt;/p&gt;
&lt;p&gt;4. Click on Update 2 to dynamically remove the second menu item.&lt;/p&gt;
&lt;p&gt;5. Click on Button 1 and move the cursor over the remaining (first) menu item.&lt;/p&gt;
&lt;p&gt;You will receive an exception. I believe the original selection of the deleted menu item is not being cleared when it is deleted and this is causing the subsequent attempt to interact with the menu to generate an exception.  Thanks, Jonathan&lt;/p&gt;
&lt;p /&gt;&lt;pre&gt;&amp;lt;Window x:Class="WpfApplication26.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"&amp;gt;
  &amp;lt;Grid&amp;gt;
    &amp;lt;Grid.RowDefinitions&amp;gt;
      &amp;lt;RowDefinition Height="Auto" /&amp;gt;
    &amp;lt;/Grid.RowDefinitions&amp;gt;
    &amp;lt;ItemsControl x:Name="MyToolBar" Grid.Row="0" /&amp;gt;
  &amp;lt;/Grid&amp;gt;
&amp;lt;/Window&amp;gt;
&lt;/pre&gt;
&lt;p&gt; &lt;span class="Apple-style-span" style="font-family: 'courier new', tahoma; font-size: 12px; white-space: pre; background-color: rgb(255, 252, 225); "&gt;using System;&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;using System.Collections.Generic;
using System.Windows;
using Intersoft.Client.Framework;
using Intersoft.Client.UI.Aqua.UXRibbon;
namespace WpfApplication26 {
  public partial class MainWindow {
    public MainWindow() {
      InitializeComponent();
      MyToolBar.Items.Add(_dropDownButton1 = new UXRibbonDropDownButton { Content = "Button 1" });
      _dropDownButton1.DropDownOpened &amp;#43;= DropDownButton1_OnDropDownOpened;
      MyToolBar.Items.Add(_updateButton1 = new UXRibbonButton { Content = "Update 1" });
      _updateButton1.Click &amp;#43;= _updateButton1_OnClick;
      MyToolBar.Items.Add(_updateButton2 = new UXRibbonButton { Content = "Update 2" });
      _updateButton2.Click &amp;#43;= _updateButton2_OnClick;
      for (var i = 0; i &amp;lt; 1; i&amp;#43;&amp;#43;) { _myItems.Add(String.Format("Item {0}", i &amp;#43; 1)); }
    }
    private readonly UXRibbonDropDownButton _dropDownButton1;
    private readonly UXRibbonButton _updateButton1;
    private readonly UXRibbonButton _updateButton2;
    private readonly List&amp;lt;String&amp;gt; _myItems = new List&amp;lt;String&amp;gt;();
    private void DropDownButton1_OnDropDownOpened(Object sender, ISRoutedEventArgs eventArgs) {
      // REQUIRED TO SUPPRESS EXCEPTION
      //if (_dropDownButton1.Items.Count &amp;gt; 0) ((UXRibbonMenuItem)_dropDownButton1.Items[0]).IsSelected = true;
      _dropDownButton1.SelectedIndex = -1;
      // REQUIRED TO SUPPRESS EXCEPTION
      _dropDownButton1.Items.Clear();
      foreach (var myItem in _myItems) { _dropDownButton1.Items.Add(new UXRibbonMenuItem { Header = myItem }); }
    }
    private void _updateButton1_OnClick(Object sender, RoutedEventArgs eventArgs) {
      _myItems.Remove("New Item");
      _myItems.Insert(0, "New Item");
    }
    private void _updateButton2_OnClick(Object sender, RoutedEventArgs eventArgs) {
      _myItems.Remove("Item 1");
    }
  }
}&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;
&lt;p /&gt;</description></item></channel></rss>