Telerik blogs
  • Web

    Populating Silverlight TreeView from WCF Service with LINQ to SQL

    In this example I will show you how to populate a RadTreeView using LINQ and WCF. Also you will see how to transform a flat data into a hierarchical one. The target result is: 1. Create a new Silverlight Web Application Project NOTE: Make sure you choose "Web Application Project" After the project loads you can see that besides the regular Silverlight application, Visual Studio adds a Web application that will host the .xap file.   Before writing any LINQ or creating any WCF service, we need a database to target. 2. Right-click on RadTreeViewWithWCFWeb project and add a new item - "SQL Server Database". You can give the...
    May 27, 2021 6 min read
  • Desktop WPF

    WPF: Read-only Dependency Properties

    Yup, awkward creatures but they do exist! :) To be honest I came across these only recently and decided to share this (potentially) valuable information as well -- you cannot use it if you do not know it's there. Why do we need read-only dependency properties? There is a certain brand of dependency properties within the WPF framework that are used primarily for state determination. Often multiple conditions affect certain control state thus calculating and setting the state value directly is not feasible and generally leads to unpredictable and inconsistent results. Here is an example -- the UIElement.IsMouseOver dependency property (a common property...
    May 27, 2021 3 min read
  • Web

    Editing Slider's ControlTemplate in Expression Blend

    In this tutorial I will show you how to edit the ControlTemplate of one of our controls – the slider. Before you begin you need to cover the prerequisites bellow. You have to download the Telerik Controls for Silverlight as well as the project that contains all the controls and their ControlTemplates. Telerik Controls for Silverlight Project with all the ControlTemplates – this project is created in such way that allows you easily to edit the control templates. This means that all the control templates are copied in the resources of each Silverlight page. If you are missing any of...
    May 27, 2021 3 min read
  • Desktop WPF

    RadGauge for WPF

    As announced by Vladimir RadControls for WPF FUTURES suite is out and we already started to get your feedback. Vladimir and Todd have already drawn you attention to RadChart for WPF, so I decided to show you RadGauge -- another product from the same suite. You wouldn't be surprised to know that RadGauge will allow you to visualize various measurements in completely customizable manner. Here are some of the main features: Linear scales - RadGauge offers linear scales, the length or the position of the indicator over a line/bar will measure the value. There can be 4 types of indicators - elements, that point to a...
    May 27, 2021 3 min read
  • Web

    How To: Color Picker done with few slider controls

    This tutorial demonstrates how to create a color picker using nothing more than few elements and Telerik's slider control for Silverlight. To start off, create a new Silverlight project. It is up to you to decide whether you want a web page in the project or not. This particular example does not to include a web page, but a simple html page that is generated dynamically. Once you have the project created go ahead and add a reference to the Telerik.Windows.Controls.dll. At the top of your main UserControl, add a namespace in order to use the dll. Check if everything...
    May 27, 2021 4 min read