Click here to Skip to main content
Licence CPOL
First Posted 23 Aug 2010
Views 5,627
Bookmarked 1 time

OutlookBar for WPF & Silverlight

By | 23 Aug 2010 | Technical Blog
A while ago I wrote a CodeProject article on how to re-style a TabControl to look like the Outlook navigation bar/pane… The article had a good response and loads of people were asking for a Silverlight version. I decided to take the stripped down version of that control (without all the theme
A Technical Blog article. View original blog here.[^]

A while ago I wrote a CodeProject article on how to re-style a TabControl to look like the Outlook navigation bar/pane… The article had a good response and loads of people were asking for a Silverlight version. I decided to take the stripped down version of that control (without all the theme stuff) and create a custom control that does this out of the box! I then spend some time to make sure that it works in WPF & Silverlight

To use it is extremely easy, just create a new OutlookBar

<ob:OutlookBar>
    
</ob:OutlookBar>  

And manually add new OutlookBarItems

<ob:OutlookBar>
    <ob:OutlookBarItem Title="Blue (Title)" Header="Blue">
        <Border Background="Blue">
            <TextBlock Text="Blue" />
        </Border>
    </ob:OutlookBarItem>
    <ob:OutlookBarItem Title="Yellow (Title)" Header="Yellow">
        <Border Background="Yellow">
            <TextBlock Text="Yellow" />
        </Border>
    </ob:OutlookBarItem>
    <ob:OutlookBarItem Title="Lime (Title)" Header="Lime">
        <Border Background="Lime">
            <TextBlock Text="Lime" />
        </Border>
    </ob:OutlookBarItem>
</ob:OutlookBar>  

This control can also be data-bound (because it derives from ItemsControl) and is 100% MVVM-able

PS. I will also be releasing some default themes for it pretty soon!!!

Here is the source

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

rudigrobler



South Africa South Africa

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Mobile
Web02 | 2.5.120517.1 | Last Updated 23 Aug 2010
Article Copyright 2010 by rudigrobler
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid