Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Program Navigation of GridView
Message
De
08/02/2011 23:43:41
 
 
À
04/02/2011 18:58:50
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Versions des environnements
Environment:
C# 4.0
Application:
Desktop
Divers
Thread ID:
01498838
Message ID:
01499314
Vues:
37
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform