Telerik blogs

Latest

  • Desktop WPF

    How To Drag A File From Desktop And Drop It In RadTreeView Placed In WPF Application

      Sometimes we need to extend the RadTreeView’s Drag’and’Drop abilities in order to accept external data from other applications or Windows. In this post I will show you how to successfully drag and drop images from  windows desktop / windows explorer to a RadTreeView located in a running WPF Application. Imagine we want to make a tree that shows pictures and names of our favourite football teams and our favourite players in these teams. How can we achieve this ? We can first create some ViewModels: PlayerViewModel, TeamViewModel, LeagueViewModel that all inherit from BaseViewModel. The BaseViewModel will implement the INotifyPropertyChanged interface and will expose Name(string) and ImgSource(Uri) properties. Then we will create...
    March 29, 2011
  • Desktop WPF

    Editing the RadScheduleView's TimeRulerItemTemplateSelector

    RadControls for WPF, 2011.Q1 We will start with the project from the previous post: DOWNLOAD: RadScheduleView_GroupHeaderTemplates.zip And will produce the following project that has its timeruler items modified: DOWNLOAD: RadScheduleView_TimeRulerItemTemplates.zip Using the GroupHeaderContentTemplateSelector you can bind to the resource data. In the time ruler this is not the case. The time ruler items present date information and at this time they can’t be modified through items source property. We will create an inline template selector and discuss some of the TimeRulerItem DataTemplates. Converting the TimeRulerItemTemplateSelector to Local Value Select the RadScheduleView, go to the “Styling” section in the “Properties” tab and click the rectangle near the “TimeRulerItemTemplateSelector” property. Then...
    March 24, 2011
  • Desktop WPF

    Editing the GroupHeaderContentTemplateSelector of RadScheduleView

    RadControls for WPF, 2011.Q1 We will start with the project from the previous post: DOWNLOAD: RadScheduleView_StartUp.zip And will create a project that has one of the GroupHeader templates modified: DOWNLOAD: RadScheduleView_GroupHeaderTemplates.zip Converting the GroupHeaderContentTemplateSelector to Resource Select the RadScheduleView on the Design Surface. Go to the “Styling” property group. Click the small rectangle near the “GroupHeaderContentTemplateSelector” and use the “Convert to New Resource…” option: Name the new resource “GroupHeaderTemplateSelector”: Converting a DataTemplate from the GroupHeaderContentTemplateSelector to Resource Click again the “GroupHeaderTemplateSelector” and “Edit Resource”:   From the dialog that will open: Convert the HorizontalTemplate and the VerticalTemplate to new resources named "HorizontalHeaderTemplate" and...
    March 24, 2011
  • Desktop WPF

    Setting up the RadScheduleView

    RadControls for WPF, 2011.Q1 The attached project will be generated in this blog and will be used in future: DOWNLOAD: RadScheduleView_StartUp.zip This is probably the first post of a series that will guide you through RadScheduleView styling. We will try to use Blend as much as possible for the styling and designing part and VisualStudio 2010 for some of the code that we will need. Setting the References RadScheduleView requires the following references: Telerik.Windows.Controls Telerik.Windows.Data Telerik.Windows.Controls.Input Telerik.Windows.Controls.Navigation Telerik.Windows.Controls.ScheduleView Adding the RadScheduleView in the Design Surface In the MainWindow select the “[grid]” element, find the RadScheduleView in the toolbox and double-click it: Probably the view now does not look...
    March 24, 2011
  • Desktop WPF

    RadTimeBar - A Brand New Member In The Telerik WPF/Silverlight Data Visualization Family

    Hello everyone! Q1 2011 has just been released and with it comes for the first time the RadTimeBar. Time Bar is a time bound DataVisualization control whose main purpose is to allow lightweight scrolling, navigation, and selection through large periods of time. To ease visualization the timebar can divide the displayed timespan in predefined periods like years, quarters, months, weeks, days, etc. While showing periods of time divided in weeks can be fun, it becomes really useful when combined with another great product that allows quick data visualization – the RadSparklines.  In addition to visualizing data, the RadTimeBar control allows you...