Silverlight Menu Control: Popup Menu

Silverlight Menu Control: Popup Menu

<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>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us