c# - How to manage User Control in List Box using MVVM? -
i know there many question of this, don't find correct answer, or don't understand correct way solve. have list box in mainwindows, populated custom object (fooobjclass). <listbox x:name="foolistbox"> <listbox.itemtemplate> <datatemplate> <foonamespace:fooobjview/> </datatemplate> </listbox.itemtemplate> </listbox> the fooobjview user control <usercontrol x:class="plcs7_test.smartobjrecognize.smartobjview" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:test.fooobjrecognize" mc:ignorable="d...