Telerik blogs

Latest

  • Desktop WPF

    WPF: Custom control style and theme resources

    Hi everyone. I'm Jordan Dimitrov from the WPF team. I'm planning to post about .Net, first with few post about WPF. My first post is about resources and themes. Recently I had a problem with resources from themes files. I tried to use DynamicResource markup extension in Style in generic.xaml (sample bellow). But it didn't work. I changed DynamicResource extension with StaticResource markup extension and now it works. But WHY DynamicResource doesn't work? Sample XAML In my generic.xaml there are two items - a style for my CustomControl1 and a resource SolidColorBrush with key brush1.     1 <ResourceDictionary     2    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     3    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     4    xmlns:local="clr-namespace:WpfApplication1">    ...
  • Desktop WPF

    WPF Line Drawing and the Device-Pixel-(In)dependence

    As you are probably aware resolution and device independence is one of the fundamental design goals of WPF. In order to achieve the desired effect the framework does not work directly with physical (device-dependent) pixels but abstracts this notion into device-independent measuring units like inches. There are two main benefits that you get from this: Automatic DPI-aware scaling Sub-pixel positioning -- WPF coordinates use floating point numbers that theoretically give you the ability to draw with higher precision than the one provided by the ordinary pixel grid. However, there is one nasty side-effect related to the fact that WPF graphics are anti-aliased by default...
    June 16, 2008
  • Desktop WinForms

    Spinning RadCarousel

    This is my first post, and by obligation I have to say a few words as an introduction. I’m Mihail Valkov, and I have been working on component development at Telerik for several years. I know my name comes a bit mouthful for many of you, so I'll just use Mike for short. I'm the guy behind some of our Windows Forms components and part of the team that created the great TPF. I am excited of the many good things to come in our WinForms offering in the near future and I am determined to keep you posted about...
  • Desktop WinForms

    RadCarousel for WinForms - Even More Bang for your Buck

    Introducing the RadCarousel component into our suite can be compared to what the Big Bang was to the Universe in the early days. We’ve seen it all - from feature requests straight after its initial release, to statements it is worth as much as the entire suite. A few words of introduction - the RadCarousel animates a number of alternatives to choose from in a visually appealing way. RadCarousel animates the location, opacity and scale of its items. Items can be moved along any path described by a Bezier curve or an ellipse. These basic capabilities allow the control to be...
  • Desktop WPF

    WPF Grids – to be or not to be

    Recently both Paul Stovell and Joseph Cooney blogged about one very interesting topic - "Do people really need grid controls in WPF?". They're saying that people actually don't need grids in WPF and this is what makes their blog posts worth reading. Imagine if they had said the opposite: "People need grid controls for WPF!". It would have been quite boring and wouldn’t have spurred much of a discussion. For many people the idea of not having grids for WPF sounds unconventional but Paul made an interesting parallel to justify his claim "Using grids in WPF is like buying a Ferrari to pick up...
    June 11, 2008