개정판 b2d0f316
Feature: 선택한 객체를 앞으로(+)/뒤로(-) 보내기 기능 추가
Change-Id: I9130a93cfdb2d079f28258f3d669a6f532695f89
KCOM/Controls/Sample.xaml.cs | ||
---|---|---|
313 | 313 |
} |
314 | 314 |
} |
315 | 315 |
|
316 |
/// <summary> |
|
317 |
/// 페이지가 전환될때 해당 페이지의 마크업 데이터를 표시한다. |
|
318 |
/// </summary> |
|
319 |
/// <param name="selectItem"></param> |
|
316 | 320 |
private async void PageChange(KCOM.Common.ThumbnailItem selectItem) |
317 | 321 |
{ |
318 | 322 |
var number = selectItem.PageNumber; |
... | ... | |
393 | 397 |
/// <param name="iPageNo">변경할 페이지 번호</param> |
394 | 398 |
public void ChangePage(int iPageNo) |
395 | 399 |
{ |
396 |
var thumbitem = this._thumbnailItems.Where(item => item.PageNumber == iPageNo).FirstOrDefault();
|
|
400 |
var thumbitem = this._thumbnailItems.FirstOrDefault(item => item.PageNumber == iPageNo);
|
|
397 | 401 |
if ((PageChanged != null) && (thumbitem != null)) |
398 | 402 |
{ |
399 | 403 |
var uri = thumbitem.PageUri.ToString(); |
400 |
//_DefaultUri.Replace("{PageNo}", thumbitem.PageNumber.ToString()); |
|
401 | 404 |
|
402 |
var _DocPages = _PageList.Where(p => p.PAGE_NUMBER == thumbitem.PageNumber).FirstOrDefault();
|
|
405 |
var _DocPages = _PageList.Find(p => p.PAGE_NUMBER == thumbitem.PageNumber);
|
|
403 | 406 |
if (_DocPages != null) |
404 | 407 |
{ |
405 | 408 |
PageChanged(this, new PageChangeEventArgs |
... | ... | |
408 | 411 |
PageUri = uri, |
409 | 412 |
PageNumber = thumbitem.PageNumber |
410 | 413 |
}); |
411 |
//ImgListbox.SelectedItem = thumbitem; |
|
412 |
//ImgListbox.Items.MoveCurrentTo(thumbitem); |
|
413 | 414 |
|
414 | 415 |
this.CurrentPage = thumbitem; |
415 | 416 |
} |
내보내기 Unified diff