Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program Navigation of GridView
Message
From
08/02/2011 23:43:41
 
 
To
04/02/2011 18:58:50
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
Windows Presentation Foundation (WPF)
Environment versions
Environment:
C# 4.0
Application:
Desktop
Miscellaneous
Thread ID:
01498838
Message ID:
01499314
Views:
36
>Hi Charles,
>I had seen that link, actually still had it open but it won't do the trick for me. I am using MVVM and need to navigate using a property that I can bind to in the ViewModel.

Looks like you would need to write an AttachedBehavior for it.

http://www.codeproject.com/KB/WPF/AttachedBehaviors.aspx

They come in real handy when your doing MVVM. The code links Charles gave you are good ones, attached behaviors allow you to implement that type of code without breaking your MVVM pattern or having to resort to a sub class.

They are actually fairly easy to write once you get the hang of it.

Edit: Note that there is a SelectedItem property that can be set. (But I think you still would still need scroll into view for what you described. Haven't tested it, don't remember, so not sure.) I guess it depends on how you need to navigate the grid.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform