Josh Smith Rss feed

  • Infragistics WPF Controls in a Composite Application

    Infragistics recently released the NetAdvantage for Composite Application Library (NCAL) on CodePlex. NCAL enables Infragistics WPF controls to be used in a composite application, based on Microsoft’s Composite Application Library . At this time, the...

  • Putting Silverlight Commands to Use

    In the current release of Silverlight, we have the ICommand interface, which defines a command object, just like in WPF. However, unlike WPF, it seems that Silverlight does not have any built-in support for actually using ICommand objects just yet. This...

  • How to avoid typing FieldLayout XAML

    Here's a trick that was inspired by a recent question in a forum post . XamDataGrid will automatically create FieldLayouts and Fields for you, based on the type of data source you give it. If you want to customize the layouts or fields, you can do...

  • Introducing a new XamDataGrid Behavior: DisplayAdorningEditors

    This blog post reviews a technique that can vastly reduce the amount of screen real estate required to display your application’s data in XamDataGrid. Introduction In my previous post on this blog, I showed how to display an extra field of data in the...

  • Adorning XamDataGrid with a Popup Editor

    In a recent post on the XamDataGrid Forum someone asked how to add an additional editor to a cell when it goes into edit mode. The scenario is that the data source objects have twenty four numeric properties, and each numeric property is accompanied by...

  • Emulating the IsSynchronizedWithCurrentItem Behavior in XamDataGrid

    In WPF programming, you often set a list control’s IsSynchronizedWithCurrentItem property to true so that selecting an item in the list will cause the rest of the UI to treat that item as the “current” item to display. In addition, by setting that property...

  • Display Multiple Icons in a XamDataGrid Field

    This blog post demonstrates how to, optionally, display multiple icons/images/indicators in an UnboundField of the XamDataGrid. This is a common use case of a data grid control, where one column displays multiple status values. In this example, we have...

  • Adding CheckBoxes to the Record Selectors in XamDataGrid

    This blog post explains how to add CheckBox controls to the record selectors in XamDataGrid. We will also see how to add a CheckBox to the header area above the record selectors, so that you can have Check All / Uncheck All behavior. You can download...

  • Article about xamSalesManager

    In the recently released NetAdvantage for WPF v8.1, the xamShowcase application contains a new sample called xamSalesManager. I was the Developer on that project, and worked closely with some talented Visual Designers from the Experience Design Group...

  • Synchronizing Field Widths between FieldLayouts in XamDataGrid

    This blog post shows how to force the width of Fields in a child FieldLayout to have the same width as the Fields in the parent/master FieldLayout. This is a stopgap solution, useful only until XamDataGrid has native support for this feature. The desired...

  • Data Binding the IsVisible Property of ContextualTabGroup

    XamRibbon allows you to have groups of tabs that only display when the application is in a certain state or condition. In other words, it offers context-sensitive tab groups. You can use them by adding ContextualTabGroup objects to the ContextualTabGroups...

  • Persisting XamDataGrid Field Widths between Runs of an Application

    XamDataGrid has many great features, but as of NetAdvantage for WPF v7.2, it does not yet provide a generic way to save and load user settings. A common requirement for a grid-centric application is that the columns/fields in the grid retain their widths...

  • Putting a CheckBox in the cells of an UnboundField of XamDataGrid

    This blog post demonstrates the correct way to put a CheckBox into the cell of an unbound field for each row in a XamDataGrid. The demo application allows the user to dynamically add and remove customers from a 3D Pie Chart, to compare their total sales...

  • Binding a XamDataGrid Field Property

    I recently needed to bind the Visibility of a Field in a XamDataGrid to a property on my ViewModel. I wanted to provide a way for the user to show/hide a column of images in the data grid. My ViewModel object is a POCO (Plain Old Clr Object) that implements...

  • Using a ViewModel to harness the power of the WPF TreeView

    Microsoft's WPF TreeView control can be very difficult to work with, if you try to use it the same way that you program against a Windows Forms TreeView. WPF's TreeView is much more feature-rich and powerful, such as having support for data binding...