개정판 2d584f1a
issue #679: key down 이벤트 수정. selecteditem 불필요 부분 삭제.
Change-Id: I9cfb487bb099a6fa44dadac54c6b9c4bb1196dea
KCOM/Controls/Sample.xaml.cs | ||
---|---|---|
165 | 165 |
} |
166 | 166 |
} |
167 | 167 |
|
168 |
var border = VisualTreeHelper.GetChild(ImgListbox, 0); |
|
169 |
if(border!= null) |
|
170 |
{ |
|
171 |
IEnumerable<ScrollViewer> scrollViewer = border.ChildrenOfType<ScrollViewer>(); |
|
172 |
} |
|
168 |
//var border = VisualTreeHelper.GetChild(ImgListbox, 0); |
|
169 |
//if (border != null) |
|
170 |
//{ |
|
171 |
// IEnumerable<ScrollViewer> scrollViewer = border.ChildrenOfType<ScrollViewer>(); |
|
172 |
|
|
173 |
//} |
|
174 |
//ScrollViewer scrollViewer = (sender as RadListBox) as ScrollViewer; |
|
175 |
|
|
176 |
|
|
177 |
//System.Diagnostics.Debug.WriteLine("page:"+ImgListbox.SelectedIndex); |
|
173 | 178 |
} |
174 | 179 |
|
175 | 180 |
public bool GotoPageFlag = false; |
... | ... | |
226 | 231 |
PageUri = uri, |
227 | 232 |
PageNumber = thumbitem.PageNumber |
228 | 233 |
}); |
229 |
ImgListbox.SelectedItem = thumbitem; |
|
234 |
//ImgListbox.SelectedItem = thumbitem; |
|
235 |
//ImgListbox.Items.MoveCurrentTo(thumbitem); |
|
236 |
|
|
230 | 237 |
this.CurrentPage = thumbitem; |
231 | 238 |
} |
232 | 239 |
else |
... | ... | |
466 | 473 |
//this.ImgListbox.ItemsSource = null; |
467 | 474 |
Logger.sendCheckLog("SetCommentList_ImgListbox 설정", 1); |
468 | 475 |
|
469 |
|
|
470 |
this.ImgListbox.ItemsSource = this._thumbnailItems; |
|
471 |
var template = this.ImgListbox.ItemTemplate; |
|
472 |
this.ImgListbox.ItemTemplate = null; |
|
473 |
this.ImgListbox.ItemTemplate = template; |
|
474 |
//Logger.sendCheckLog("SetCommentList_ImgListbox UpdateLayout_Start", 1); |
|
475 |
//this.ImgListbox.UpdateLayout(); |
|
476 |
//Logger.sendCheckLog("SetCommentList_ImgListbox UpdateLayout_End", 1); |
|
477 |
|
|
476 |
|
|
477 |
//this.ImgListbox.ItemsSource = this._thumbnailItems; |
|
478 |
var template = this.ImgListbox.ItemTemplate; |
|
479 |
this.ImgListbox.ItemTemplate = null; |
|
480 |
this.ImgListbox.ItemTemplate = template; |
|
481 |
|
|
478 | 482 |
} |
479 | 483 |
|
480 | 484 |
private void ThumbnailSet() |
KCOM/Events/Event_KeyEvent.cs | ||
---|---|---|
25 | 25 |
|
26 | 26 |
public void KeyEventDownAction(object sender, KeyEventArgs e) |
27 | 27 |
{ |
28 |
if (e.IsRepeat) |
|
29 |
return; |
|
28 | 30 |
switch (e.Key) |
29 | 31 |
{ |
30 | 32 |
//강인구 추가 |
... | ... | |
270 | 272 |
break; |
271 | 273 |
#endregion |
272 | 274 |
case Key.PageUp: |
275 |
|
|
273 | 276 |
this.dzMainMenu.pageNavigator.GotoPage(Convert.ToInt32(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.CurrentPage.PageNumber) - 1); |
274 | 277 |
break; |
275 | 278 |
case Key.PageDown: |
내보내기 Unified diff