Hi,
I am getting the same crash with v3.0 with the CollectionControlDialog
It happens when I click on the List Property inside the Property grid.
<xctk:PropertyGrid Grid.Column="1"
Mary
I am getting the same crash with v3.0 with the CollectionControlDialog
It happens when I click on the List Property inside the Property grid.
<xctk:PropertyGrid Grid.Column="1"
x:Name="propertyGrid"
ShowSummary="True"
IsCategorized="True"
ShowAdvancedOptions="False"
SelectedObject="{Binding ElementName=PadListBox, Path=SelectedItem}"
SelectedObjectName="{Binding ElementName=PadListBox, Path=SelectedItem.ToString}"
Margin="5"
UpdateTextBoxSourceOnEnterKey="True"
>
<xctk:PropertyGrid.EditorDefinitions>
<xctk:EditorTemplateDefinition>
<xctk:EditorTemplateDefinition.TargetProperties>
<sys:String>DrillOutline</sys:String>
</xctk:EditorTemplateDefinition.TargetProperties>
<xctk:EditorTemplateDefinition.EditingTemplate>
<DataTemplate>
<Button Content=" ... " Click="DrillOutlineButton_Click" />
</DataTemplate>
</xctk:EditorTemplateDefinition.EditingTemplate>
</xctk:EditorTemplateDefinition>
</xctk:PropertyGrid.EditorDefinitions>
</xctk:PropertyGrid>
CollectionControlDialog collectionControlDialog = new CollectionControlDialog(); collectionControlDialog.ItemsSourceType = typeof(DTShapeCollection);
collectionControlDialog.ItemsSource = selectedPad.Drill.DrillOutline;
collectionControlDialog.NewItemTypes = new List<System.Type>() { typeof(DTCircle), typeof(DTEllipse), typeof(DTRectangle) };
if (collectionControlDialog.ShowDialog() == true)
thanksMary