개정판 3026d214
issue #809 readOnly Mode 일 때 page 입력 + Enter 시 Page 이동이 안되는 현상 수정
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
1269 | 1269 |
//} |
1270 | 1270 |
} |
1271 | 1271 |
|
1272 |
//강인구 추가페이지 이동 엔터
|
|
1272 |
//추가페이지 이동 엔터 |
|
1273 | 1273 |
private void tlcurrentPage_KeyDown(object sender, KeyEventArgs e) |
1274 | 1274 |
{ |
1275 | 1275 |
//강인구 추가 tlcurrentPage을 이상하게 입력할수 있기때문에 Try Catch |
... | ... | |
1293 | 1293 |
} |
1294 | 1294 |
} |
1295 | 1295 |
|
1296 |
private void tlcurrentPage_readonly_KeyDown(object sender, KeyEventArgs e) |
|
1297 |
{ |
|
1298 |
//강인구 추가 tlcurrentPage을 이상하게 입력할수 있기때문에 Try Catch |
|
1299 |
if (e.Key == Key.Enter) |
|
1300 |
{ |
|
1301 |
try |
|
1302 |
{ |
|
1303 |
var instanceMain = this.ParentOfType<MainWindow>(); |
|
1304 |
instanceMain.dzMainMenu.pageNavigator.GotoPage(Convert.ToInt32(tlcurrentPage_readonly.Text)); |
|
1305 |
} |
|
1306 |
catch (Exception) |
|
1307 |
{ |
|
1308 |
RadWindow.Alert(new DialogParameters |
|
1309 |
{ |
|
1310 |
Theme = new VisualStudio2013Theme(), |
|
1311 |
Header = "안내", |
|
1312 |
Content = "페이지 번호를 정확하게 입력해 주세요", |
|
1313 |
}); |
|
1314 |
} |
|
1315 |
|
|
1316 |
} |
|
1317 |
} |
|
1318 |
|
|
1319 |
|
|
1296 | 1320 |
public event EventHandler<WindowClosedEventArgs> Closed; |
1297 | 1321 |
|
1298 | 1322 |
//private void CheckEvent(object sender, RoutedEventArgs e) |
KCOM/Views/TopMenu.xaml | ||
---|---|---|
1198 | 1198 |
telerik:ScreenTip.Title="File" Header="PAGE" |
1199 | 1199 |
Visibility="Visible"> |
1200 | 1200 |
<StackPanel Orientation="Horizontal"> |
1201 |
<TextBox Text="1" Width="30" Padding="0" Grid.Row="0" VerticalAlignment="Center" HorizontalContentAlignment="Center" Margin="5,0" x:Name="tlcurrentPage_readonly" KeyDown="tlcurrentPage_KeyDown"/> |
|
1201 |
<TextBox Text="1" Width="30" Padding="0" Grid.Row="0" VerticalAlignment="Center" HorizontalContentAlignment="Center" Margin="5,0" x:Name="tlcurrentPage_readonly" KeyDown="tlcurrentPage_readonly_KeyDown"/>
|
|
1202 | 1202 |
<TextBlock Text="/" Padding="3" VerticalAlignment="Center" HorizontalAlignment="Center"/> |
1203 | 1203 |
<TextBlock Text="{Binding Document_Info.Count, Source={x:Static common:ViewerDataModel.Instance}}" Padding="3" VerticalAlignment="Center" HorizontalAlignment="Center" x:Name="tlPageCount_readonly"/> |
1204 | 1204 |
|
내보내기 Unified diff