Posts Tagged ‘xaml’

Binding to WebContext.Current in XAML

Posted: 6th October 2010 by thegrayzone in Development
Tags: ,

When using the RIA Services Business Application template in VS 2010 I noticed that the WebContext.Current object is added to the applications ResourceDictionary: private void Application_Startup(object sender, StartupEventArgs e) { this.Resources.Add(“WebContext”, WebContext.Current); … } As this is now stored as a resource you can easily bind to it, using the StaticResource extension. I’ve used it [...]

Change Opacity of Border on MouseOver

Posted: 8th September 2010 by thegrayzone in Development
Tags: ,

The Problem Recently I was looking for a way of changing the opacity of a Border control when the user mouse’s over it, and re-setting the opacity when the mouse leaves. I originally wanted to do it using VisualStateManagers but since there is no ControlTemplate this won’t work. The Solution The solution that I came [...]