Clipping of child elements

On the forums I saw this interesting problem where there was a need to round the corners of a stackpanel inside a border with cornerradius set… The top is what you get and the bottom image is what you want. The simplest thing to do here is to set the padding on the border so…

4

Split ButtonMenu ItemAutomation

I got a couple of queries from the readers asking if I could provide a slightly non-trivial sample of using automation. So I created a split button user control which looks something like this If there are no items then you get a checkable button. The items are created in a popup and are generated…

2

Xbaps using Cookies

Earlier on I had written an app, BlogPadm which was fulltrust and the writer used Google Data API to write the content to Blogger.com. However, when you create an xbap version of it, a problem arises in that you cannot make WebRequests outside site of origin and hence, the xbap version of the above failed to…

5

Another MindMapping Tool

A month ago, I was browsing through different blogs and came across Denis Vuyka’s blog post on connecting objects on the canvas… Nice post… Being an avid fan of mind maps, that was the natural extension to the library that he created. Check it out   There are 3 types of objects which are basically the same… they…

4

MindMap app using Hyperbolic tree

I recently came across a Hyperbolic tree implementation on codeplex using WPF and thought that a nice usage of it could be in writing a mind map creating application…. I tweaked some of the original code and got a tree with editable nodes… Its been laying around for sometime, so I thought it best to put it…

2

.NET Source code

Now thats what I call WOW … For .NET developers this is like getting hold of the holy grail 🙂 … “We’ll begin by offering the source code (with source file comments included) for the .NET Base Class Libraries (System, System.IO, System.Collections, System.Configuration, System.Threading, System.Net, System.Security, System.Runtime, System.Text, etc), ASP.NET (System.Web), Windows Forms (System.Windows.Forms), ADO.NET (System.Data), XML…

1

Testing using WPF UI automation

One question that often pops up among WPF app developers is UI testing… WPF enables this scenario through a new accessibility framework. Some useful resources from mdeavey’s post  Overview Using UI Automation UI Spy Stress Test using UI Automation (new link : here) Unit Testing WPF controls with Automation Peers Instantiating a WPF control from an NUnit…

4

3.5 features: Viewport2DVisual3D

Viewport2DVisual3D …. this new feature makes things a lot easier in the 3D world.. What this enables is putting interactive 2D on 3D.  This makes things like having a textbox in 3D a breeze…  <Viewport2DVisual3D x:Name=”vp2d_multiple_children” Geometry=”{StaticResource mesh}”>             <Viewport2DVisual3D.Material>                         <DiffuseMaterial Viewport2DVisual3D.IsVisualHostMaterial=”True” Brush=”White”/>             </Viewport2DVisual3D.Material>             <TextBox />   </Viewport2DVisual3D> One other thing is…

9

3.5 Features: Enabled hyperlinks in RichTextBox

hmmm… that was one often requested feature. So to enable hyperlinks in RichTextBox all that is needed is to set the property IsDocumentEnabled on the RichTextBox. Type the following in XamlPadX and you have the hyperlink navigation working. <RichTextBox IsDocumentEnabled=”True” xmlns=’http://schemas.microsoft.com/winfx/2006/xaml/presentation’ xmlns:x=’http://schemas.microsoft.com/winfx/2006/xaml’>         <FlowDocument>                <Paragraph>                        <Hyperlink NavigateUri=”http://club.live.com”>Live Games</Hyperlink>                </Paragraph>         </FlowDocument> </RichTextBox…

3

3.5 features: Filtering text with IME languages

So 3.5 beta2 is out and it has quite a lot of features. So one of them is the filtering mechanism for IME languages. This was not a problem in the english and other non-IME languages. The problems were the events associated with IME input – TextInputStart/Update/input… A major concern was that it was not…

0