<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML-esimuotoiltu Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.Shkpostityyli17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTML-esimuotoiltuChar
        {mso-style-name:"HTML-esimuotoiltu Char";
        mso-style-priority:99;
        mso-style-link:HTML-esimuotoiltu;
        font-family:"Courier New";
        mso-fareast-language:FI;}
..MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 70.85pt 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FI link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I’m hoping I’m not the only one who’s been trying something like this and even more so I hope there’s a solution for it:<br><br>I’ve been trying to get a ContextMenu inside the PullDownMenu with code like this:<br><span style='color:purple'>PullDownMenu</span><span style='color:silver'> </span>{<o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>            </span><span style='font-size:10.0pt;font-family:"Courier New";color:purple;mso-fareast-language:FI'>MenuItem</span><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'> </span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>{<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>                </span><span style='font-size:10.0pt;font-family:"Courier New";color:purple;mso-fareast-language:FI'>ComboBox</span><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'> </span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>{<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>                    </span><span style='font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:FI'>width</span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>:<span style='color:silver'> </span><i><span style='color:black'>page</span></i>.width<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>                    </span><span style='font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:FI'>label</span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>:<span style='color:silver'> </span><span style='color:green'>"Kampus:</span><span style='color:silver'> </span><span style='color:green'>"</span><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>                    </span><span style='font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:FI'>menu</span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>:<span style='color:silver'> </span><span style='color:purple'>ContextMenu</span><span style='color:silver'> </span>{<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>                        </span><span style='font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:FI'>id</span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>:<span style='color:silver'> </span><i><span style='color:black'>menu</span></i><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>                        </span><span style='font-size:10.0pt;font-family:"Courier New";color:purple;mso-fareast-language:FI'>Repeater</span><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'> </span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>{<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>                            </span><span style='font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:FI'>model</span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>:<span style='color:silver'> </span>[<span style='color:green'>"Kaikki"</span>,<span style='color:silver'> </span><span style='color:green'>"Otaniemi"</span>,<span style='color:silver'> </span><span style='color:green'>"Töölö"</span>,<span style='color:silver'> </span><span style='color:green'>"Arabia"</span>,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>                                </span><span style='font-size:10.0pt;font-family:"Courier New";color:green;mso-fareast-language:FI'>"Kumpula"</span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>,<span style='color:silver'> </span><span style='color:green'>"Keskusta"</span>,<span style='color:silver'> </span><span style='color:green'>"Kallio"</span>,<span style='color:silver'> </span><span style='color:green'>"Viikki"</span>]<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>                            </span><span style='font-size:10.0pt;font-family:"Courier New";color:purple;mso-fareast-language:FI'>MenuItem</span><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'> </span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>{<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>                                </span><span style='font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:FI'>text</span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>:<span style='color:silver'> </span>modelData<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>                                </span><span style='font-size:10.0pt;font-family:"Courier New";color:maroon;mso-fareast-language:FI'>onClicked</span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>:<span style='color:silver'> </span>{<span style='color:silver'> </span><i><span style='color:black'>kampus</span></i><span style='color:silver'> </span>=<span style='color:silver'> </span>modelData<span style='color:silver'> </span>}<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>                            </span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>}<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";color:silver;mso-fareast-language:FI'>                        </span><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>}<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>                    }<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>            }<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New";mso-fareast-language:FI'>}<o:p></o:p></span></p><p class=MsoNormal>Buut, it doesn’t do anything when selected, another thing I did was try to replace the MenuItem with the ComboBox straight, but of course that didn’t do squat. I’ve also tried to insert the ContextMenu straight to the MenuItem buuut that keeps telling me I can’t (surprise).<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So, any pointers/tips/solutions?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='mso-fareast-language:FI'>--<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:FI'>Lauri Lavanti<o:p></o:p></span></p><p class=MsoNormal><span style='mso-fareast-language:FI'>laurilavanti@gmail.com<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div>
<br /><br />
<hr style='border:none; color:#909090; background-color:#B0B0B0; height: 1px; width: 99%;' />
<table style='border-collapse:collapse;border:none;'>
        <tr>
                <td style='border:none;padding:0px 15px 0px 8px'>
                        <a href="http://www.avast.com/">
                                <img border=0 src="http://static.avast.com/emails/avast-mail-stamp.png" />
                        </a>
                </td>
                <td>
                        <p style='color:#3d4d5a; font-family:"Calibri","Verdana","Arial","Helvetica"; font-size:12pt;'>
                                Tässä sähköpostiviestissä ei ole viruksia eikä haittaohjelmia, koska <a href="http://www.avast.com/">avast! Antivirus</a> suojaus on käytössä.
                        </p>
                </td>
        </tr>
</table>
<br />
</body></html>