<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>Menu and Context Menu for Silverlight 4.0</title><link>http://sl4popupmenu.codeplex.com/project/feeds/rss</link><description>Multilevel Silverlight 4.0 menu and context menu. The control provides ease of use and flexibility by using, as template, the standard ListBox most of us are familiar with. It supports shortcuts, keyboard navigation and can be wired to one or several elements at the same time.</description><item><title>New Post: SL5 Support?</title><link>http://sl4popupmenu.codeplex.com/discussions/288191</link><description>&lt;div style="line-height: normal;"&gt;I am too facing this problem - &amp;quot;child popup windows doesn't show right next to its parent, there is a horizontal gap of ~100 pixels.&amp;quot;&lt;br /&gt;
&lt;/div&gt;</description><author>manish00gupta00</author><pubDate>Fri, 01 Mar 2013 07:32:16 GMT</pubDate><guid isPermaLink="false">New Post: SL5 Support? 20130301073216A</guid></item><item><title>New Post: why a Slider in menu can not Binding Background.Opacity of layoutRoot,but grdPopupMenu(a grid control)can</title><link>http://sl4popupmenu.codeplex.com/discussions/428710</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;/div&gt;</description><author>xj20305</author><pubDate>Mon, 07 Jan 2013 04:04:57 GMT</pubDate><guid isPermaLink="false">New Post: why a Slider in menu can not Binding Background.Opacity of layoutRoot,but grdPopupMenu(a grid control)can 20130107040457A</guid></item><item><title>New Post: why a Slider in menu can not Binding Background.Opacity of layoutRoot,but grdPopupMenu(a grid control)can</title><link>http://sl4popupmenu.codeplex.com/discussions/428710</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;hi,i have a issue,but my english is ugly.&lt;br&gt;
why a Slider in menu can not Binding Background.Opacity of layoutRoot,but grdPopupMenu(a grid control)can&lt;br&gt;
you know i want to change the Background.Opacity of layoutRoot&lt;br&gt;
the main code as follow&lt;br&gt;
xaml:&lt;br&gt;
&amp;lt;UserControl&lt;br&gt;
xmlns=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&amp;quot;&lt;br&gt;
xmlns:x=&amp;quot;http://schemas.microsoft.com/winfx/2006/xaml&amp;quot;&lt;br&gt;
xmlns:d=&amp;quot;http://schemas.microsoft.com/expression/blend/2008&amp;quot;&lt;br&gt;
xmlns:mc=&amp;quot;http://schemas.openxmlformats.org/markup-compatibility/2006&amp;quot;&lt;br&gt;
mc:Ignorable=&amp;quot;d&amp;quot;&lt;br&gt;
x:Class=&amp;quot;PopupMenuApp.UserControl2&amp;quot;&lt;br&gt;
d:DesignWidth=&amp;quot;640&amp;quot; d:DesignHeight=&amp;quot;480&amp;quot;&lt;br&gt;
xmlns:my=&amp;quot;clr-namespace:SL4PopupMenu;assembly=SL4PopupMenu&amp;quot;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&amp;lt;Grid x:Name=&amp;quot;LayoutRoot&amp;quot; Background=&amp;quot;#FFCB6969&amp;quot;&amp;gt;&lt;br&gt;
&amp;lt;Rectangle Fill=&amp;quot;#FFF4F4F5&amp;quot; Height=&amp;quot;98&amp;quot; Margin=&amp;quot;146,108,182,0&amp;quot; Stroke=&amp;quot;Black&amp;quot; VerticalAlignment=&amp;quot;Top&amp;quot;/&amp;gt;&lt;br&gt;
&amp;lt;my:PopupMenu x:Name=&amp;quot;pmMain&amp;quot;&lt;br&gt;
RightClickElements=&amp;quot;LayoutRoot&amp;quot; &lt;br&gt;
AccessShortcut=&amp;quot;Ctrl&amp;#43;Alt&amp;#43;M&amp;quot; &lt;br&gt;
AccessShortcutTargetElementName=&amp;quot;LayoutRoot&amp;quot; &lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&amp;lt;!--The ItemsControl can also be placed inside a Grid or any other FrameworkElement within the menu--&amp;gt;&lt;br&gt;
&amp;lt;!--In this case the PopupMenu will use the first ItemsControl(lstPopupMenu in our case) it finds in its content--&amp;gt;&lt;br&gt;
&amp;lt;Grid x:Name=&amp;quot;grdPopupMenu&amp;quot; Background=&amp;quot;#FFB01C99&amp;quot; &amp;gt;&lt;br&gt;
&amp;lt;!--See code behind where more items are added to this listbox --&amp;gt;&lt;br&gt;
&amp;lt;ListBox x:Name=&amp;quot;lstPopupMenu&amp;quot; Margin=&amp;quot;20,0,0,0&amp;quot; &amp;gt;&lt;br&gt;
&amp;lt;my:PopupMenuItem x:Name=&amp;quot;pmiCut&amp;quot; Header=&amp;quot;Cut&amp;quot; Tag=&amp;quot;ClipboardMenuTag&amp;quot; ImageSource=&amp;quot;../images/Cut.png&amp;quot; /&amp;gt;&lt;br&gt;
&amp;lt;my:PopupMenuItem x:Name=&amp;quot;pmiCopy&amp;quot; Header=&amp;quot;Copy&amp;quot; Tag=&amp;quot;ClipboardMenuTag&amp;quot; ImageSource=&amp;quot;../images/Copy.png&amp;quot; /&amp;gt;&lt;br&gt;
&amp;lt;!--This implementation provides control over the header content--&amp;gt;&lt;br&gt;
&amp;lt;my:PopupMenuItem x:Name=&amp;quot;pmiPaste&amp;quot; ImageSource=&amp;quot;../images/Paste.png&amp;quot;&amp;gt;&lt;br&gt;
&amp;lt;TextBlock Text=&amp;quot;Paste&amp;quot; Tag=&amp;quot;ClipboardMenuTag&amp;quot;/&amp;gt;&lt;br&gt;
&amp;lt;/my:PopupMenuItem &amp;gt;&lt;br&gt;
&amp;lt;my:PopupMenuSeparator Tag=&amp;quot;ClipboardMenuTag&amp;quot;/&amp;gt;&lt;br&gt;
&amp;lt;my:PopupMenuItem x:Name=&amp;quot;pmiOrientableMenu&amp;quot; Header=&amp;quot;Orientable Menu&amp;quot; CloseOnClick=&amp;quot;False&amp;quot; ImageSource=&amp;quot;../images/4_direction.png&amp;quot; ImageRightSource=&amp;quot;../images/arrow.png&amp;quot; /&amp;gt;&lt;br&gt;
&amp;lt;my:PopupMenuSeparator/&amp;gt;&lt;br&gt;
&amp;lt;/ListBox&amp;gt;&lt;br&gt;
&amp;lt;/Grid&amp;gt;&lt;br&gt;
&amp;lt;/my:PopupMenu&amp;gt;&lt;br&gt;
&amp;lt;Slider x:Name=&amp;quot;stpTransparency&amp;quot; Height=&amp;quot;35&amp;quot; VerticalAlignment=&amp;quot;Center&amp;quot;
&lt;br&gt;
Value=&amp;quot;{Binding Background.Opacity, ElementName=grdPopupMenu, Mode=TwoWay}&amp;quot; Maximum=&amp;quot;1&amp;quot; HorizontalAlignment=&amp;quot;Center&amp;quot; Width=&amp;quot;200&amp;quot;/&amp;gt;&lt;br&gt;
&lt;br&gt;
&amp;lt;/Grid&amp;gt;&lt;br&gt;
&amp;lt;/UserControl&amp;gt;&lt;br&gt;
&lt;br&gt;
csharp code behind:&lt;br&gt;
using System;&lt;br&gt;
using System.Windows;&lt;br&gt;
using System.Windows.Controls;&lt;br&gt;
using System.Windows.Documents;&lt;br&gt;
using System.Windows.Ink;&lt;br&gt;
using System.Windows.Input;&lt;br&gt;
using System.Windows.Media;&lt;br&gt;
using System.Windows.Media.Animation;&lt;br&gt;
using System.Windows.Shapes;&lt;br&gt;
&lt;br&gt;
namespace PopupMenuApp&lt;br&gt;
{&lt;br&gt;
public partial class UserControl2 : UserControl&lt;br&gt;
{&lt;br&gt;
public UserControl2()&lt;br&gt;
{&lt;br&gt;
// 为初始化变量所必需&lt;br&gt;
InitializeComponent();&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
pmMain.AddItem(stpTransparency).CloseOnClick = false; &lt;br&gt;
&lt;br&gt;
}&lt;br&gt;
}&lt;br&gt;
}&lt;/p&gt;
&lt;/div&gt;</description><author>xj20305</author><pubDate>Mon, 07 Jan 2013 04:04:32 GMT</pubDate><guid isPermaLink="false">New Post: why a Slider in menu can not Binding Background.Opacity of layoutRoot,but grdPopupMenu(a grid control)can 20130107040432A</guid></item><item><title>Created Issue: why a Slider in menu can not  Binding Background.Opacity of layoutRoot,but grdPopupMenu(a grid control)can [7698]</title><link>http://sl4popupmenu.codeplex.com/workitem/7698</link><description>hi,i have a issue,but my english is ugly.&lt;br /&gt;why a Slider in menu can not  Binding Background.Opacity of layoutRoot,but grdPopupMenu&amp;#40;a grid control&amp;#41;can&lt;br /&gt;you know i want to change the Background.Opacity of  layoutRoot&lt;br /&gt;the main code as follow&lt;br /&gt;xaml&amp;#58;&lt;br /&gt;&amp;#60;UserControl&lt;br /&gt;&amp;#9;xmlns&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.microsoft.com&amp;#47;winfx&amp;#47;2006&amp;#47;xaml&amp;#47;presentation&amp;#34;&lt;br /&gt;&amp;#9;xmlns&amp;#58;x&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.microsoft.com&amp;#47;winfx&amp;#47;2006&amp;#47;xaml&amp;#34;&lt;br /&gt;&amp;#9;xmlns&amp;#58;d&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.microsoft.com&amp;#47;expression&amp;#47;blend&amp;#47;2008&amp;#34;&lt;br /&gt;&amp;#9;xmlns&amp;#58;mc&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.openxmlformats.org&amp;#47;markup-compatibility&amp;#47;2006&amp;#34;&lt;br /&gt;&amp;#9;mc&amp;#58;Ignorable&amp;#61;&amp;#34;d&amp;#34;&lt;br /&gt;&amp;#9;x&amp;#58;Class&amp;#61;&amp;#34;PopupMenuApp.UserControl2&amp;#34;&lt;br /&gt;&amp;#9;d&amp;#58;DesignWidth&amp;#61;&amp;#34;640&amp;#34; d&amp;#58;DesignHeight&amp;#61;&amp;#34;480&amp;#34;&lt;br /&gt;&amp;#9;xmlns&amp;#58;my&amp;#61;&amp;#34;clr-namespace&amp;#58;SL4PopupMenu&amp;#59;assembly&amp;#61;SL4PopupMenu&amp;#34;&lt;br /&gt;&amp;#9;&amp;#62;&lt;br /&gt;&lt;br /&gt;&amp;#9;&amp;#60;Grid x&amp;#58;Name&amp;#61;&amp;#34;LayoutRoot&amp;#34; Background&amp;#61;&amp;#34;&amp;#35;FFCB6969&amp;#34;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#60;Rectangle Fill&amp;#61;&amp;#34;&amp;#35;FFF4F4F5&amp;#34; Height&amp;#61;&amp;#34;98&amp;#34; Margin&amp;#61;&amp;#34;146,108,182,0&amp;#34; Stroke&amp;#61;&amp;#34;Black&amp;#34; VerticalAlignment&amp;#61;&amp;#34;Top&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;my&amp;#58;PopupMenu x&amp;#58;Name&amp;#61;&amp;#34;pmMain&amp;#34;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;RightClickElements&amp;#61;&amp;#34;LayoutRoot&amp;#34; &lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;AccessShortcut&amp;#61;&amp;#34;Ctrl&amp;#43;Alt&amp;#43;M&amp;#34; &lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;AccessShortcutTargetElementName&amp;#61;&amp;#34;LayoutRoot&amp;#34; &lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9; &amp;#62;&lt;br /&gt;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#33;--The ItemsControl can also be placed inside a Grid or any other FrameworkElement within the menu--&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#33;--In this case the PopupMenu will use the first ItemsControl&amp;#40;lstPopupMenu in our case&amp;#41; it finds in its content--&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;Grid x&amp;#58;Name&amp;#61;&amp;#34;grdPopupMenu&amp;#34; Background&amp;#61;&amp;#34;&amp;#35;FFB01C99&amp;#34; &amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#33;--See code behind where more items are added to this listbox --&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;ListBox x&amp;#58;Name&amp;#61;&amp;#34;lstPopupMenu&amp;#34; Margin&amp;#61;&amp;#34;20,0,0,0&amp;#34; &amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;my&amp;#58;PopupMenuItem x&amp;#58;Name&amp;#61;&amp;#34;pmiCut&amp;#34; Header&amp;#61;&amp;#34;Cut&amp;#34; Tag&amp;#61;&amp;#34;ClipboardMenuTag&amp;#34;  ImageSource&amp;#61;&amp;#34;..&amp;#47;images&amp;#47;Cut.png&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;my&amp;#58;PopupMenuItem x&amp;#58;Name&amp;#61;&amp;#34;pmiCopy&amp;#34; Header&amp;#61;&amp;#34;Copy&amp;#34; Tag&amp;#61;&amp;#34;ClipboardMenuTag&amp;#34;  ImageSource&amp;#61;&amp;#34;..&amp;#47;images&amp;#47;Copy.png&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#33;--This implementation provides control over the header content--&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;my&amp;#58;PopupMenuItem x&amp;#58;Name&amp;#61;&amp;#34;pmiPaste&amp;#34;  ImageSource&amp;#61;&amp;#34;..&amp;#47;images&amp;#47;Paste.png&amp;#34;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;TextBlock Text&amp;#61;&amp;#34;Paste&amp;#34; Tag&amp;#61;&amp;#34;ClipboardMenuTag&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#47;my&amp;#58;PopupMenuItem &amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;my&amp;#58;PopupMenuSeparator Tag&amp;#61;&amp;#34;ClipboardMenuTag&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;my&amp;#58;PopupMenuItem x&amp;#58;Name&amp;#61;&amp;#34;pmiOrientableMenu&amp;#34; Header&amp;#61;&amp;#34;Orientable Menu&amp;#34; CloseOnClick&amp;#61;&amp;#34;False&amp;#34; ImageSource&amp;#61;&amp;#34;..&amp;#47;images&amp;#47;4_direction.png&amp;#34; ImageRightSource&amp;#61;&amp;#34;..&amp;#47;images&amp;#47;arrow.png&amp;#34; &amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;my&amp;#58;PopupMenuSeparator&amp;#47;&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#47;ListBox&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#47;Grid&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;&amp;#47;my&amp;#58;PopupMenu&amp;#62;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#60;Slider x&amp;#58;Name&amp;#61;&amp;#34;stpTransparency&amp;#34; Height&amp;#61;&amp;#34;35&amp;#34; VerticalAlignment&amp;#61;&amp;#34;Center&amp;#34; &lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&amp;#9;Value&amp;#61;&amp;#34;&amp;#123;Binding Background.Opacity, ElementName&amp;#61;grdPopupMenu, Mode&amp;#61;TwoWay&amp;#125;&amp;#34; Maximum&amp;#61;&amp;#34;1&amp;#34; HorizontalAlignment&amp;#61;&amp;#34;Center&amp;#34; Width&amp;#61;&amp;#34;200&amp;#34;&amp;#47;&amp;#62;&lt;br /&gt;&lt;br /&gt;&amp;#9;&amp;#60;&amp;#47;Grid&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;UserControl&amp;#62;&lt;br /&gt;&lt;br /&gt;csharp code behind&amp;#58;&lt;br /&gt;using System&amp;#59;&lt;br /&gt;using System.Windows&amp;#59;&lt;br /&gt;using System.Windows.Controls&amp;#59;&lt;br /&gt;using System.Windows.Documents&amp;#59;&lt;br /&gt;using System.Windows.Ink&amp;#59;&lt;br /&gt;using System.Windows.Input&amp;#59;&lt;br /&gt;using System.Windows.Media&amp;#59;&lt;br /&gt;using System.Windows.Media.Animation&amp;#59;&lt;br /&gt;using System.Windows.Shapes&amp;#59;&lt;br /&gt;&lt;br /&gt;namespace PopupMenuApp&lt;br /&gt;&amp;#123;&lt;br /&gt;&amp;#9;public partial class UserControl2 &amp;#58; UserControl&lt;br /&gt;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;public UserControl2&amp;#40;&amp;#41;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#47;&amp;#47; 为初始化变量所必需&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;InitializeComponent&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;pmMain.AddItem&amp;#40;stpTransparency&amp;#41;.CloseOnClick &amp;#61; false&amp;#59; &lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#125;&lt;br /&gt;&amp;#9;&amp;#125;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;</description><author>xj20305</author><pubDate>Sun, 06 Jan 2013 09:33:48 GMT</pubDate><guid isPermaLink="false">Created Issue: why a Slider in menu can not  Binding Background.Opacity of layoutRoot,but grdPopupMenu(a grid control)can [7698] 20130106093348A</guid></item><item><title>Commented Issue: Silverlight 5 issue [7693]</title><link>http://sl4popupmenu.codeplex.com/workitem/7693</link><description>EDIT&amp;#58; Oh please disregard it, it looks like something was messed up in my build system so somehow I got both dlls loaded. Please delete this issue if this is possible.&lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47;&amp;#47; ------------&lt;br /&gt;&lt;br /&gt;SL4PopupMenu stopped working for me when I upgraded to SL5.&lt;br /&gt;I&amp;#39;ve even rebuilt SL4PM for SL5, but I still get the following error&amp;#58;&lt;br /&gt;Error&amp;#9;1&amp;#9;The tag &amp;#39;PopupMenuItem&amp;#39; does not exist in XML namespace &amp;#39;clr-namespace&amp;#58;SL4PopupMenu&amp;#59;assembly&amp;#61;SL4PopupMenu&amp;#39;.&amp;#9;C&amp;#58;&amp;#92;test&amp;#92;SilverlightApplication3&amp;#92;SilverlightControl1.xaml&amp;#9;8&amp;#9;10&amp;#9;SilverlightApplication3&lt;br /&gt;&lt;br /&gt;Any ideas&amp;#63; Here&amp;#39;s the offending XAML&amp;#58;&lt;br /&gt;&lt;br /&gt;&amp;#60;my&amp;#58;PopupMenu &lt;br /&gt;    x&amp;#58;Class&amp;#61;&amp;#34;Slex.Viewers.LineChart.LineChartPopupMenu&amp;#34;&lt;br /&gt;    xmlns&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.microsoft.com&amp;#47;winfx&amp;#47;2006&amp;#47;xaml&amp;#47;presentation&amp;#34;&lt;br /&gt;    xmlns&amp;#58;x&amp;#61;&amp;#34;http&amp;#58;&amp;#47;&amp;#47;schemas.microsoft.com&amp;#47;winfx&amp;#47;2006&amp;#47;xaml&amp;#34;&lt;br /&gt;    xmlns&amp;#58;my&amp;#61;&amp;#34;clr-namespace&amp;#58;SL4PopupMenu&amp;#59;assembly&amp;#61;SL4PopupMenu&amp;#34; &lt;br /&gt;    xmlns&amp;#58;Controls&amp;#61;&amp;#34;clr-namespace&amp;#58;System.Windows.Controls&amp;#59;assembly&amp;#61;System.Windows&amp;#34;&amp;#62;&lt;br /&gt;    &amp;#60;Controls&amp;#58;ListBox&amp;#62;&lt;br /&gt;        &amp;#60;my&amp;#58;PopupMenuItem Header&amp;#61;&amp;#34;Markers&amp;#34;&amp;#62;&lt;br /&gt;            &amp;#60;my&amp;#58;PopupMenu&amp;#62;&lt;br /&gt;                &amp;#60;TextBox&amp;#62;&amp;#60;&amp;#47;TextBox&amp;#62;&lt;br /&gt;            &amp;#60;&amp;#47;my&amp;#58;PopupMenu&amp;#62;&lt;br /&gt;        &amp;#60;&amp;#47;my&amp;#58;PopupMenuItem&amp;#62;&lt;br /&gt;    &amp;#60;&amp;#47;Controls&amp;#58;ListBox&amp;#62;&lt;br /&gt;&amp;#60;&amp;#47;my&amp;#58;PopupMenu&amp;#62;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comments: Get the source code, open in VS, set the target to SL5, fix the toolkit references to V5 and rebuild.&amp;#10;&amp;#10;I uploaded the result to https&amp;#58;&amp;#47;&amp;#47;skydrive.live.com&amp;#47;redir&amp;#63;resid&amp;#61;1E771DCD1C382F9C&amp;#33;590 if anyone is interested.</description><author>jmpirelli</author><pubDate>Tue, 23 Oct 2012 10:42:24 GMT</pubDate><guid isPermaLink="false">Commented Issue: Silverlight 5 issue [7693] 20121023104224A</guid></item><item><title>New Post: SL5 Support?</title><link>http://sl4popupmenu.codeplex.com/discussions/288191</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;It compiles, but there are some glitches - for instance, child popup windows doesn't show right next to its parent, there is a horizontal gap of ~100 pixels.&lt;/p&gt;&lt;/div&gt;</description><author>skalkin</author><pubDate>Fri, 27 Jul 2012 00:53:15 GMT</pubDate><guid isPermaLink="false">New Post: SL5 Support? 20120727125315A</guid></item><item><title>New Post: ScrollViewer in Long PopupMenu</title><link>http://sl4popupmenu.codeplex.com/discussions/360931</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Hemant,&lt;/p&gt;
&lt;p&gt;To get scrolling ability you can just add your items to a Listbox and enable its built in vertical scrollbar.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Ziad&lt;/p&gt;&lt;/div&gt;</description><author>ZiadJ</author><pubDate>Tue, 26 Jun 2012 12:33:02 GMT</pubDate><guid isPermaLink="false">New Post: ScrollViewer in Long PopupMenu 20120626123302P</guid></item><item><title>New Post: ScrollViewer in Long PopupMenu</title><link>http://sl4popupmenu.codeplex.com/discussions/360931</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi Ziad,&lt;/p&gt;
&lt;p&gt;I am using SL4 Popupmenu control. My Popup menu generates a long list of PopupMenuItem. You know browser Height is fixed hence few portion of PopupMenu is not visible. Is it possible to provide ScrollVeiwer so that User can scroll to the&amp;nbsp;last PopupMenuitem
 in case Height of PopupMenu generated is greater than Browser Height.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,&lt;/p&gt;
