<p> Silverlight Menu Control: Popup Menu</p><p>We continue exploring the AgMenu Suite, our Menu Library for Silverlight, and in this video we’ll look at how to use the popup menu.</p><p>1. I have created a simple Silverlight application and I have added the reference to the AgMenu assembly.</p><p>2. And I have added a namespace alias dxm. To reference my AgMenu classes in my “xaml” file.</p><p>3. Let’s drop a simple TextBlock and align it to top.</p><p>4. We’ll call it “previewLabel”.</p><p>5. Then, we’ll drop an AgPopupMenu and call it “optionsMenu”</p><p>6. The popup will contain two simple menu items with IsCheckable and IsRadioItem set to true.</p><p>7. And when clicked on, they’ll simply change the font color of our text block.</p><p>8. We’ll invoke the popup menu from the MouseLeftButtonUp event.</p><p>9. By simply calling the optionsMenu.Popup 10. We’ll pass in the owner element which is our previewLabel</p><p>11. And we’ll pass in the coordinates where we want the popup to appear. We’ll use a couple of extension methods available in AgCore.</p><p>12. And that’s it. Let’s run it and see it in action</p><p>Thanks for watching and thank you for choosing DevExpress.</p>
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages2 Page
-
File Size-