Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1058289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:00:18+00:00 2026-05-16T18:00:18+00:00

I have WPF window with several textboxes, buttons, and canvas where I draw a

  • 0

I have WPF window with several textboxes, buttons, and canvas where I draw a graph. I would like to have cross cursor over the canvas, because this way user could point interesting area in more “scientific” way 🙂

Oddly, when I set cursor to cross for a canvas, it is still a standard arrow instead, but when the mouse is over any line or polyline I drew on the canvas it is cross.

So how to set the cursor for entire canvas (including “empty” space, where nothing is drawn)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T18:00:19+00:00Added an answer on May 16, 2026 at 6:00 pm

    To change a mouse cursor shape for entire canvas add a transparent background to your canvas.

    Here is a sample:

    <Canvas Grid.Row="2" Background="Transparent">
       <Polyline Points="25,25 0,50 25,75 50,50 25,25 25,0" 
                 Stroke="Blue" StrokeThickness="10"
                 Canvas.Left="75" Canvas.Top="50">
          <Polyline.RenderTransform>
              <RotateTransform CenterX="0" CenterY="0" Angle="45" />
          </Polyline.RenderTransform>
       </Polyline>
       <Canvas.Style>
           <Style TargetType="{x:Type Canvas}">
              <Style.Triggers>
                  <Trigger Property="IsMouseOver" Value="True" >
                    <Setter Property="Cursor" Value="Cross" />
                  </Trigger>
              </Style.Triggers>
            </Style>
       </Canvas.Style>
    </Canvas>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WPF application with several windows. I would like to define GLOBAL
So if I have a WPF window, would moving another window over the WPF
I have a Window with several Frame controls and would like to find the
I have a WPF Window with several TextBoxes on it. I have an XSD
we have a wpf-window with some textboxes and a datagrid. the textboxes descripe a
I have a WPF application which has a main window composed from several custom
I have a WPF application that has several modal window used for various purposes.
I have a Window where I have put a Frame. I would like to
I have several controls in my WPF window. I have divided the window into
I have WPF window with a FlowDocument with several hyperlinks in it: <FlowDocumentScrollViewer> <FlowDocument

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.