TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Sreenivas Kasavar
NA
9
0
DataBinding
Mar 19 2013 7:51 AM
Hi,
I have a scenario where my View is not updating upon changes in the ViewModel. All Notifications are implemented.
I have a TabControl and a Grid displaying some values.
On Selecting a row in Grid, Tab content should be updated with the selected row values. But the Tab content wont update.
It updates or refreshes only on Tab switch. This has been implemented in MVVM way.
sample xaml code:
<
TabControl
ContentTemplateSelector
="{
StaticResource
instanceTemplate
}"
TabStripPlacement
="Bottom"
ItemsSource
="{
Binding
CurrentViewItem
.ViewModel.MyCollection,
FallbackValue
={
StaticResource
efaultMultiInstanceValue
}}"
SelectedItem
="{
Binding
CurrentViewItem
.ViewModel.SelectedItem}"
IsSynchronizedWithCurrentItem
="True"
>
<!--Tab content/panel-->
<
ScrollViewer
Grid.Row
="0"
HorizontalScrollBarVisibility
="Hidden"
VerticalScrollBarVisibility
="Auto">
<
ContentPresenter
x
:
Name
="PART_SelectedContentHost"
SnapsToDevicePixels
="{
TemplateBinding
SnapsToDevicePixels
}"
Margin
="{
TemplateBinding
adding
}"
ContentSource
="SelectedContent"
/>
MyCollection is the property getting updated and firing the notification. I am trying to change the SelectedItem value in my TabItem's content via SelectedItem Object from viewModel.
So far no success,
Any help would be really helpfull.
thanks,
kasavar
Reply
Answers (
0
)
drop down lists
How to change the button caption dynamically in WPF using MV