Click here to Skip to main content
15,894,343 members
Home / Discussions / WPF
   

WPF

 
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 
QuestionCreate a TextBlock in Blend and Edit it in RunTime Pin
Smithy96323-Feb-09 8:19
Smithy96323-Feb-09 8:19 
AnswerRe: Create a TextBlock in Blend and Edit it in RunTime Pin
Thomas Stockwell23-Feb-09 15:55
professionalThomas Stockwell23-Feb-09 15:55 
QuestionWPF data templating / binding Pin
pym23-Feb-09 3:33
pym23-Feb-09 3:33 
AnswerRe: WPF data templating / binding Pin
ABitSmart23-Feb-09 4:46
ABitSmart23-Feb-09 4:46 
GeneralRe: WPF data templating / binding Pin
pym23-Feb-09 5:39
pym23-Feb-09 5:39 
GeneralRe: WPF data templating / binding Pin
ABitSmart23-Feb-09 15:44
ABitSmart23-Feb-09 15:44 
GeneralRe: WPF data templating / binding Pin
pym23-Feb-09 22:14
pym23-Feb-09 22:14 
GeneralRe: WPF data templating / binding Pin
ABitSmart23-Feb-09 22:44
ABitSmart23-Feb-09 22:44 
QuestionExtend properties of Silverlight controls... Pin
salon23-Feb-09 0:54
salon23-Feb-09 0:54 
AnswerRe: Extend properties of Silverlight controls... Pin
Pete O'Hanlon23-Feb-09 1:15
mvePete O'Hanlon23-Feb-09 1:15 
GeneralRe: Extend properties of Silverlight controls... Pin
salon23-Feb-09 1:25
salon23-Feb-09 1:25 
GeneralRe: Extend properties of Silverlight controls... Pin
Pete O'Hanlon23-Feb-09 1:41
mvePete O'Hanlon23-Feb-09 1:41 
GeneralRe: Extend properties of Silverlight controls... Pin
salon23-Feb-09 2:19
salon23-Feb-09 2:19 
GeneralRe: Extend properties of Silverlight controls... Pin
Pete O'Hanlon23-Feb-09 2:58
mvePete O'Hanlon23-Feb-09 2:58 
JokeRe: Extend properties of Silverlight controls... Pin
Michael Sync24-Feb-09 17:07
Michael Sync24-Feb-09 17:07 
GeneralRe: Extend properties of Silverlight controls... Pin
salon26-Feb-09 17:49
salon26-Feb-09 17:49 

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.