&lt;p&gt;Hemant&lt;/p&gt;
&lt;/div&gt;</description><author>hemant2701</author><pubDate>Tue, 26 Jun 2012 08:25:25 GMT</pubDate><guid isPermaLink="false">New Post: ScrollViewer in Long PopupMenu 20120626082525A</guid></item><item><title>New Post: Icon is not displaying through code in PopupMenu in SL4 BA</title><link>http://sl4popupmenu.codeplex.com/discussions/282533</link><description>&lt;div style="line-height: normal;"&gt;&lt;blockquote style="padding-bottom: 0px; font-style: italic; margin: 0.25em 1em 0px; padding-left: 0.25em; padding-right: 0.25em; padding-top: 0px; border: #ccc 0.1em solid;"&gt;&lt;strong&gt;ZiadJ wrote:&lt;/strong&gt;&lt;br /&gt;
&lt;p&gt;I still haven't found a clean solution to the problem and all I could to do is make the code behind approach a little less invasive by using the following static method:&lt;/p&gt;
&lt;pre style="font-family: Consolas; background: white; color: black;"&gt;&lt;span style="color: blue;"&gt;public&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;static&lt;/span&gt;&amp;nbsp;&lt;span style="color: blue;"&gt;void&lt;/span&gt;&amp;nbsp;PreloadMenuImages(&lt;span style="color: #2b91af;"&gt;Image&lt;/span&gt;&amp;nbsp;imageLoader)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;foreach&lt;/span&gt;&amp;nbsp;(&lt;span style="color: blue;"&gt;var&lt;/span&gt;&amp;nbsp;item&amp;nbsp;&lt;span style="color: blue;"&gt;in&lt;/span&gt;&amp;nbsp;&lt;span style="color: #2b91af;"&gt;PopupMenuManager&lt;/span&gt;.MenuTriggers
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .Select(mt&amp;nbsp;=&amp;gt;&amp;nbsp;mt.PopupMenuBase).OfType&amp;lt;&lt;span style="color: #2b91af;"&gt;PopupMenu&lt;/span&gt;&amp;gt;()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .SelectMany(m&amp;nbsp;=&amp;gt; m.Items).OfType&amp;lt;&lt;span style="color: #2b91af;"&gt;PopupMenuItem&lt;/span&gt;&amp;gt;())
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;imageLoader.Source&amp;nbsp;=&amp;nbsp;item.ImageSource;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;imageLoader.Source&amp;nbsp;=&amp;nbsp;item.ImageRightSource;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}
}&lt;/pre&gt;
&lt;p&gt;To start with make sure you have a dummy Image control in your page named, say imgLoader, so that you can pass it as parameter in the new method.&lt;/p&gt;
&lt;p&gt;Then simply call it once your menus have been generated. All it does is loop through every image in your menus and loads them in your app via the dummy image control.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;br /&gt;Hi Ziad,&lt;/p&gt;
&lt;p&gt;Just want to inform you that above mentioned issue is not occuring in Silverlight 5. I have upgraded my project from SL4 to SL5 and now Icon is displayed through XAML and Code. I guess there is some issue with SL4&amp;nbsp; Business application.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>hemant2701</author><pubDate>Tue, 26 Jun 2012 08:15:32 GMT</pubDate><guid isPermaLink="false">New Post: Icon is not displaying through code in PopupMenu in SL4 BA 20120626081532A</guid></item><item><title>New Post: Debug.Write still in production version</title><link>http://sl4popupmenu.codeplex.com/discussions/348894</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Just to inform you that you've missed a &amp;quot;Debug.WriteLine(DateTime.Now.ToString());&amp;quot; line in the Close() method (in PopupMenuBase)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;and ... thank you very much for this 'Must Have'&lt;/p&gt;
&lt;p&gt;Crusty Applesniffer&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>CrustyApplesniffe</author><pubDate>Fri, 16 Mar 2012 14:24:25 GMT</pubDate><guid isPermaLink="false">New Post: Debug.Write still in production version 20120316022425P</guid></item><item><title>Created Issue: OOB, TopMost and UpdateLayout [7697]</title><link>http://sl4popupmenu.codeplex.com/workitem/7697</link><description>Hi&amp;#33;&lt;br /&gt;&lt;br /&gt;I am running into a really strange bug. &lt;br /&gt;&lt;br /&gt;When using my application in OutOfBrowser mode and setting the  Application.Current.MainWindow.TopMost to true, I will get the following exception&amp;#58;&lt;br /&gt;&lt;br /&gt;System.ArgumentException was unhandled by user code&lt;br /&gt;  Message&amp;#61;Value does not fall within the expected range.&lt;br /&gt;  StackTrace&amp;#58;&lt;br /&gt;       at MS.Internal.XcpImports.MethodEx&amp;#40;IntPtr ptr, String name, CValue&amp;#91;&amp;#93; cvData&amp;#41;&lt;br /&gt;       at MS.Internal.XcpImports.MethodEx&amp;#40;DependencyObject obj, String name&amp;#41;&lt;br /&gt;       at System.Windows.UIElement.UpdateLayout&amp;#40;&amp;#41;&lt;br /&gt;       at SL4PopupMenu.PopupMenuBase.&amp;#60;&amp;#62;c__DisplayClass30.&amp;#60;Open&amp;#62;b__2e&amp;#40;&amp;#41;&lt;br /&gt;  InnerException&amp;#58; &lt;br /&gt;&lt;br /&gt;at line 1275 of the PopupMenuBase.cs class&amp;#58;&lt;br /&gt;OverlayCanvas.UpdateLayout&amp;#40;&amp;#41;&amp;#59; &amp;#47;&amp;#47; Update the layout positions before placing the menu.&lt;br /&gt;&lt;br /&gt;I have tried different approaches to solve this, however none of them did work.&lt;br /&gt;&lt;br /&gt;What could be the problem&amp;#63;&lt;br /&gt;&lt;br /&gt;Thank you for your help and prompt reply&amp;#33;&lt;br /&gt;</description><author>leon123</author><pubDate>Thu, 15 Mar 2012 15:13:40 GMT</pubDate><guid isPermaLink="false">Created Issue: OOB, TopMost and UpdateLayout [7697] 20120315031340P</guid></item><item><title>Created Issue: NullReferenceException in PopupMenuItem [7696]</title><link>http://sl4popupmenu.codeplex.com/workitem/7696</link><description>I get a NullReferenceException when I show a Child Window on an event that&amp;#39;s chained through the popup menu. I&amp;#39;m not sure that I&amp;#39;m not doing something incredibly stupid. Basically I have a helper that creates a menu with typed-generic methods for things like &amp;#39;Export via MEMBER&amp;#39; and such. Anyway, when I get the &amp;#39;done&amp;#39; event back from the service reference and try to open a Child Window this throws an exception for every item that was in this list. It could be a race condition on my end as the menu is also re-built based on the return of that service reference call...&lt;br /&gt;&lt;br /&gt;Anyway, I had the source and changingthis on line 465 of PopupMenuItem.cs&amp;#58;&lt;br /&gt;this.Container.IsEnabled &amp;#61; this.IsEnabled&amp;#59; &amp;#47;&amp;#47; Sync the container state.&lt;br /&gt;&lt;br /&gt;To&amp;#58;&lt;br /&gt;if &amp;#40;this.Container &amp;#33;&amp;#61; null&amp;#41;&lt;br /&gt;    this.Container.IsEnabled &amp;#61; this.IsEnabled&amp;#59; &amp;#47;&amp;#47; Sync the container state.&lt;br /&gt;&lt;br /&gt;seems to make the issue go away. I&amp;#39;m not sure the implications. Sorry, I&amp;#39;m lazy. &amp;#58;&amp;#41; It seems to me it&amp;#39;s trying access methods from the container when it&amp;#39;s been disposed.&lt;br /&gt;&lt;br /&gt;Also of note&amp;#58; A MessageBox.Show&amp;#40;&amp;#41; will not cause the same issue. I managed to get the exception to go away with the dubugger attached via calling the code to build the menu later than the place I&amp;#39;d like to. The exception presented again in release to the dev sever. &amp;#58;&amp;#40;&lt;br /&gt;&lt;br /&gt;Sorry if this wasted someone&amp;#39;s time. Thanks for reading&amp;#33;&lt;br /&gt;</description><author>mentaldemise</author><pubDate>Tue, 13 Mar 2012 05:25:44 GMT</pubDate><guid isPermaLink="false">Created Issue: NullReferenceException in PopupMenuItem [7696] 20120313052544A</guid></item><item><title>Commented Issue: Multiple menus open on startup [7695]</title><link>http://sl4popupmenu.codeplex.com/workitem/7695</link><description>When the Menu loads and the element is hovered, all the menus in the hierarchy are opened. This happens only for the first time. Later navigation do not have this issue. The screen shot is attached.&lt;br /&gt;Can anyone tell me the work around for this. I am using the latest version 2.4.6.&lt;br /&gt;Comments: I have attached the code in the file attached. I think its got to do with the Opacity setting in the Open function of PopupMenuBase. The Opacity is set to 1 before the menus are positioned. &amp;#13;&amp;#10;However, I have overcome the problem by setting the TriggerTypes of the child menu on the Showing or Shown event of the Parent Menu. In the earlier code the TriggerTypes were set as shown in the attached code. Please let me know if there is any better way.</description><author>nikhilsoft</author><pubDate>Mon, 05 Mar 2012 09:36:46 GMT</pubDate><guid isPermaLink="false">Commented Issue: Multiple menus open on startup [7695] 20120305093646A</guid></item><item><title>Commented Issue: Multiple menus open on startup [7695]</title><link>http://sl4popupmenu.codeplex.com/workitem/7695</link><description>When the Menu loads and the element is hovered, all the menus in the hierarchy are opened. This happens only for the first time. Later navigation do not have this issue. The screen shot is attached.&lt;br /&gt;Can anyone tell me the work around for this. I am using the latest version 2.4.6.&lt;br /&gt;Comments: If you look at the PopupMenuBase constructor you&amp;#39;ll see that it is hidden using the following line of code&amp;#58;&amp;#10;&amp;#10;this.Visibility &amp;#61; Visibility.Collapsed&amp;#59;&amp;#10;&amp;#10;Since it&amp;#39;s in the constructor it is called before the menu is loaded which is just fine. &amp;#10;&amp;#10;I could not reproduce it in my app. Could you please send me a sample code to illustrate it&amp;#63; My guess right now is that a function or style somewhere else in your code is altering it.</description><author>ZiadJ</author><pubDate>Sat, 03 Mar 2012 08:29:44 GMT</pubDate><guid isPermaLink="false">Commented Issue: Multiple menus open on startup [7695] 20120303082944A</guid></item><item><title>New Post: How to make it scrollable?</title><link>http://sl4popupmenu.codeplex.com/discussions/343272</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thanks Ziad that fixed it&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;</description><author>MahmoudElBarbary</author><pubDate>Tue, 28 Feb 2012 08:56:28 GMT</pubDate><guid isPermaLink="false">New Post: How to make it scrollable? 20120228085628A</guid></item><item><title>Created Issue: Multiple menus open on startup [7695]</title><link>http://sl4popupmenu.codeplex.com/workitem/7695</link><description>When the Menu loads and the element is hovered, all the menus in the hierarchy are opened. This happens only for the first time. Later navigation do not have this issue. The screen shot is attached.&lt;br /&gt;Can anyone tell me the work around for this. I am using the latest version 2.4.6.&lt;br /&gt;</description><author>nikhilsoft</author><pubDate>Tue, 28 Feb 2012 08:05:46 GMT</pubDate><guid isPermaLink="false">Created Issue: Multiple menus open on startup [7695] 20120228080546A</guid></item><item><title>New Post: How to make it scrollable?</title><link>http://sl4popupmenu.codeplex.com/discussions/343272</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Ok thanks Mahmoud, this update should fix it:&lt;/p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;&lt;span style="color: blue;"&gt;if&lt;/span&gt; (&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Container != &lt;span style="color: blue;"&gt;null&lt;/span&gt;) 
{
	&lt;span style="color: blue;"&gt;var&lt;/span&gt; container = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Container;

	container.Dispatcher.BeginInvoke(&lt;span style="color: blue;"&gt;delegate&lt;/span&gt;
	{
		 container.IsEnabled = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.IsEnabled; 
	});
}
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;I haven't tested it myself though so I'm leaving that on you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>ZiadJ</author><pubDate>Mon, 27 Feb 2012 13:36:34 GMT</pubDate><guid isPermaLink="false">New Post: How to make it scrollable? 20120227013634P</guid></item><item><title>New Post: How to make it scrollable?</title><link>http://sl4popupmenu.codeplex.com/discussions/343272</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi ZiadJ,&lt;/p&gt;
&lt;p&gt;The null reference exception appears in the underlined red line&lt;/p&gt;
&lt;p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;                &lt;span style="color: blue;"&gt;if&lt;/span&gt; (&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Container != &lt;span style="color: blue;"&gt;null&lt;/span&gt;) &lt;span style="color: green;"&gt;// Don't bother calling synchContainerState if the container does not yet exist since it will eventually be called in OnApplyTemplate.&lt;/span&gt;
                {
                    &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Container.IsEnabled = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.IsEnabled; &lt;span style="color: green;"&gt;// Sync the container state.&lt;/span&gt;

                    &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Container.Dispatcher.BeginInvoke(&lt;span style="color: blue;"&gt;delegate&lt;/span&gt;
                    {
                       &lt;span style="text-decoration: underline; color: #ff0000;"&gt;this.Container.IsEnabled = this.IsEnabled;&lt;/span&gt; &lt;span style="color: green;"&gt;// Sync the container state.&lt;/span&gt;
                    });
                }
