개정판 ca16abb2
issue #747 마우스 Cursor의 가독성 향상
KCOM/MainWindow.xaml.cs | ||
---|---|---|
34 | 34 |
this.KeyDown += new KeyEventHandler(KeyEventDownAction); |
35 | 35 |
this.KeyUp += new KeyEventHandler(KeyEventUpAction); |
36 | 36 |
} |
37 |
|
|
38 |
public static BitmapImage CursorChange() |
|
39 |
{ |
|
40 |
BitmapImage bmp = new BitmapImage(); |
|
41 |
bmp.BeginInit(); |
|
42 |
bmp.StreamSource = System.Windows.Application.GetResourceStream(new Uri("/KCOM;Component/Resources/Cursor/customCursor2.cur", UriKind.Relative)).Stream; |
|
43 |
return bmp; |
|
44 |
} |
|
45 |
|
|
37 | 46 |
public void DialogMessage_Alert(string content, string header) |
38 | 47 |
{ |
39 | 48 |
var box = new TextBlock(); |
... | ... | |
55 | 64 |
private void MainWindow_Loaded(object sender, RoutedEventArgs e) |
56 | 65 |
{ |
57 | 66 |
InitializeComponent(); |
67 |
|
|
68 |
//cursor change |
|
69 |
this.Cursor = new Cursor(CursorChange().StreamSource); |
|
70 |
|
|
58 | 71 |
double screenWidth = System.Windows.SystemParameters.PrimaryScreenWidth; |
59 | 72 |
double screenHeight = System.Windows.SystemParameters.PrimaryScreenHeight; |
60 | 73 |
//this.Width += 40; |
내보내기 Unified diff