프로젝트

일반

사용자정보

개정판 d97dbc7f

IDd97dbc7facdd63fd8f1af2e47667eb1436231e0e
상위 54a28343
하위 bf5f463c, 448c5399

김태성이(가) 약 5년 전에 추가함

thumbnail loading 속도 개선

Change-Id: I465c8a2b6e2942b2f563ca8f5c8fbdd5e4860f57

차이점 보기:

KCOM/App.xaml.cs
248 248

  
249 249
                await SplashScreenAsnyc();
250 250
                base.OnStartup(e);
251
                
251

  
252 252
                System.Windows.Input.Keyboard.AddKeyDownHandler(this.MainWindow, KeyDownEvent);
253 253
            }
254 254
            catch (Exception ex)
KCOM/Controls/PageNavigator.xaml
607 607
                 BorderBrush="#FFC2C2C2" BorderThickness="0" Margin="5"
608 608
                 ScrollViewer.HorizontalScrollBarVisibility="Disabled"
609 609
                 SelectionChanged="ImgListbox_SelectionChanged"
610
                 telerik:StyleManager.Theme="Office2016" VirtualizingStackPanel.VirtualizationMode="Recycling" IsManipulationEnabled="True">
610
                 telerik:StyleManager.Theme="Office2016" VirtualizingStackPanel.VirtualizationMode="Recycling">
611 611
            <ListBox.ItemsPanel>
612 612
                <ItemsPanelTemplate>
613 613
                    <!--<StackPanel/>
KCOM/Controls/Sample.xaml
491 491
                                        ScrollViewer.VerticalScrollBarVisibility="Auto"                                        
492 492
                                        ScrollViewer.CanContentScroll="True"                                        
493 493
                                        ScrollViewer.IsDeferredScrollingEnabled="True"                                        
494
                                        VirtualizingStackPanel.IsVirtualizing="True"   
494
                                        VirtualizingStackPanel.IsVirtualizing="False"   
495 495
                                        VirtualizingStackPanel.VirtualizationMode="Recycling"
496 496
                                        telerik:StyleManager.Theme="Office2016" >
497 497
                        <telerik:RadListBox.ItemsPanel>
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
                {
KCOM/Controls/thumbnailControl.xaml.cs
22 22
    {
23 23
        public thumbnailControl()
24 24
        {
25
            App.splashString(ISplashMessage.THUMBNAILCONTROL);
25
            //App.splashString(ISplashMessage.THUMBNAILCONTROL);
26 26
            InitializeComponent();
27 27
        }
28 28
    }
KCOM/KCOM.csproj
576 576
      <SubType>Designer</SubType>
577 577
      <Generator>MSBuild:Compile</Generator>
578 578
    </Page>
579
    <Page Include="Controls\PageNavigator.xaml">
580
      <SubType>Designer</SubType>
581
      <Generator>MSBuild:Compile</Generator>
582
    </Page>
583 579
    <Page Include="Controls\Panorama.xaml">
584 580
      <SubType>Designer</SubType>
585 581
      <Generator>MSBuild:Compile</Generator>
......
691 687
    <Compile Include="Controls\MarkupColorList.xaml.cs">
692 688
      <DependentUpon>MarkupColorList.xaml</DependentUpon>
693 689
    </Compile>
694
    <Compile Include="Controls\PageNavigator.xaml.cs">
695
      <DependentUpon>PageNavigator.xaml</DependentUpon>
696
    </Compile>
697 690
    <Compile Include="Controls\PrintControl.xaml.cs">
698 691
      <DependentUpon>PrintControl.xaml</DependentUpon>
699 692
    </Compile>
KCOM/MainWindow.xaml.cs
50 50
            this.Loaded += MainWindow_Loaded;
51 51
            this.Unloaded += MainWindow_Unloaded;
52 52
            this.PreviewKeyDown += new KeyEventHandler(KeyEventDownAction);
53
            this.Activated += MainWindow_Activated;
54
        }
55

  
56
        private void MainWindow_Activated(object sender, EventArgs e)
57
        {
58
            this.Topmost = true;
53 59
        }
54 60

  
55 61
        private void MainWindow_Unloaded(object sender, RoutedEventArgs e)
KCOM/PageManager/PageStorage.cs
249 249
                            LocalFilePath = downloadFilePath
250 250
                        };
251 251

  
252
                        fileItems.Add(result);
252
                        lock (fileItems)
253
                        {
254
                            fileItems.Add(result);
255
                        }
256

  
257
                        (snd as System.Net.WebClient).Dispose();
253 258
                    };
254 259

  
255 260
                    System.Diagnostics.Debug.WriteLine("Download : " + downloadFilePath);

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)