PropertyGrid Double-Clicking Enhancements

by Avatar Bill Henning (Actipro)
Monday, May 5, 2014 at 8:29am

PostBannerWPFControlsDevNotes

Our WPF PropertyGrid control allows you to embed an object editing interface into your applications that can make use of any type of custom editor, including our own powerful WPF Editors controls.

In today's post I wanted to review a new small, but very useful, enhancement coming to PropertyGrid in the next maintenance release: the ability to double click on a name cell and cycle through available standard values.

Example Usage

Let's have a look at how this works.

PropertyGridDoubleClick1

Here we have a PropertyGrid and you'll notice that the CharacterCasing property has standard values of Normal, Lower, etc.

PropertyGridDoubleClick2

By double-clicking on the name cell, the value cycles to the next value in the standard values list. 

Summary

This new feature makes it quick and easy for end users to cycle through standard values without having to show a drop-down list.  It will appear in the next maintenance release of our WPF controls.

TaskDownload TaskLiveDemo TaskBuyNow

HorizontalListBox Control

by Avatar Bill Henning (Actipro)
Friday, May 2, 2014 at 7:08am

20141ProductNotesBlogPostBanner

Yesterday we posted about a UniformGrid panel control that was being added to our WinRT/XAML and Silverlight Shared Libraries.  This sort of panel is already available in native WPF so no implementation was necessary there.

In today's post, I'd like to show another new control coming to our WPF, Silverlight, and WinRT/XAML control platforms: HorizontalListBox.

Features

The HorizontalListBox control is… wait for it… a standard ListBox that uses a horizontal layout.  In fact it uses a UniformGrid panel with a single row specification to achieve its layout.  This has the benefit of ensuring that each item in the list has an equal width.

This sort of design is great for toggle sorts of controls where there are two or more values from which to choose.  In multi-selection mode, you can also toggle each item individually.

Let's have a look of the WinRT version:

HorizontalListBoxWinRT

Here we have a couple HorizontalListBox controls in place.  One for selecting gender and one for doing multiple selection of days of the week.  Everything is simple and touch-friendly.  Any content can be rendered in the list box items as well.

And here is the WPF version:

HorizontalListBoxWPF

It's the same exact control and API but here it renders in the current theme (in this case Metro Light) via our WPF Themes infrastructure.

Best of all, since this restyled control simply inherits the native ListBox, you have all the features available to you that come from the base native ListBox control.  Our control has some enhancements such as Left/Right arrow key navigation too.

Summary

The HorizontalListBox control will be available in the next 2014.1 maintenance releases of our WPF, Silverlight, and WinRT/XAML Shared Libraries, and will be licensed for use by any of our customers of those control platforms.

TaskDownload TaskLiveDemo TaskBuyNow

UniformGrid Coming to WinRT and Silverlight Controls

by Avatar Bill Henning (Actipro) - 1 comment
Thursday, May 1, 2014 at 7:12am

PostBannerWinRTControlsDevNotes

We've been working on some new controls and while developing one in particular that we'll post about next time, we had a need for a UniformGrid panel.  The UniformGrid panel is already available in native WPF, but isn't available in WinRT/XAML or Silverlight. 

For the next maintenance releases of our WinRT/XAML and Silverlight controls, we rolled our own UniformGrid that has the same properties as the WPF version, making it easy to reuse code across platforms.

Features

The UniformGrid automatically lays out items in a grid such that the row and column counts are the same, and each item in the panel has the same size.

UniformGrid2x2

In this screenshot, the panel has four items in it.  Thus a 2x2 grid is created to display them all.

UniformGrid3x3

In this screenshot, we have seven items so a larger grid is necessary.  A 3x3 grid is used instead.

You also have the option to specify a certain number of rows or columns that should be used.

UniformGrid2Columns

In this screenshot, we have specified that two columns should be used.  The panel therefore creates a 2x4 grid (two columns and four rows).  Note that regardless of layout, items always appear in the same size.

You can see that UniformGrid provides for a lot of interesting layout scenarios, especially when you tell it a certain number of rows or columns to use.

Summary

The UniformGrid panel will be available in the next maintenance release of our WinRT/XAML and Silverlight Shared Libraries and is licensed for use by any of our customers of those control platforms.

Our next blog post will show off another new control coming to our XAML platforms that makes use of this new panel.

TaskDownload TaskLiveDemo TaskBuyNow

Windows Workflow Designer SyntaxEditor Integration Updates

by Avatar Bill Henning (Actipro)
Tuesday, April 22, 2014 at 7:07pm

WpfControlsTipsBlogPostBanner

Last year, we created a sample for showing how a hosted Windows Workflow Designer instance could be integrated with Actipro WPF controls within a custom WPF application to provide a very elegant interface for end users. 

We have continued enhancing it and here's what it currently looks like:

WorkflowDesigner

Our Docking/MDI product is used to provide the tool window and multiple document interface.  Our SyntaxEditor code editor control, in single line edit mode, is injected as a custom expression editor.  When you combine SyntaxEditor with our .NET Languages Add-on, you are able to have it support powerful IntelliPrompt completion lists.  For instance, in the screenshot above, you can see the itemCount variable is showing up in the completion list since it was declared below.

In recent updates, we've:

  • Updated App.OnStartup code to theme native WPF controls using Actipro themes.
  • Added a Menu above the designer with options for closing the window, and toggling the tool window visibility.
  • Added a custom completion ListBox implementation to work around issue where ListBoxItem would steal focus on click and Workflow Designer thought that it then had to close the expression editor.

When you put it all together, it's very easy to integrate Actipro WPF controls with rehosted Windows Workflow Designer instances in your applications.  It only takes a few minutes to get up and running, and once you do, the result is well worth the time.

Summary

If you rehost the Windows Workflow Designer in your WPF apps and would like our example, please contact us and we'll be happy to share it with you!

For those customers who downloaded either of the prior versions, this update is at the same URL as before.

TaskDownload TaskLiveDemo TaskBuyNow

JSON Language Coming to WinForms SyntaxEditor

by Avatar Bill Henning (Actipro)
Tuesday, April 8, 2014 at 2:07pm

PostBannerSyntaxEditorDevNotes

We are adding a JSON language implementation to the WinForms SyntaxEditor samples for the next maintenance release.

Features

JSON is a lightweight data-interchange format that is a subset of JavaScript syntax, and is commonly used with many web technologies.  With the new syntax language, you'll be able to provide a great editor/viewer for JSON data.  Here's a screenshot:

JSONWinForms

The JSON syntax language has these features:

  • Syntax highlighting
  • Automatic code outlining
  • Smart indent
  • Delimiter (bracket) highlighting

Summary

This new syntax language example will be included in the next WinForms Controls maintenance release.

TaskDownload TaskLiveDemo TaskBuyNow