Quantcast
Viewing all articles
Browse latest Browse all 4964

New Post: PropertyGrid and UpdateSourceTrigger=PropertyChanged not working

Hi,

Thanks for your reply. Using the proposed template definition it's working fine. For those who might want to apply it to not only named properties, but based on the type of the property:
<tk:PropertyGrid.EditorDefinitions>
                <tk:EditorTemplateDefinition >
                    <tk:EditorTemplateDefinition.TargetProperties>
                        <tk:TargetPropertyType Type="{x:Type s:Int32}" />
                        <tk:TargetPropertyType Type="{x:Type s:String}" />
                    </tk:EditorTemplateDefinition.TargetProperties>
                    <tk:EditorTemplateDefinition.EditingTemplate>
                        <DataTemplate>
                            <tk:PropertyGridEditorTextBox Text="{Binding Value, UpdateSourceTrigger=PropertyChanged}" />
                        </DataTemplate>
                    </tk:EditorTemplateDefinition.EditingTemplate>
                </tk:EditorTemplateDefinition>
            </tk:PropertyGrid.EditorDefinitions>
        </tk:PropertyGrid>
Thx again

Viewing all articles
Browse latest Browse all 4964

Trending Articles



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