some questions about MAUI and WPF MVVM
Posted: Mon Mar 27, 2023 8:08 am
Hello,
Our company would like to renew our TeeChart subscription, but we are unsure if the current issues with TeeChart have been resolved.
1. We would like to upgrade our existing product to MAUI, but we have not found a detailed introduction to MAUI on your website. We found some examples on GitHub, but we encountered an error at the line of chartView = new ChartView();
Additionally, the example has not been updated for several months. We would like to know if you support MAUI and if it is actively updated.
2. We used the CommunityToolkit.Mvvm to implement the MVVM pattern in WPF. However, we have encountered failures when binding series to TeeChart. We did not find a corresponding solution on your website, and we would appreciate it if you could provide us with an example.
3.We noticed that there is a "FastLine" class in the package, but we were not able to use it successfully. Could you provide us with an example of how to use the FastLine version?
Below is our usage example and error message:
Error: System.ArgumentException:“The value "" is not of type "TeeChart.Xaml.WPF.Series.Series" and cannot be used in this generic collection. Arg_ParamName_Name”
We look forward to hearing back from you.
Our company would like to renew our TeeChart subscription, but we are unsure if the current issues with TeeChart have been resolved.
1. We would like to upgrade our existing product to MAUI, but we have not found a detailed introduction to MAUI on your website. We found some examples on GitHub, but we encountered an error at the line of chartView = new ChartView();
Additionally, the example has not been updated for several months. We would like to know if you support MAUI and if it is actively updated.
2. We used the CommunityToolkit.Mvvm to implement the MVVM pattern in WPF. However, we have encountered failures when binding series to TeeChart. We did not find a corresponding solution on your website, and we would appreciate it if you could provide us with an example.
3.We noticed that there is a "FastLine" class in the package, but we were not able to use it successfully. Could you provide us with an example of how to use the FastLine version?
Below is our usage example and error message:
{
InitializeComponent();
if (DataContext is SpectrumViewModel viewModel)
{
Task.Run(async () =>
{
while (true)
{
await Application.Current.Dispatcher.InvokeAsync( () =>
{
SpecRbzChart.Series.Clear();
for (var i = 0; i < viewModel.Components.Count; i++)
{
if (!viewModel.Components[i].IsCheck) continue;
FastLine line = new FastLine();
line.DataSource = GlobalInfo.GetInstance()._gasRBZ[viewModel.Components[i].Name];
var color = ConstColor.ColorPairs[ConstColor.SpecNames[i]];
var mediaColor = Color.FromArgb(color.A, color.R, color.G, color.B);
line.Color = color;
SpecRbzChart.Series.Add(line);
}
});
await Task.Delay(2000);
}
});
}
}
Error: System.ArgumentException:“The value "" is not of type "TeeChart.Xaml.WPF.Series.Series" and cannot be used in this generic collection. Arg_ParamName_Name”
We look forward to hearing back from you.