Telerik blogs

Latest

For the latest product updates, please visit Release.

  • 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...
    May 27, 2021 3 min read
  • Desktop WPF

    WPF Series: IFrameworkElement - the missing interface

    If you are familiar with WPF you are aware that the the grand daddy of all controls is FrameworkElement. It is defined in the PresentationFramework.dll assembly and derives from UIElement (defined in PresentationCore.dll). Its purpose is to serve as a base element for all framework related stuff: styles, inheritance context, etc. However there is another framework element - FrameworkContentElement. The main distinct between them is that the later did not defines its own rendering behavior (its inheritors should do so). This is way properties like: (Actual)Width or (Actual)Height are not present at FrameworkContentElement. If you examine the classes that derive from FrameworkContentElement...
    May 27, 2021 2 min read
  • Desktop WPF

    WPF Series: Creating Generic Adorner

    As I have mentioned at the end of the previous post today I will show you how to create a generic adorner, which will allow you to decorate a single element  multiple times at different positions. At the end we will be able to create something that looks like this: To achieve this we will need a way to say that we want to position the adorner at the different corners of the element as well as to specify whether we want to be inside or outside (vertically or horizontally) of the element. Let's create some enumeration types that will serve for...
    May 27, 2021 2 min read
  • Desktop WPF

    WPF Series: Adorners, Commands and Logical Tree

    Today I'm going to tell you a WPF story. But before I start to dig deeper let me first introduce you the main characters in this post. Here they are: Adorner - adorners are simple UIElement decorators. Suppose that you have a RichTextBox and you want to place a comment box over it, so that users can comment on the text in the box. This can be archived with adorners. Actually the WPF framework uses adorners internally for exactly the same purpose when you edit and annotate FlowDocument in a DocumentViewer. This is the reason why adorners are in System.Windows.Documents namespace. Command - commands are UI...
    May 27, 2021 5 min read
  • Desktop WPF

    WPF, Silverlight and the Telerik MIX Show Off videos

    This year the  MIX conference had a very cool Show Off contest. Here's what the organizers had to say about it: "At MIX08, we’re hosting what will be a world famous Show Off event. If you’ve ever wanted to put the smack down on lesser mortals, flex your brain, and get everyone to gloat at your—deservedly—awe-inspiring work, this is what might be called a prime opportunity. We want you to inspire others with your unique software, tip, tool, technique, animation, or anything else we can’t think of. All you need to do is create a short, 3-minute-or-less video demonstrating what you want...
    May 27, 2021 2 min read