"file path to file name string converter not working" Code Answer

2

in itemssource binding converter applies to the whole list and not to each item in the collection. if you want to apply your converter per item you need to do it itemtemplate

<listbox x:name="videofilelist" itemssource="{binding path=datacontext.vidfiledisplay, elementname=ch_parameters}" ...>
    <listbox.itemtemplate>
        <datatemplate>
            <textblock text="{binding path=., converter={staticresource pathtofilename}}"/>
        </datatemplate>
    </listbox.itemtemplate>
</listbox>
By jerogaren on January 22 2022

Answers related to “file path to file name string converter not working”

Only authorized users can answer the Search term. Please sign in first, or register a free account.