개정판 d97dbc7f
thumbnail loading 속도 개선
Change-Id: I465c8a2b6e2942b2f563ca8f5c8fbdd5e4860f57
KCOM/Controls/Sample.xaml.cs | ||
---|---|---|
40 | 40 |
|
41 | 41 |
//App.splashString(ISplashMessage.SAMPLE); |
42 | 42 |
this.Loaded += Sample_Loaded; |
43 |
this.Unloaded += Sample_Unloaded; |
|
44 |
} |
|
45 |
|
|
46 |
private void Sample_Unloaded(object sender, RoutedEventArgs e) |
|
47 |
{ |
|
48 |
if (samplePageStorage != null) |
|
49 |
{ |
|
50 |
samplePageStorage.Clear(); |
|
51 |
} |
|
43 | 52 |
} |
44 | 53 |
|
45 | 54 |
private void Sample_Loaded(object sender, RoutedEventArgs e) |
... | ... | |
647 | 656 |
{ |
648 | 657 |
ImgListbox.ItemsSource = this._thumbnailItems; |
649 | 658 |
|
650 |
this.CurrentPage = this._thumbnailItems.FirstOrDefault(); |
|
659 |
//this.CurrentPage = this._thumbnailItems.FirstOrDefault();
|
|
651 | 660 |
|
652 |
this._thumbnailItems.ToList().ForEach(data => |
|
653 |
{ |
|
654 |
data.Width = ImgListbox.ActualWidth; |
|
655 |
data.Height = ImgListbox.ActualHeight; |
|
656 |
}); |
|
661 |
//this._thumbnailItems.ToList().ForEach(data =>
|
|
662 |
//{
|
|
663 |
// data.Width = ImgListbox.ActualWidth;
|
|
664 |
// data.Height = ImgListbox.ActualHeight;
|
|
665 |
//});
|
|
657 | 666 |
|
658 | 667 |
if (ImgListbox.Items.Count > 0) |
659 | 668 |
{ |
내보내기 Unified diff