• .NET

    Drag and drop items onto RadScheduler for Silverlight

    We all are aware that users tend to look for the easiest and most rational way to do something. That is why developers always strive to create their products' interface as intuitive as possible. Speaking in this context, dragging and dropping helps us improve user experience significantly and make end users happier. In this blog post I will explain how we can use RadDragAndDrop to enable users drag items from a certain control and drop them over RadScheduler, while notifying about that. Of course, the described scenario could be extended to act in many different scenarios. Let us say we will drag items from a listbox to...
  • .NET

    RadDrag&Drop with a Canvas twist

    August 18, 2009 Share
    A week or so ago I was giving a small presentation and one of the people in the audience had a great question.  They had this old configuration section on their website for laying out something or other that had a lot of different options which could be dragged and dropped using some client-side javascript, but they are looking to move on up to Silverlight and the RadDragAndDropManager seemed to be the perfect candidate for the job.  The only issue with that is the only examples we have online show moving items to and from collections, but in their case...
  • .NET

    RadioButton and CheckBox Menu Items with RadMenu for Silverlight

    June 19, 2009 Share
    RadMenu for Silverlight supports simple checkable items, but still does not support radio button items. This feature is scheduled for development and most probably will come with Q3 2009, but until then you have to code it by yourself. Fortunately, this is relatively easy with a proper ViewModel, that contains the radio-button logic: The CommandItem class contains the properties and the logic for a RadMenuItem. It implements INotifyPropertyChanged and its most important property is IsChecked: public bool IsChecked { get { return this.isChecked; } set ...
  • .NET

    Scrollable Menu – Workaround with a Multi-Column Menu and RadControls for Silverlight

    June 18, 2009 Share
    RadMenu and RadContextMenu for Silverlight cannot automatically scroll their items if their height exceeds a certain height. We are planning to implement this feature in the near future, but at the moment there are two workarounds for the developers: override the RadMenu control template and add ScrollViewer controls around the ItemsPresenters, or customize the ItemsPanel of the RadMenuItem controls, so the sub-items are displayed in columns. The second option is much easier and looks good enough: The main idea is to replace the RadMenuItem ItemsPanel, that is a StackPanel by default, with a WrapPanel. To set the ItemsPanel property of all...
  • .NET

    MSDN Northeast RoadShow 2009

    Hi everyone! I attended the MSDN Northeast Roadshow in Waltham, MA yesterday and strongly recommend that anyone in the Augusta, Maine or Farmington, Connecticut areas check out the show when it is in your area within the next week.  Lots of great content ranging from why MVC is not that scary to reasons why you should be looking out for the Silverlight 3 release.  For those of you who are unfamiliar with the event, it's a great opportunity to find out what is new and exciting with the Microsoft development world, dodge colorful question reward bricks (the sound of impact on an unsuspecting crowd member is something...