개정판 a24b6750
spin control 한글입력 방지
Change-Id: Ib941ccb94abbadf7c5c0f58607db14e97d62eabf
KCOM/Controls/AdornerFinal.xaml.cs | ||
---|---|---|
755 | 755 |
} |
756 | 756 |
else |
757 | 757 |
{ |
758 |
if(item.DrawingData.GetType().Name == "TriControl") |
|
759 |
LineSize = ((MarkupToPDF.Controls.Shape.TriControl)currentControl).LineSize; |
|
760 |
else if(item.DrawingData.GetType().Name == "RectangleControl") |
|
761 |
LineSize = ((MarkupToPDF.Controls.Shape.RectangleControl)currentControl).LineSize; |
|
762 |
else if (item.DrawingData.GetType().Name == "RectCloudControl") |
|
763 |
LineSize = ((MarkupToPDF.Controls.Shape.RectCloudControl)currentControl).LineSize; |
|
764 |
else if (item.DrawingData.GetType().Name == "CloudControl") |
|
765 |
LineSize = ((MarkupToPDF.Controls.Polygon.CloudControl)currentControl).LineSize; |
|
766 |
else if (item.DrawingData.GetType().Name == "PolygonControl") |
|
767 |
LineSize = ((MarkupToPDF.Controls.Polygon.PolygonControl)currentControl).LineSize; |
|
758 |
|
|
759 |
LineSize = ((dynamic)currentControl).LineSize; |
|
760 |
|
|
761 |
//if (item.DrawingData.GetType().Name == "TriControl") |
|
762 |
// LineSize = ((MarkupToPDF.Controls.Shape.TriControl)currentControl).LineSize; |
|
763 |
//else if(item.DrawingData.GetType().Name == "RectangleControl") |
|
764 |
// LineSize = ((MarkupToPDF.Controls.Shape.RectangleControl)currentControl).LineSize; |
|
765 |
//else if (item.DrawingData.GetType().Name == "RectCloudControl") |
|
766 |
// LineSize = ((MarkupToPDF.Controls.Shape.RectCloudControl)currentControl).LineSize; |
|
767 |
//else if (item.DrawingData.GetType().Name == "CloudControl") |
|
768 |
// LineSize = ((MarkupToPDF.Controls.Polygon.CloudControl)currentControl).LineSize; |
|
769 |
//else if (item.DrawingData.GetType().Name == "PolygonControl") |
|
770 |
// LineSize = ((MarkupToPDF.Controls.Polygon.PolygonControl)currentControl).LineSize; |
|
768 | 771 |
|
769 | 772 |
if ((currentControl as IPath).PathData.Bounds.Left < minX) minX = (currentControl as IPath).PathData.Bounds.Left; |
770 | 773 |
if ((currentControl as IPath).PathData.Bounds.Top < minY) minY = (currentControl as IPath).PathData.Bounds.Top; |
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
1358 | 1358 |
} |
1359 | 1359 |
} |
1360 | 1360 |
|
1361 |
|
|
1362 |
private void cbLineSize_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e) |
|
1363 |
{ |
|
1364 |
if (e.Key == Key.Space || e.Key == Key.ImeProcessed) |
|
1365 |
{ |
|
1366 |
e.Handled = true; |
|
1367 |
} |
|
1368 |
|
|
1369 |
} |
|
1370 |
|
|
1371 |
private void cbLineSize_PreviewTextInput(object sender, System.Windows.Input.TextCompositionEventArgs e) |
|
1372 |
{ |
|
1373 |
var regex = new Regex(@"[^a-zA-Z0-9\s]"); |
|
1374 |
if (regex.IsMatch(e.Text)) |
|
1375 |
{ |
|
1376 |
e.Handled = true; |
|
1377 |
} |
|
1378 |
|
|
1379 |
} |
|
1380 |
|
|
1381 |
private void cbArcLength_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e) |
|
1382 |
{ |
|
1383 |
if (e.Key == Key.Space || e.Key == Key.ImeProcessed) |
|
1384 |
{ |
|
1385 |
e.Handled = true; |
|
1386 |
} |
|
1387 |
} |
|
1388 |
|
|
1389 |
private void cbArcLength_PreviewTextInput(object sender, System.Windows.Input.TextCompositionEventArgs e) |
|
1390 |
{ |
|
1391 |
var regex = new Regex(@"[^a-zA-Z0-9\s]"); |
|
1392 |
if (regex.IsMatch(e.Text)) |
|
1393 |
{ |
|
1394 |
e.Handled = true; |
|
1395 |
} |
|
1396 |
} |
|
1397 |
|
|
1361 | 1398 |
private void comboFontSize_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e) |
1362 | 1399 |
{ |
1363 | 1400 |
if (e.Key == Key.Space || e.Key == Key.ImeProcessed) |
... | ... | |
1366 | 1403 |
} |
1367 | 1404 |
} |
1368 | 1405 |
|
1406 |
private void cbIntervalSize_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e) |
|
1407 |
{ |
|
1408 |
if (e.Key == Key.Space || e.Key == Key.ImeProcessed) |
|
1409 |
{ |
|
1410 |
e.Handled = true; |
|
1411 |
} |
|
1412 |
} |
|
1413 |
|
|
1414 |
private void cbIntervalSize_PreviewTextInput(object sender, System.Windows.Input.TextCompositionEventArgs e) |
|
1415 |
{ |
|
1416 |
var regex = new Regex(@"[^a-zA-Z0-9\s]"); |
|
1417 |
if (regex.IsMatch(e.Text)) |
|
1418 |
{ |
|
1419 |
e.Handled = true; |
|
1420 |
} |
|
1421 |
} |
|
1422 |
|
|
1369 | 1423 |
private void comboFontSize_PreviewTextInput(object sender, System.Windows.Input.TextCompositionEventArgs e) |
1370 | 1424 |
{ |
1371 | 1425 |
var regex = new Regex(@"[^a-zA-Z0-9\s]"); |
KCOM/Views/TopMenu.xaml | ||
---|---|---|
450 | 450 |
NumberDecimalDigits="0" |
451 | 451 |
ToolTipService.ToolTip="Interval Value" |
452 | 452 |
ValueChanged="cbIntervalSize_ValueChanged" |
453 |
Value="{Binding Interval, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}" /> |
|
453 |
Value="{Binding Interval, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}" PreviewKeyDown="cbIntervalSize_PreviewKeyDown" PreviewTextInput="cbIntervalSize_PreviewTextInput" />
|
|
454 | 454 |
</telerik:RadButtonGroup> |
455 | 455 |
|
456 | 456 |
|
... | ... | |
641 | 641 |
NumberDecimalDigits="0" |
642 | 642 |
ToolTipService.ToolTip="Interval Value" |
643 | 643 |
ValueChanged="cbArcLength_ValueChanged" |
644 |
Value="{Binding ArcLength, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}" /> |
|
644 |
Value="{Binding ArcLength, Mode=TwoWay, Source={x:Static common:ViewerDataModel.Instance}}" PreviewKeyDown="cbArcLength_PreviewKeyDown" PreviewTextInput="cbArcLength_PreviewTextInput" />
|
|
645 | 645 |
</telerik:RadDockPanel> |
646 | 646 |
|
647 | 647 |
|
... | ... | |
1189 | 1189 |
NumberDecimalDigits="0" |
1190 | 1190 |
ToolTipService.ToolTip="Stroke Value" |
1191 | 1191 |
ValueChanged="cbLineSize_ValueChanged" |
1192 |
Value="{Binding LineSize, Source={x:Static common:ViewerDataModel.Instance}}" /> |
|
1192 |
Value="{Binding LineSize, Source={x:Static common:ViewerDataModel.Instance}}" PreviewKeyDown="cbLineSize_PreviewKeyDown" PreviewTextInput="cbLineSize_PreviewTextInput" />
|
|
1193 | 1193 |
</telerik:RadButtonGroup> |
1194 | 1194 |
</telerik:RadOrderedWrapPanel> |
1195 | 1195 |
</telerik:RadRibbonGroup> |
KCOM/Views/TopMenu.xaml.cs | ||
---|---|---|
1 | 1 |
using System; |
2 |
using System.Text.RegularExpressions; |
|
2 | 3 |
using System.Windows; |
3 | 4 |
using System.Windows.Controls; |
4 | 5 |
using System.Windows.Media.Imaging; |
... | ... | |
110 | 111 |
} |
111 | 112 |
|
112 | 113 |
} |
114 |
|
|
113 | 115 |
} |
114 | 116 |
} |
내보내기 Unified diff