Click here to Skip to main content
15,919,479 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: WPF and MDI? From external *.exe? Pin
Pete O'Hanlon25-Feb-09 21:38
mvePete O'Hanlon25-Feb-09 21:38 
GeneralRe: WPF and MDI? From external *.exe? Pin
softwarejaeger26-Feb-09 7:13
softwarejaeger26-Feb-09 7:13 
GeneralRe: WPF and MDI? From external *.exe? Pin
Pete O'Hanlon26-Feb-09 9:28
mvePete O'Hanlon26-Feb-09 9:28 
QuestionINotifyPropertyChanged and ObservableCollection question Pin
BlitzPackage25-Feb-09 10:29
BlitzPackage25-Feb-09 10:29 
AnswerRe: INotifyPropertyChanged and ObservableCollection question Pin
Pete O'Hanlon25-Feb-09 11:27
mvePete O'Hanlon25-Feb-09 11:27 
GeneralRe: INotifyPropertyChanged and ObservableCollection question Pin
BlitzPackage25-Feb-09 13:16
BlitzPackage25-Feb-09 13:16 
GeneralRe: INotifyPropertyChanged and ObservableCollection question Pin
Pete O'Hanlon25-Feb-09 21:31
mvePete O'Hanlon25-Feb-09 21:31 
QuestionNot able to set the default style for the controls with generic.xaml Pin
salon24-Feb-09 20:33
salon24-Feb-09 20:33 
AnswerRe: Not able to set the default style for the controls with generic.xaml Pin
Mark Salsbery25-Feb-09 10:16
Mark Salsbery25-Feb-09 10:16 
GeneralRe: Not able to set the default style for the controls with generic.xaml Pin
salon25-Feb-09 17:21
salon25-Feb-09 17:21 
GeneralRe: Not able to set the default style for the controls with generic.xaml Pin
Mark Salsbery25-Feb-09 21:20
Mark Salsbery25-Feb-09 21:20 
GeneralRe: Not able to set the default style for the controls with generic.xaml Pin
salon25-Feb-09 23:20
salon25-Feb-09 23:20 
GeneralRe: Not able to set the default style for the controls with generic.xaml Pin
Mark Salsbery26-Feb-09 7:30
Mark Salsbery26-Feb-09 7:30 
GeneralRe: Not able to set the default style for the controls with generic.xaml Pin
salon26-Feb-09 17:47
salon26-Feb-09 17:47 
GeneralRe: Not able to set the default style for the controls with generic.xaml Pin
Derek Greer31-May-09 5:28
Derek Greer31-May-09 5:28 
GeneralRe: Not able to set the default style for the controls with generic.xaml Pin
salon31-May-09 18:11
salon31-May-09 18:11 
QuestionFill tab items with separated code Pin
Fredrik__24-Feb-09 12:32
Fredrik__24-Feb-09 12:32 
AnswerRe: Fill tab items with separated code Pin
Gideon Engelberth24-Feb-09 15:20
Gideon Engelberth24-Feb-09 15:20 
QuestionCan we use ASP.NET website inside the Silverlight application Pin
salon24-Feb-09 0:59
salon24-Feb-09 0:59 
AnswerRe: Can we use ASP.NET website inside the Silverlight application Pin
Michael Sync24-Feb-09 17:04
Michael Sync24-Feb-09 17:04 
AnswerRe: Can we use ASP.NET website inside the Silverlight application Pin
johnsontroye27-Feb-09 9:34
johnsontroye27-Feb-09 9:34 
GeneralRe: Can we use ASP.NET website inside the Silverlight application Pin
Ray Cassick5-Mar-09 4:51
Ray Cassick5-Mar-09 4:51 
GeneralRe: Can we use ASP.NET website inside the Silverlight application Pin
Braulio Dez12-Mar-09 23:03
Braulio Dez12-Mar-09 23:03 
Questionscroll ListBox to bottom in xaml Pin
ausadmin23-Feb-09 14:48
ausadmin23-Feb-09 14:48 
I have been using the MVVM pattern extensively to build a UI (as in the great samples "WPF Apps With The Model-View-ViewModel Design Pattern"[^] and "Creating an Internationalized Wizard in WPF" [^]. This is a great technique for UI development, and I thank Josh Smith and Karl Shifflett for their postings and assistance in this area.

While I have now got most of this working really well, I have hit a problem that I can't figure out how to solve in xaml or with data binding. I have a ListBox which I can add items to, but as the number of items exceeds the size of the ListBox, the items added at the bottom scroll out of view... I want to have the ListBox automatically scroll to display the last item. Can anyone tell me how to do this in xaml?

I have reviewed several posts regarding use of the ScrollIntoView method, but I do not know how to access this from xaml (I think it may not be possible as its a method). As this is using the MVVM pattern, there is no way (that I am aware of) to access the ListBox instance from the code, to be able to call ScrollIntoView.

Another solution would be to scroll to item n in xaml, which would be fine because I could then data bind to n. However I also have not been able to find a way to control the scrolling in xaml.

I'm realy surprised there seems to be no easy way to do this in xaml.

Any help would be greatly appreciated.

Thanks,
Tim
AnswerRe: scroll ListBox to bottom in xaml Pin
User 27100928-Feb-09 20:02
User 27100928-Feb-09 20:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.