개정판 ca16abb2
issue #747 마우스 Cursor의 가독성 향상
KCOM/Controls/AdornerFinal.xaml.cs | ||
---|---|---|
1884 | 1884 | |
1885 | 1885 |
Undo_Event(); |
1886 | 1886 |
} |
1887 | ||
1887 |
|
|
1888 | 1888 |
private void rotate_DragCompleted(object sender, DragCompletedEventArgs e) |
1889 | 1889 |
{ |
1890 |
rotateTop.Cursor = Cursors.Arrow;
|
|
1891 | ||
1890 |
rotateTop.Cursor = new Cursor(MainWindow.CursorChange().StreamSource);
|
|
1891 |
|
|
1892 | 1892 |
Undo_Event(); |
1893 | 1893 |
} |
1894 | 1894 | |
... | ... | |
1962 | 1962 |
} |
1963 | 1963 | |
1964 | 1964 |
private void drag_DragCompleted(object sender, DragCompletedEventArgs e) |
1965 |
{
|
|
1966 |
DragThumb.Cursor = Cursors.Arrow;
|
|
1965 |
{ |
|
1966 |
DragThumb.Cursor = new Cursor(MainWindow.CursorChange().StreamSource);
|
|
1967 | 1967 | |
1968 | 1968 |
Undo_Event(); |
1969 | 1969 |
} |
KCOM/KCOM.csproj | ||
---|---|---|
1088 | 1088 |
<ItemGroup> |
1089 | 1089 |
<Resource Include="splash.png" /> |
1090 | 1090 |
</ItemGroup> |
1091 |
<ItemGroup> |
|
1092 |
<Resource Include="Resources\Cursor\customCursor.cur" /> |
|
1093 |
</ItemGroup> |
|
1094 |
<ItemGroup> |
|
1095 |
<Resource Include="Resources\Cursor\customCursor2.cur" /> |
|
1096 |
</ItemGroup> |
|
1091 | 1097 |
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> |
1092 | 1098 |
<Import Project="..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets" Condition="Exists('..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets')" /> |
1093 | 1099 |
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> |
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