Telerik blogs
  • Desktop WPF

    Styling RadChart for WPF and Silverlight gets easier

    It’s been awhile since the Q1 SP1 2010 release, but let me introduce you to a couple of new approaches to styling, which we added and failed to openly manifest. First, there is the ability to build your own palette of brushes, that will be applied to the RadChart: <telerik:RadChart x:Name="radChart1"> <telerik:RadChart.PaletteBrushes> <SolidColorBrush Color="Magenta" /> <LinearGradientBrush StartPoint="0,0" EndPoint="0.75,1"> <GradientStop Color="Red" Offset="0" /> <GradientStop Color="BlueViolet" Offset="0.5" /> <GradientStop Color="#af000000" Offset="1" /> </LinearGradientBrush> </telerik:RadChart.PaletteBrushes> </telerik:RadChart> .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }   Here is the result:   Using images is as...
    May 17, 2010
  • People

    12 days, 6 countries…

    I’m about to leave for a 12 day road trip that will take me to six different countries on three continents. My first stop, arranged by Adam Cogan and Telerik, is an Agile Seminar in Sydney, Australia. Should be fun, at least they already know what Rugby is and will get my sports references.  I will also be speaking on Silverlight at the Sydney .NET User Group. I’ll be doing my WCF walk through and then a RIA Services demo, about 2 hours, no slides, only Visual Studio. In addition to my presentation, I will also be demoing the new Telerik Data Services Wizard at the user group and show how...
    May 16, 2010
  • Release

    Telerik SalesDashBoard demo is now available for download

    Telerik Sales Dashboard demo has been updated and now it uses the latest official releases of RadControls for Silverlight 4 and OpenAccess ORM. The source code of the demos is available under your accounts at: Telerik Sales Dashboard for Silverlight Telerik Sales Dashboard for WPF We will greatly appreciate your...
  • Productivity

    Mocking property sets

    In this post, i will be showing how you can mock property sets with your expected values or even action using JustMock. To begin, we have a sample interface: public interface IFoo {     int Value { get; set; } } Now,  we can create a mock that will throw on any call other than the one expected, generally its a strict mock and we can do it like: bool expected = false;  var foo = Mock.Create<IFoo>(BehaviorMode.Strict);  Mock.ArrangeSet(() => { foo.Value = 1; }).DoInstead(() => expected  = true);    foo.Value = 1;    Assert.True(expected); Here , the method for running though our expectation for set is Mock.ArrangeSet , where we can directly set our expectations or can even set matchers into...
    May 14, 2010
  • Web

    Events in Task-It - Part 3

    Task-It Series This post is part of a series of blog posts and videos about the Task-It (task management) application that I have been building with Silverlight 4 and Telerik's RadControls for Silverlight 4. For a full index of these resources, please go here. One of the posts listed in the index provides a full source download for the application, and I will be referring to that source code in this post. Prior topics In my last 2 event-related posts I talked about passing information between components via events and using events in providing feedback to a user when time consuming operations are in progress. I also blogged recently...
    May 13, 2010
  • Desktop WPF

    Styling RadChart for WPF and Silverlight gets easier

    It’s been awhile since the Q1 SP1 2010 release, but let me introduce you to a couple of new approaches to styling, which we added and failed to openly manifest. First, there is the ability to build your own palette of brushes, that will be applied to the RadChart: <telerik:RadChart x:Name="radChart1"> <telerik:RadChart.PaletteBrushes> <SolidColorBrush Color="Magenta" /> <LinearGradientBrush StartPoint="0,0" EndPoint="0.75,1"> <GradientStop Color="Red" Offset="0" /> <GradientStop Color="BlueViolet" Offset="0.5" /> <GradientStop Color="#af000000" Offset="1" /> </LinearGradientBrush> </telerik:RadChart.PaletteBrushes> </telerik:RadChart> .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }   Here is the result:   Using images is as...
    May 17, 2010
  • People

    12 days, 6 countries…

    I’m about to leave for a 12 day road trip that will take me to six different countries on three continents. My first stop, arranged by Adam Cogan and Telerik, is an Agile Seminar in Sydney, Australia. Should be fun, at least they already know what Rugby is and will get my sports references.  I will also be speaking on Silverlight at the Sydney .NET User Group. I’ll be doing my WCF walk through and then a RIA Services demo, about 2 hours, no slides, only Visual Studio. In addition to my presentation, I will also be demoing the new Telerik Data Services Wizard at the user group and show how...
    May 16, 2010
  • Release

    Telerik SalesDashBoard demo is now available for download

    Telerik Sales Dashboard demo has been updated and now it uses the latest official releases of RadControls for Silverlight 4 and OpenAccess ORM. The source code of the demos is available under your accounts at: Telerik Sales Dashboard for Silverlight Telerik Sales Dashboard for WPF We will greatly appreciate your...
  • Productivity

    Mocking property sets

    In this post, i will be showing how you can mock property sets with your expected values or even action using JustMock. To begin, we have a sample interface: public interface IFoo {     int Value { get; set; } } Now,  we can create a mock that will throw on any call other than the one expected, generally its a strict mock and we can do it like: bool expected = false;  var foo = Mock.Create<IFoo>(BehaviorMode.Strict);  Mock.ArrangeSet(() => { foo.Value = 1; }).DoInstead(() => expected  = true);    foo.Value = 1;    Assert.True(expected); Here , the method for running though our expectation for set is Mock.ArrangeSet , where we can directly set our expectations or can even set matchers into...
    May 14, 2010
  • Web

    Events in Task-It - Part 3

    Task-It Series This post is part of a series of blog posts and videos about the Task-It (task management) application that I have been building with Silverlight 4 and Telerik's RadControls for Silverlight 4. For a full index of these resources, please go here. One of the posts listed in the index provides a full source download for the application, and I will be referring to that source code in this post. Prior topics In my last 2 event-related posts I talked about passing information between components via events and using events in providing feedback to a user when time consuming operations are in progress. I also blogged recently...
    May 13, 2010