← Back to all blogs


Posts tagged with 'wpf'

Live Chart in C1DataGrid the MVVM way

While developing user interfaces for applications it is often required to show data in either a tabular form or by using charts. And it is not unusual to show data in a combination of both chart and grid inside one container. An example is showing a progress value in a chart that is inside a datagrid cell. In this blog post I will show you how to create a chart inside a C1DataGrid using template columns. This can be done in both XAML and code behind.

C1ProjectUpdater Utility

The C1ProjectUpdater utility updates existing C# and VB projects by removing all specific version information for ComponentOne assemblies from the licenses.licx file and the .csproj and .vbproj files.  This allows the project to use any suitable version of ComponentOne assemblies for the updated project. The utility can update WinForms, ASP.NET, WPF and Silverlight projects.

Learn MVVM with Studio for WPF

If you missed today's webcast on MVVM and WPF then watch the video and download the presentation materials below. Thanks to everyone who attended - we had a great turnout!

C1Chart Dynamic Axis Binding in MVVM

When working with C1Chart in MVVM-style applications, it is sometimes possible that the chart in the view may not know the property it is binding to until runtime. For example, the C1Chart DataSeries' ValueBinding might be set during runtime. This is a trivial task unless we are using some design pattern such as MVVM. In this article I will walk you through creating dynamic axis binding in C1Chart for WPF according to MVVM.

Using C1Chart with MVVM

C1Chart for WPF can be used with the MVVM design pattern. The concept applied is the same as you would use for other data-aware controls. The ViewModel should expose the collection and binding properties and all these can easily be set in XAML of the Chart view. In this article I will walk you through the basic steps to bind the chart in MVVM pattern.

Charting Trendlines

Trendlines are an important tool used for analyzing data. They alert you with the general rate of increase or decrease of your Y data over your X data. A common scenario is measuring the rate change of sales price over time. Trendlines can be used to forecast data and therefore lend themselves perfectly to data analysis.

Filtering FlexGrid

C1FlexGrid for Silverlight and WPF now features Excel-like column filtering services. We've added this feature to the latest prerelease version of the control, and here is how it works. To use the new C1FlexGrid filtering feature, follow these steps:

Getting Started with Chart3D

3D is the hot new thing these days (at least in the movie industry). The 2010 v3 release of Studio Enterprise introduces the first real 3D chart control for Silverlight and WPF. A real 3D chart is one that graphs X, Y and Z coordinates, as opposed to 3D representations of 2D charts (which are nice to look at but can be hard to read).

Creating Multi-User Schedules with Grouping

Microsoft Outlook enables you to view multiple calendars (or schedules) side by side. This popular feature has inspired the new grouping functionality added to ComponentOne Scheduler for Silverlight/WPF in the 2010 v3 release.

View PDF Documents in Silverlight and WPF

Studio Enterprise 2010 v3 includes the new C1PdfViewer control - the first of its kind - for viewing PDF documents in Silverlight and WPF. This viewer has its own built-in PDF parser so it has no dependency on Adobe Reader. It's considered to be experimental in this first release, because not every feature of PDF is supported out of the box (for example: special fonts and input controls are not supported yet).

What’s New in 2010 v3

Studio for Silverlight and WPF 2010 v3 has landed and we are very excited about the new features and controls found in this version. This is one of the biggest releases we've had for the Silverlight and WPF studios when it comes to significant new controls and features. For instance, we have included 3 major new controls including a report viewer, pdf viewer and a 3D surface chart control! You can't find these controls anywhere else. We also enhanced ClearStyle throughout the entire suite which makes styling our controls much easier than any other Silverlight or WPF control you'll find.

CollectionView Filtering Made Easy

The ICollectionView interface is the primary data view object in WPF. It's essentially a view of the underlying data source that allows you to manipulate your data without actually modifying the underlying values. You define your own rules for sorting, filtering and grouping, etc. 

Creating DataTemplates in code using LINQ to XML

In the wonderful world of WPF development there are some things that are easier to do code and some things better left to XAML. For instance, in my previous webcast Charting 101, most of the work was done in C# code but the DataTemplates were done in XAML. I prefer to do most of my work in code so that it's all in one place, but creating a DataTemplate is something that is much easier to do in XAML. Plus, they can be loaded from code and assigned to other dynamic elements at runtime without much problem. But you might find yourself in a scenario where you need to completely generate a DataTemplate programmatically. How can you do it?

Charting 101 – Webcast

Watch the video and download the samples used in the webcast.

FlexGrid Update Available (Build 46)

This prerelease version adds several new methods and properties:

FlexGrid Migration to WPF and Silverlight

FlexGrid is a lightweight and flexible datagrid control with an easy-to-use object model. It offers unique features like true unbound mode, cell merging, flexible styling, multi-cell row and column headers as well as quick and simple printing. What really makes the FlexGrid unique is the power and simplicity of its object model and great performance.

Adding More Interaction to C1Chart (Drag Points)

The ComponentOne Chart control (WPF/Silverlight) provides four useful methods that help with custom user interaction. They allow you to determine which data point is nearest the mouse, as well as quickly convert plot coordinates to control coordinates and vice versa. Use any combination of these methods to unlock virtually any form of user-to-plot interaction imaginable.

Interactive Mapping Control for WPF

With ComponentOne's new Maps for WPF you get a viewing container control, C1Maps, for online maps. C1Maps provides smooth zooming, panning and mapping between screen and geographical coordinates. It can display map tiles from various sources, including Microsoft Live MapsTM or it can import geographic image files (KML). Then you can display various elements on top of the map layer positioned to specific geographic coordinates. Use the Items Layer for displaying arbitrary items like buttons, charts and labels. Use the Vector Layer for displaying vector data, like lines and polygons, whose vertices are geographically positioned. There's also the Virtual Layer which can be used for a virtualized display of items, meaning only items in view are downloaded from the server.

New DataGrid for WPF

Times are changing and so is Studio for WPF. In addition to the new C1FlexGrid control we've just ported the existing C1DataGrid from Studio for Silverlight to WPF in the 2010 v2 release. Back in 2007 we introduced the original C1DataGrid control for WPF which was heavily designer inspired. It had many visual and interactive features such as drag-and-drop grouping, a carousel view, built-in themes based on Microsoft Office products, and Excel-like horizontal and vertical splits. It was ahead of its time...at that time. But now, we here at ComponentOne have decided to port all of our Silverlight controls to the WPF platform so  we can deliver more controls with better performance and more functionality in much less time. This created a conflict because we already had a "C1DataGrid" (and C1Scheduler) in Studio for WPF. We ultimately decided to stick with the original Silverlight versions and thus move the old WPF versions to legacy, maintenance only mode. By porting controls from Silverlight to WPF we also strive to have more compatibility among our different platform studios. We now have C1DataGrid in Silverlight and WPF, we have C1FlexGrid in WinForms, Silverlight and WPF. We believe this not only improves the value of Studio Enterprise, but it creates a clearer migration path for components.