Telerik blogs
  • Web

    Silverlight 2.0 Custom Scroll Viewer with Mouse Wheel

    In this blog post i will demonstrate how to customize Scroll Viewer and enable the mouse wheel functionality. I would be using the mix08 controls for  silverlight 2.0. they are  free and with open license. Before start please download Mix08 Controls. 1. Extract them and then open MixControls, after that see generic.xaml file, and open it. Find and copy the ScrollViewer style, it should be something like: .cf { font-family: Courier New; font-size: 10pt; color: black; background: white; } .cl { margin: 0px; } .cln { color: #2b91af; } .cb1 { color: #a31515; } .cb2 { color: blue; } .cb3 { color: red; } .cb4 { color: green; }    <Style x:Key="ScrollBarStyle" TargetType="ScrollBar">           <!-- Any other properties you want to set -->           <Setter Property="Template"> 2. Open your Silverlight project in VS 2008, and go to App.xaml and paste in the <Application.Resources> the style for the scroll viewer....
    May 27, 2021 3 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
  • Release

    RadControls for Silverlight 2.0 World Premier Webcast

    Join Telerik Chief Technical Evangelist Todd Anglin as he introduces you to Telerik's brand new suite of components for Microsoft's Silverlight 2.0. This is the first time the RadControls for Silverlight 2.0 have ever been shown in public, so don't miss your opportunity to be among the first to see what Telerik is doing in the Silverlight space.  Anyone considering Silverlight development in 2008 should attend this event to learn how leading .NET UI component vendor Telerik is going to make it easy to develop professional applications on this brand new framework with very little code. The webcast will be on Friday, December...
    May 27, 2021 1 min read
  • Web

    The Minesweeper Game Done in Silverlight 1.1

    Silverlight is a Blast! And instead of trying to convince you, we present you a well-known game in its silverlit clothes. The minesweeper! It adds to other games that in the past several weeks have shown the ease with which you can use Silverlight to create online interaction and games. It uses no fancy frameworks but underlines the simplicity and straightforwardness of Silverlight development. The number of mines and the rows/columns are configurable. To mark a mine - instead to click with the right mouse button, click with the left mouse button while holding the CTRL or SHIFT key. Try the game: http://blogs.telerik.com/demos/minesweeper/ Get the code here: The...
    May 27, 2021 1 min read
  • Web

    Shortcut on Silverlight 1.1

    Here at Telerik we are constantly working with the new cutting edge technologies. As Silverlight 1.1 alpha hit the road we were keen to research all the new things we can do with this new technology ... But there was one little problem - the lack of help and documentation. Our experience with WPF help us a lot to get into the new technology, but Silverlight is a new platform and it has its differences from WPF. So when we were contacted by the O'Reilly to write a book for Silverlight 1.1 we decided that this will be a very good opportunity...
    May 27, 2021 2 min read