Click here to Skip to main content
15,913,944 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: DependencyProperty problem Pin
Pete O'Hanlon1-Feb-09 8:30
mvePete O'Hanlon1-Feb-09 8:30 
QuestionHow to Change the Resources at runtime in WPF Application? Pin
sankarlearns30-Jan-09 13:40
sankarlearns30-Jan-09 13:40 
AnswerRe: How to Change the Resources at runtime in WPF Application? Pin
Jammer1-Feb-09 10:40
Jammer1-Feb-09 10:40 
AnswerRe: How to Change the Resources at runtime in WPF Application? [modified] Pin
sankarlearns3-Feb-09 11:29
sankarlearns3-Feb-09 11:29 
QuestionWPF ListView/Items Control - Another problem Pin
snblackout30-Jan-09 13:21
snblackout30-Jan-09 13:21 
AnswerRe: WPF ListView/Items Control - Another problem Pin
Insincere Dave31-Jan-09 4:08
Insincere Dave31-Jan-09 4:08 
GeneralRe: WPF ListView/Items Control - Another problem Pin
snblackout31-Jan-09 7:56
snblackout31-Jan-09 7:56 
GeneralRe: WPF ListView/Items Control - Another problem [modified] Pin
Insincere Dave31-Jan-09 10:30
Insincere Dave31-Jan-09 10:30 
That piece of code disables item virtualization which improves performance by only creating the items that are visible and regenerating them as you scroll. See MSDN.
Heres an altered version of that method that worked with virtualization enabled. It uses a method which was added in .NET 3.5 but Im guessing your using that as otherwise the sample would have probably worked.
public static FrameworkElement GetItemContainer(ItemsControl itemsControl, Visual bottomMostVisual)
{
	return itemsControl.ContainerFromElement(bottomMostVisual) as FrameworkElement;
}


You can see the effects by trying with and without virtualization if you add more iterations to your loop which adds the pictures. At 200 there was a noticable pause when it was disabled.

modified on Saturday, January 31, 2009 5:18 PM

GeneralRe: WPF ListView/Items Control - Another problem Pin
snblackout2-Feb-09 8:59
snblackout2-Feb-09 8:59 
QuestionWindows1 Elements Pin
me0830-Jan-09 12:26
me0830-Jan-09 12:26 
AnswerRe: Windows1 Elements Pin
BlitzPackage2-Feb-09 11:30
BlitzPackage2-Feb-09 11:30 
GeneralRe: Windows1 Elements Pin
me082-Feb-09 11:53
me082-Feb-09 11:53 
AnswerRe: Windows1 Elements Pin
Pete O'Hanlon2-Feb-09 11:42
mvePete O'Hanlon2-Feb-09 11:42 
GeneralRe: Windows1 Elements Pin
BlitzPackage2-Feb-09 11:45
BlitzPackage2-Feb-09 11:45 
GeneralRe: Windows1 Elements Pin
Pete O'Hanlon2-Feb-09 11:46
mvePete O'Hanlon2-Feb-09 11:46 
QuestionRe: Windows1 Elements Pin
me084-Feb-09 5:04
me084-Feb-09 5:04 
AnswerRe: Windows1 Elements Pin
Pete O'Hanlon4-Feb-09 5:20
mvePete O'Hanlon4-Feb-09 5:20 
QuestionDlls Issue Pin
Tauseef A29-Jan-09 23:12
Tauseef A29-Jan-09 23:12 
AnswerRe: Dlls Issue Pin
Michael Sync31-Jan-09 4:56
Michael Sync31-Jan-09 4:56 
QuestionXaml on the Web Pin
Jammer29-Jan-09 23:07
Jammer29-Jan-09 23:07 
AnswerRe: Xaml on the Web Pin
Pete O'Hanlon30-Jan-09 0:40
mvePete O'Hanlon30-Jan-09 0:40 
GeneralRe: Xaml on the Web Pin
Jammer30-Jan-09 0:54
Jammer30-Jan-09 0:54 
GeneralRe: Xaml on the Web Pin
Pete O'Hanlon30-Jan-09 1:31
mvePete O'Hanlon30-Jan-09 1:31 
GeneralRe: Xaml on the Web Pin
Jammer31-Jan-09 22:39
Jammer31-Jan-09 22:39 
GeneralRe: Xaml on the Web Pin
Pete O'Hanlon1-Feb-09 8:28
mvePete O'Hanlon1-Feb-09 8:28 

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.