Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Created Unassigned: array[][][] Resets to default after editing in PropertyGrid [22463]

$
0
0
When editing the last array in an array[][][], all values of that array will be reset to default. (In a int[3], it will become {0, 0, 0}).

I have attached a video to make the issue more clear.

Here's the code I used in the video:

public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
PropertyGrid.SelectedObject = new MyClass();
}
}
public class MyClass
{
public MyClass()
{
MyArray = new double[1][][];
MyArray[0] = new double[1][];
MyArray[0][0] = new double[1];
MyArray[0][0][0] = 123;
}

public double[][][] MyArray { get; set; }
}

This was tested in version 2.8.0 of the toolkit because newer versions have a null reference error.

Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>