XamlPadX (extended)

XamlPad is a nice tool for viewing how the Xaml looks like and is used quite a lot for repro’ing bugs and debugging to some extent. :)… I thought it would be nice to extend it as some of the readers have asked abt it…. so here are some of the extensions that i have…

14

Split Button in WPF

One of the commonly requested controls in WPF is the split button… its pretty simple to implement it in WPF… heres my take on it with a slight twist… 😉 In the control template of the button, I have the following – the TextBlock and the Menu being the additions.. <ContentPresenter …/><TextBlock Grid.Row=“0“ Grid.Column=“1“ Text=“|“…

5

Vista gadgets using WPF

In vista, the sidebar provides valuable real estate and it would be nice to have some WPF stuff in there… You can use IFrame to host the xaml/xbap file as below<html> <head>               <style>                             body {                                           width:130;                                           height:130;                                           padding:5;                                           margin:0;                                           background:black;                             }              </style> </head><body>        <iframe height=”130″                 width=”130″…

6

Customized RichTextBox

One of the devs from the Editing side Prajakta has just started blogging and the latest post has some nice code on customizing the RichTextBox. The customized RichTextBox has the following behavior:1> Plain text input just like the textbox2> autoformat specific words (like email aliases)3> custom context menus (changes when opened over formatted text) To…

0

Cool WPF app – Picture board

Just came across a cool WPF app created by Michael Emmons on his blog. Take a look 🙂 (exe attached) “It takes a keyword(s), grabs images off of Flickr.com which match those keywords, and displays the photos on the cork board. The images can be moved around the cork board and additional layers of images can be…

2

Xaml Inline coding

One interesting aspect is Xaml is that you can have inline code…. the syntax is as below <Window x:Class=“WindowsApplication1.Window1“xmlns=“http://schemas.microsoft.com/winfx/2006/xaml/presentation“xmlns:x=“http://schemas.microsoft.com/winfx/2006/xaml“Loaded=“Window1_Loaded“><x:Code>      <![CDATA[              void Window1_Loaded(object sender, RoutedEventArgs e)              {                   this.Title=”yoohoo”;                   TextBox tb = new TextBox();                   tb.Text=”hello world”;                   this.Content=tb;               }       ]]></x:Code></Window>    

2

test page

Share this post   Share this post   Share this post   .TagCloud, .SidebarTagCloud{list-style-type: none;font-size: 1em;line-height: 120%;} .Tag1, .Tag2, .Tag3, .Tag4, .Tag5, .Tag6 {display: list-item;font-size: 1.2em;} .TagCloud a:link, .TagCloud a:visited, .TagCloud a:active, .SidebarTagCloud a:link, .SidebarTagCloud a:visited, .SidebarTagCloud a:active{margin: 0;color: inherit;font-size: 1em;font-weight: bold;text-decoration: none;}   Share this post: Email | Digg! | del.icio.us | Reddit | Kick It |…

0

Fix for Opening dynamically created context menus on ListviewItems

First of all, a big thanks to all your feature requests on my previous post… 🙂 .. You can still post your comments/feature requests… Listview is a nice control to use and I have been styling this control to get some crazy results. One of the glitches I came across (and was also noticed by…

2