C# 刷新工具包:数据库更新后的listpicker
我的windows phone 8.1应用程序mainpage.xaml中有toolkit:listpickerC# 刷新工具包:数据库更新后的listpicker,c#,xaml,windows-phone-8.1,wptoolkit,C#,Xaml,Windows Phone 8.1,Wptoolkit,我的windows phone 8.1应用程序mainpage.xaml中有toolkit:listpicker <toolkit:ListPicker x:Name="ListPicker" HorizontalAlignment="Left" Margin="40,10,0,0" VerticalAlignment="Top"
<toolkit:ListPicker x:Name="ListPicker"
HorizontalAlignment="Left"
Margin="40,10,0,0"
VerticalAlignment="Top"
Grid.Row="1">
<toolkit:ListPicker.ItemTemplate>
<DataTemplate>
<toolkit:ListPickerItem Content="{Binding ListName}" />
</DataTemplate>
</toolkit:ListPicker.ItemTemplate>
</toolkit:ListPicker>
和另一个在本地数据库中添加项目的页面。
当我添加项目时,listpicker不会刷新,直到我关闭应用程序并再次打开它
有人能帮我吗?在数据源上实现Inotifypropertychanged模式。这样,UI将响应您在数据源中所做的任何更改
我已经在model和viewmodel类中使用了它,并且它没有更新。您确定数据源已更新并且inotify工作正常吗。