&lt;/pre&gt;
&lt;/div&gt;
and the null object is [&lt;span style="text-decoration: underline; color: #ff0000;"&gt;this.Container&lt;/span&gt;]&lt;/p&gt;
&lt;p&gt;﻿that exception appears only upon scrolling the context menu.&lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;/p&gt;&lt;/div&gt;</description><author>MahmoudElBarbary</author><pubDate>Mon, 27 Feb 2012 09:06:36 GMT</pubDate><guid isPermaLink="false">New Post: How to make it scrollable? 20120227090636A</guid></item><item><title>New Post: How to make it scrollable?</title><link>http://sl4popupmenu.codeplex.com/discussions/343272</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;That's weird because the code starts with&lt;span style="color: blue;"&gt; if&lt;/span&gt; (&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Container != &lt;span style="color: blue;"&gt;null&lt;/span&gt;) which is there to make sure that the value is not null beforehand.&lt;/p&gt;
&lt;p&gt;I'm missing something here. Can you give me more details on which property is null and on which line?&lt;/p&gt;
&lt;p&gt;Otherwise this shouldn't introduce any major bugs. At worst the menu items might not go into disabled mode when IsEnabled is false.&lt;/p&gt;
&lt;div id="divLookup" style="background-color: #ffff77; color: #000000; top: 122px; left: 60px; padding: 3px; z-index: 10000; border-radius: 3px 3px 3px 3px;"&gt;&lt;img src="data:image/gif,GIF89a%12%00%12%00%B3%00%00%FF%FF%FF%F7%F7%EF%CC%CC%CC%BD%BE%BD%99%99%99ZYZRUR%00%00%00%FE%01%02%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00!%F9%04%04%14%00%FF%00%2C%00%00%00%00%12%00%12%00%00%04X0%C8I%2B%1D8%EB%3D%E4%00%60(%8A%85%17%0AG*%8C%40%19%7C%00J%08%C4%B1%92%26z%C76%FE%02%07%C2%89v%F0%7Dz%C3b%C8u%14%82V5%23o%A7%13%19L%BCY-%25%7D%A6l%DF%D0%F5%C7%02%85%5B%D82%90%CBT%87%D8i7%88Y%A8%DB%EFx%8B%DE%12%01%00%3B" border="0" alt="" /&gt;&lt;/div&gt;&lt;/div&gt;</description><author>ZiadJ</author><pubDate>Mon, 27 Feb 2012 01:26:08 GMT</pubDate><guid isPermaLink="false">New Post: How to make it scrollable? 20120227012608A</guid></item><item><title>New Post: How to make it scrollable?</title><link>http://sl4popupmenu.codeplex.com/discussions/343272</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Dear ZiadJ,&lt;/p&gt;
&lt;p&gt;Thanks for your help , i now have a new requirement i wanted to generate the popup menu dynamically, so i did the following&lt;/p&gt;
&lt;p&gt;&amp;nbsp; subsubmenu.ItemsControl.MaxHeight = 250;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; subsubmenu.Width = 150;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;that made the scroll bar appear, but generated null reference exception upon scrolling at line [this.Container.IsEnabled = this.IsEnabled;] in code snippet&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;                &lt;span style="color: blue;"&gt;if&lt;/span&gt; (&lt;span style="color: blue;"&gt;this&lt;/span&gt;.Container != &lt;span style="color: blue;"&gt;null&lt;/span&gt;) &lt;span style="color: green;"&gt;// Don't bother calling synchContainerState if the container does not yet exist since it will eventually be called in OnApplyTemplate.&lt;/span&gt;
                {
                    &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Container.IsEnabled = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.IsEnabled; &lt;span style="color: green;"&gt;// Sync the container state.&lt;/span&gt;

                    &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Container.Dispatcher.BeginInvoke(&lt;span style="color: blue;"&gt;delegate&lt;/span&gt;
                    {
                        &lt;span style="color: blue;"&gt;this&lt;/span&gt;.Container.IsEnabled = &lt;span style="color: blue;"&gt;this&lt;/span&gt;.IsEnabled; &lt;span style="color: green;"&gt;// Sync the container state.&lt;/span&gt;
                    });
                }&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;pre&gt;So i commented these lines of codes and everything went fine&lt;/pre&gt;
&lt;pre&gt;Is what i did right and this won't generate further bugs in the future? Or can you help me with another workaround?&lt;/pre&gt;
&lt;pre&gt;Thanks in advance&lt;/pre&gt;
&lt;br /&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description><author>MahmoudElBarbary</author><pubDate>Sun, 26 Feb 2012 14:02:25 GMT</pubDate><guid isPermaLink="false">New Post: How to make it scrollable? 20120226020225P</guid></item></channel></rss>