• .NET

    How To Create A Population Pyramid with RadChart for Silverlight

    A population pyramid, also called an age structure diagram as defined by Wikipedia is a graphical illustration that shows the distribution of various age groups in a human population (typically that of a country or region of the world). It typically consists of two back-to-back bar graphs, with the population plotted on the X axis and age on the Y axis, one showing the number of males and one showing females in a particular population in five-year age. Although there are different types of population pyramids this blog post will demonstrate how to create such pyramid using the RadChart’s Horizontal Bar type....
  • .NET

    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...
  • .NET

    Custom RadMap Provider for Q1 2011

    Since Q1 2011 and the newest release of the RadMap several changes were made to the control. Presently it is possible to specify several tile providers that will be displayed one over the other through the RadMap.Providers property. If your Map sources have tile size different from the default one (256x256) then all these sources must use the same tile size. For example if you want to have a satellite source with tile size 300x300 and a road source, the last one must use this tile size as well. If your map source uses a tile size different from the...
  • .NET

    Editing the RadScheduleView's TimeRulerItemTemplateSelector

    March 24, 2011 Share
    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...
  • .NET

    Editing the GroupHeaderContentTemplateSelector of RadScheduleView

    March 24, 2011 Share
    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...