Telerik blogs
  • People

    [ReSharper] Directory name donates namespace Yes or No ?

    If you like us are passionate user of ReSharper you know that ReSharper "did not like" when a class' namespace did not correspond to the directory structure the file belongs to. To illustrate this lets look at a simple example. Imagine that we have a project named MyProject. By default its namespace is MyProject. Lets have a folder named MyControls in the project as well. Now lets add a class file in that folder, naming it "MyControl.cs". The default namespace that will be generated for the class will be MyProject.MyControls. It is constructed using the default namespace and joining it with the folder...
    July 04, 2008 1 min read
  • Desktop WPF

    Caveats with WPF dynamic resources and animations.

    Recently we've been building some cool stuff in WPF with resources and animations. In this post I will share some experience with a bug from our code base I fought recently. The actual code is complex, so here is a simple example that I used when hunting the nasty bug (source code is in the bottom of the page): <Window x:Class="WpfApplication1.Window1"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    Title="Window1" Height="300" Width="300">     <Window.Resources>         <Style TargetType="{x:Type Rectangle}" x:Key="RectangleStyle">             <Setter Property="Fill" Value="Blue" />         </Style>     </Window.Resources>     <Grid Name="testGrid" >        ...
    June 27, 2008 3 min read
  • People

    Tip of the Day: Clear your ClickOnce application store

    ClickOnce is a great technology that blurs the line between web and client(windows) applications. You can use it to easily deploy windows forms and WPF (through XBAP) app's. However there is common problem with it. The application store (the place where all ClickOnce applications get stored) has the ability to corrupt it self ending in an appropriate version mix of your application. You can end up in situation where "it works on my machine", but in reality the application did not work correctly. To avoid such situation it is a good practice to clear your application store before testing the...
    June 24, 2008 1 min read
  • Web

    Formatting RadChart Labels

    Hi everyone, My name is Vesselin Georgiev and I am a technical consultant here at Telerik. This is my first blog post and it is dedicated to labels in RadChart. By default RadChart will display the value corresponding to the bar (point, slice) as a label.  But RadChart allows you to control the label content. This is possible thanks to the DefaultLabelValue property, which has been around for quite some time now. You can use several “special words” in this property -- "#Y", "#X", “#%”, “#SUM”, “#STSUM”, “#SERIES”, “#ITEM”. They are all listed in the dedicated help topic . This is all good, but...
    June 20, 2008 2 min read
  • Desktop WPF

    WPF Data Binding: Unraveling data templates

    Data binding in WPF in general and particularly working with data templates tends to be quite tricky some times. Here I'll present you some more advanced tips for dealing with data templates. To start with, I want to refer to an article I read a while ago. It is about the basics of data templates and I want to use it as a starting point and a foundation to build on. If you are just starting to work with WPF or you have never met with data templates, please read it first to get acquainted with the idea. I'll use ItemsControl for...
    June 18, 2008 10 min read