WPF

There are 5 entries for the tag WPF

Silverlight/WPF: Customizing the DatePicker Control

Source Code I’m working on a Silverlight scheduling application and wanted to make the DatePicker control from the Silverlight Toolkit look like the program icon on my iPod Touch. The calendar looks icon like a day calendar and dynamically displays the current date. I got the idea when I was looking at the calendar icon on the right-hand side of the DatePicker control. It was actually one of those accidental ideas. The control’s icon looks like a day calendar and displays the number ‘15’ – well the day I was looking at it happened to...

Xaml: Binding to the current DataContext

Sometimes instead of binding to a property of the current DataContext you want to bind to the actual DataContext itself. For example, I am using DelegateCommand<T> from Composite Application Library and needed to bind a command to perform an action on the current item in a ListBox. <UserControl x:Name="ViewRoot"> <ListBox ItemSource="{Binding Path=MyCollection}"> <Button Content="Delete" cmd:Click.Command="{Binding ElementName=ViewRoot, Path=DataContext.Delete} cmd:Click.CommandParameter={??????}...

Prism for Silverlight 2: Taking ‘Hello World' to a Whole New Level

The World's Most Over-engineered “Hello World” DemoDownload SourceI wanted to build a demo/guidance application for Silverlight that merges everything I want to accomplish in a Silverlight 2 application. These were my goals: WCF integration Design-time data binding Independent, decoupled modules Commanding support I chose to use the Composite Application Library for WCF/Silverlight (aka Prism 2) since it came out of the box with commanding support and a framework for pluggable modules. Prism 2 was developed by Microsoft's Patterns and Practices (PnP) group.I've posted a copy of my solution for anyone who's interested in...

In Place List Editing With WPF

I've been working in WPF for the last month and learning some pretty cool stuff. I really like it. But then I spend a couple days trying to something that would take me 2 minutes in an ASP.NET Web Form and I want to swallow a bullet. I know there is just a learning curve and the more I use it and I'll be able to do it just as quickly. But as much as I love learning new stuff there are days I really long for less new technology to learn.I had a list of items displaying quite nicely...

Wrestling with XML Namespaces and WPF

I have been using XML for internal data formats for many years. Mostly for the purpose of transforming data using XSLT. So while I've been working with XML for a long time, I have never had the need to work with namespaces other than those that were standard with XSLT.But this weekend I had my first real run-in with namespaces and I figure I'll share a bit of what I learned here.I am planning on using Amazon Web Service's S3 service to store what I'm hoping will be a large number of images for a startup I'm working on. In...

 

 

Copyright © Mark J. Miller