ComponentOne .NET 6 Support Updates for 2022

ComponentOne controls fully support .NET 6 across each platform as of our 2021 v3 release. Part of this support process has included porting all .NET Framework components to be based upon .NET 6 for WinForms and WPF. The release of these controls has been staggered every update for the past two years (since we first started to migrate controls to .NET 5). In this update below, we share the current status of each ComponentOne WinForms and WPF control for .NET 6, which final controls we plan to port in 2022 and demonstrate how you can work around using .NET Framework controls in .NET 6 applications.

.NET 6 WinForms Controls Status

Below is the list of WinForms controls supported in .NET 6, as of May 2022, and which controls are still planned for later in the year.

 

.NET 6 Support Ready

.NET 6 Support Planned 

Not Planned

  • FlexChart
  • FlexGrid
  • FlexPie
  • FlexPivot
  • FlexRadar
  • FlexReport
  • FlexViewer
  • Sunburst
  • TreeMap
  • C1Bitmap
  • C1Button
  • C1CalendarView
  • C1CheckBox
  • C1CheckList
  • C1ColorPicker
  • C1ComboBox
  • C1ContextMenu
  • C1DashboardLayout
  • C1DataFilter
  • C1DbNavigator
  • C1DateEdit
  • C1DockingTab
  • C1Document
  • C1DropDownControl
  • C1DX
  • C1ExpressionEditor
  • C1FilterEditor
  • C1FontPicker
  • C1GanttView
  • C1Gauge
  • C1InputPanel
  • C1Label
  • C1Map
  • C1MaskedInput
  • C1Menu
  • C1NumericEdit
  • C1PdfDocumentSource
  • C1PictureBox
  • C1PrintDocument
  • C1PrintPreview
  • C1RangeSlider
  • C1Ribbon
  • C1RulesManager
  • C1Scheduler
  • C1Sparkline
  • C1SpellChecker
  • C1SplitButton
  • C1SplitContainer
  • C1SuperTooltip
  • C1TextBox
  • C1Themes
  • C1ToolBar
  • C1TouchToolkit
  • C1TreeView
  • C1TrueDBGrid
  • C1Zip
  • C1Chart3D
  • C1Combo
  • C1Editor - 2022 v2
  • C1Excel
  • C1FinancialChart
  • C1List
  • C1MultiSelect
  • C1PdfDocument
  • C1RadialMenu
  • C1Sizer - 2022 v2
  • C1SizerLight
  • C1TagEditor
  • C1TileControl
  • C1Win7Pack
  • C1Calendar - use C1CalendarView
  • C1Chart - use FlexChart
  • C1DataSource
  • C1DynamicHelp
  • C1FlexGridClassic
  • C1LiveLinq
  • C1NavBar - use C1Accordion (2022 v2)
  • C1OutBar - use C1Accordion (2022 v2)
  • C1Report - use FlexReport
  • C1ReportDesigner - use FlexReportDesigner
  • C1TopicBar
  • C1Word

.NET 6 WPF Controls Status

Below is the list of WPF controls supported in .NET 6, as of May 2022, and which controls are still planned for later in the year.

.NET 6 Support Ready

.NET 6 Support Planned 

Not Planned

  • FlexChart
  • FlexGrid
  • FlexPie
  • FlexPivot
  • FlexRadar
  • FlexReport
  • FlexViewer
  • C1Accordion
  • C1ActivityIndicator
  • C1Barcode
  • C1Calendar
  • C1ColorPicker
  • C1ComboBox
  • C1ContextMenu
  • C1DataFilter
  • C1DataPager
  • C1DatePicker
  • C1DateTimePicker
  • C1DockControl
  • C1DockPanel
  • C1Document
  • C1DragDropManager
  • C1DropDown
  • C1Dx
  • C1Expander
  • C1FilePicker
  • C1FilterEditor
  • C1FinancialChart
  • C1HyperlinkButton
  • C1ListView
  • C1Maps
  • C1MaskedTextBox
  • C1Menu
  • C1MenuList
  • C1MultiSelect
  • C1NumericBox
  • C1PdfDocumentSource
  • C1ProgressBar
  • C1PropertyGrid
  • C1RadialMenu
  • C1RangeSlider
  • C1Ribbon
  • C1RichTextBox
  • C1Scheduler
  • C1Sparkline
  • C1SpellChecker
  • C1SplitButton
  • C1TabControl
  • C1TagEditor
  • C1TimeEditor
  • C1TreeMap
  • C1TreeView
  • C1Window
  • C1WrapPanel
  • C1Zip
  • Sunburst
  • C1Chart3D
  • C1ExpressionEditor
  • C1FlexSheet
  • C1GanttView
  • C1Gauges
  • C1InputPanel
  • C1Rating
  • C1Themes
  • C1Binding
  • C1Bitmap
  • C1Book
  • C1Carousel
  • C1Chart - use FlexChart
  • C1CheckList - use ListView
  • C1DataGrid - use FlexGrid
  • C1DataSource
  • C1DocumentViewer - use FlexViewer
  • C1Excel
  • C1HyperPanel
  • C1ListBox - use C1ListView
  • C1MediaPlayer
  • C1OrgChart
  • C1OutlookBar - use C1Accordion
  • C1PdfDocument
  • C1PdfViewer - use FlexViewer
  • C1ReportViewer - use FlexViewer
  • C1Tile
  • C1TileView
  • C1Toolbar - use C1Ribbon
  • C1Word

How to Use .NET Framework Controls in a .NET 6 Application

There may be situations where you can use an older .NET Framework library in a .NET 6 application. There are a few issues to consider:

  1. The .NET 6 Visual Studio designer was rewritten using .NET Core, so it doesn't support older designers based on .NET Framework.
  2. The final published application will depend on .NET Framework, which may not be ideal in all use cases.
  3. For ComponentOne controls, in most scenarios, you will not be able to mix .NET 6, and .NET Framework controls due to shared namespaces.

The second issue has no workaround, but there are ways to work around the first issue. If you don't need to use the designer in Visual Studio, then you need not worry - the .NET Framework controls fully work at runtime in .NET 6. However, to use the designer, you can add a .NET Framework Project file to your solution that includes your .NET 6 Project and then link the Form files from the .NET 6 to the .NET Framework project. Then open the Forms in the Framework project to get the working designer, and saved changes are automatically available for your actual .NET 6 project.

Here are the steps to creating the .NET Framework project and linking the Form:

  1. Open your solution that contains the .NET 6 project
  2. Add new WinForms .NET Framework Project
  3. Remove the Form.cs file if it will conflict with your .NET 6 form class
  4. Right-click .NET Framework Project and select Add - Existing Item
  5. Browse to the Form file (i.e., Form.cs) from your .NET 6 project and select - Add As Link

WinForms Topic Bar

This should also link all related files like x.Designer and x.Resx. Next, you must add references to the same ComponentOne .NET Framework libraries in both the .NET 6 and .NET Framework projects.

Now, you can open your Form from within the .NET Framework project to take advantage of the designer to build your UI.

Forms Design

You can download the sample using C1TopicBar. Finally, you may need to adjust a few things manually:

  • If the ComponentOne control tries to create a .resx file at design time, you'll need to add that file to the .NET 6 project, remove it from .NET Framework, and re-link it.
  • In the code behind your form, add "using System.Windows.Forms;" (plus any other libraries you will need) to the top of the file. These are not required in .NET 6 but will be needed for backward compatibility.

If you are using any unplanned controls and want to see them in .NET 6, let us know in the comments. We have received some feedback already, and more feedback helps us prioritize which controls to migrate next.

Tags:

comments powered by Disqus