Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
PropertyGridEditorDefinition: TargetType
posted

Hi
Is it possible, to define multiple TargetTypes (e.g. comma seperated) in one EditorDefinition?

 <ctrls:AtlaxyPropertryGrid x:Name="xamPropertyGridInParam" Margin="10,0" Visibility="Visible"
                              SelectedObject="{Binding Path=Detail.PropertyPageValue}" DescriptionAreaVisibility="Visible" FilterAreaVisibility="Collapsed" IsCategorized="False">
                                <ig:XamPropertyGrid.InputBindings>
                                    <KeyBinding Command="{x:Static command:RelayCommands.SaveData}" CommandParameter="hallo" Modifiers="Ctrl" Key="S" />
                                </ig:XamPropertyGrid.InputBindings>
                                <ig:XamPropertyGrid.EditorDefinitions>
                                    <ig:PropertyGridEditorDefinition
                                        TargetType="{x:Type sys:String}"
                                        EditTemplate="{StaticResource SpinIntEditor}"/>
                                    <ig:PropertyGridEditorDefinition
                                        TargetType="{x:Type sys:Double}"
                                        EditTemplate="{StaticResource SpinIntEditor}"/>
                                </ig:XamPropertyGrid.EditorDefinitions>
</ctrls:AtlaxyPropertryGrid>                        

Regards

Parents
No Data
Reply
  • 34430
    Suggested Answer
    Offline posted

    Hello Stephan,

    I have been investigating into your requirement in this case, and at the moment, it is not possible to define multiple types for a single TargetType property. You need to create multiple PropertyGridEditorDefinition elements for this.

    If you would like to see the ability to define multiple target types for a single PropertyGridEditorDefinition, I would recommend suggesting a new product idea to have this implemented. You can do this at our WPF Ideas Site, here. This will place you in direct communication with our product management teams who plan and prioritize upcoming features and development based on community and user feedback.

    Please let me know if you have any other questions or concerns on this matter.

Children