Telerik blogs

Latest

  • Desktop WPF

    Change the Office Black theme to support multiple Linear Scales using Expression Blend

    I recently posted an entry regarding the Radial Gauge for WPF where I demonstrated how you can create a half circle gauge.  Not long after that post, I received a question asking about Linear Gauges and how to use multiple scales in a single Linear Gauge.  It is not that there is a functional difference, but rather a visual difference.  The Office Black theme (shown below) has a border area in the middle where the linear gauges were overlapping causing a visual collision.  There are a number of ways that you can accomplish a task and I think one of...
    May 27, 2021 4 min read
  • Desktop WPF

    Installing and Using the RadRibbonForm template

    If you are planning to use the RadRibbonBar and want to get started quickly, then you might consider using the RadRibbonForm template in VIsual Studio.  While you can use a standard form the RadRibbonForm allows you to use the RadRibbonBar and have it extend into the Title bar, just like Microsoft Office.  You will first need to install the template so it is available to you in Visual Studio.  To get started, navigate to the C:\Program Files\Telerik\RadControls for WinForms [version]\Templates.  If you are using CSharp open the CSharp directory, there are Visual Basic versions as well, in appropriately named folders,...
    May 27, 2021 2 min read
  • Desktop WinForms

    Changing the Backcolor for the RadMenu for WinForms

    Recently a question regarding how to change the BackColor of the RadMenu for WinForms.  I thought it might be easier to outline this process with screenshots so I put together a quick post to answer the question. After creating a new WinForms application project, I added a RadMenu.  The screenshot below shows that the default color of the menu is blue. The quickest way to accomplish this task is to click on the SmartTag in the DesignView.  Then select the Edit UI Element menu option. This will open a new window which is called the Element hierarchy editor. Within the Element hierarchy editor, select the...
    May 27, 2021 2 min read
  • Desktop WPF

    How To: Save and load settings with RadGridView for WPF

    I’ve made small demo on how to save and restore various RadGridView settings using ApplicationSettingsBase. To turn on this for your grid you can simply set RadGridViewSettings.IsEnabled attached property: <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:local="clr-namespace:WpfApplication1" xmlns:ts="clr-namespace:Telerik.Settings" Title="Window1"> <Grid> <Grid.Resources> <ObjectDataProvider x:Key="customers" ObjectType="{x:Type local:NorthwindDataContext}" MethodName="get_Customers"> </ObjectDataProvider> </Grid.Resources> <telerik:RadGridView ts:RadGridViewSettings.IsEnabled="True" x:Name="RadGridView1" ItemsSource="{Binding Source={StaticResource customers}}"/> </Grid></Window> Saved settings...
    May 27, 2021 1 min read
  • Desktop WPF

    Creating a Half circle WPF RadGauge

    During a recent webinar, a question was asked about whether you can create a half circle gauge.  I recently covered this in my “Introducing RadGauge for WPF” webinar, but thought it would be good to have a quick blog post as well.  Below you will see a RadialGauge which contains two RadialScales placed along the left and right of the gauge.  This is actually very easy to produce since the RadialGauge is simply a container, you can place a number of scales inside of the gauge.      Here is the XAML for the screenshot...
    May 27, 2021 2 min read