Blink of expandable items on editable items collection change

Grids for WPF Forum

Posted 10 years ago by Konstantin - Edifecs
Version: 13.1.0581
Platform: .NET 4.0
Environment: Windows 7 (64-bit)
Avatar

Hi,

I use property grid with editable collection of expandable items. When i add new item to collection existing expandable items blink.

Here is sample code:

<Window x:Class="ActiProTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:propgrid="clr-namespace:ActiproSoftware.Windows.Controls.PropertyGrid;assembly=ActiproSoftware.PropertyGrid.Wpf"
xmlns:propgridPrimitives="clr-namespace:ActiproSoftware.Windows.Controls.PropertyGrid.Primitives;assembly=ActiproSoftware.PropertyGrid.Wpf"
Title="MainWindow" Height="350" Width="525">
<Window.Resources>
<Style TargetType="{x:Type propgridPrimitives:PropertyGridDataAccessorItem}">
<Setter Property="IsExpanded" Value="True"/>
</Style>
</Window.Resources>
<propgrid:PropertyGrid x:Name="propGrid" SelectedObject="{Binding}" CollectionDisplayMode="EditableInline"/>
</Window>

 

[TypeConverter(typeof(ExpandableObjectConverter))]
public class ExpandableItem
{
  public String Name { get; set; }
  public bool Visible { get; set; } 

  public ExpandableItem()
  {
    Name = "New Item";
    Visible = true;
   }
}
	
public class DataContext
{
  private ObservableCollection<ExpandableItem> _items; 

  public ObservableCollection<ExpandableItem> Items
  {
	get
	{
          return _items ?? (_items = new ObservableCollection<ExpandableItem>
	  {
		new ExpandableItem()
	        {
		  Name = "John",
		  Visible = true
		},
		new ExpandableItem()
		{
		  Name = "Silver",
		  Visible = true
		},
	        });
	   }
	}
   }
 
public partial class MainWindow : Window
{
  public MainWindow()
  {
    InitializeComponent();
    DataContext = new DataContext();
  }
}

 

 

 

Thanks

[Modified 10 years ago]

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello, I'm on the latest version and if I click the add button, I see the remove buttons blink very fast but that's it.  The rest looks good and doesn't flicker at all.  Do you see the same with the latest version?


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.