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

New Post: PropertyGrid error when opening collection

$
0
0
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"
                        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)
thanks
Mary

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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