Questions tagged [repeatbutton]

in WPF, RepeatButton is a control that raises its Click event repeatedly from the time it is pressed until it is released.

26 questions
5
votes
1 answer

Wpf disable repeatbuttons when scrolled to top/bottom

I'm making a touchscreen interface that uses a listbox. I have a button above and below the listbox for page up/down. I'm trying to get it to where when scrolled all the way up the pageup button gets disabled. and when scrolled all the way down…
Charlie W.
  • 51
  • 1
  • 2
5
votes
1 answer

how do I remove border and effects from WPF repeatbutton when an imagebrush is used as the background

I am working with a repeatbutton object in WPF, the button needs to be graphic based (Image brush background and no border or other superfluous effects). The problem I have is that no matter what i try there is still a white rectangle around the…
user1350555
4
votes
0 answers

RepeatButton TouchDown

I have a repeatbutton that updates an integer in a textbox by 5. This works well with the mouse. When trying this on the touchscreen, the event doesn't get repeated even though I can see via the style that the button is still down. I tried handling…
Berney Villers
  • 162
  • 1
  • 7
3
votes
2 answers

WPF RepeatButton MouseUp

Is there a way to get the MouseUpevent on the repeatbutton to fire when the button is not pressed anymore? I am trying to use the MouseMove event to track the position of the mouse while the button is pressed, but neither MouseDown nor MouseUp fire…
ak3nat0n
  • 6,060
  • 6
  • 36
  • 59
3
votes
1 answer

RepeatButton for Winforms

Is there anything like RepeatButton in Windows Forms? How can I implement same behavior using an ordinary button?
iLemming
  • 34,477
  • 60
  • 195
  • 309
1
vote
0 answers

WPF PopUp not closing when initiated from a RepeatButton

In my WPF project I have a popup which I would like to appear through a click of a RepeatButton. I cannot get the Popup to close if I use a RepeatButton whereas if I change it to a Button it works fine. Here is some sample code which does not…
darbid
  • 2,545
  • 23
  • 55
1
vote
1 answer

UWP TabView RepeatButton

I have a problem with a RepeatButton in a TabView, I don't know how to resize it so that they are in height as adjacent elements
DimaBond
  • 61
  • 6
1
vote
1 answer

How to change WPF ScrollViewer RepeatButton Height and Width

I would like to change the size of the RepeatButton UP and DOWN of a ScrollViewer, to get a touchable size on industrial touch panels. How can I access these properties? I was able to change the size of the ScrollViewer globally within a…
almonsin
  • 11
  • 2
1
vote
2 answers

WPF repeatbutton in scrollbar only triggers IsPressed from the template, not the style

I have a minor issue. We'd like to put as much stylistic items in the styles and outside of the control templates, to make themeing easier. So for the scrollbar's repeatbutton, I can get all of this to work but IsPressed. That only works from the…
dex3703
  • 2,077
  • 4
  • 28
  • 45
1
vote
2 answers

Event for when a Button is held clicked for some time

I am simulating a handheld device with WPF and MVVM (viewmodel is a state-machine, view is a simulated plastic case with buttons). The gesture that turns the device on and off is a "long click" in a button. For exemple, during use, if I press "OK"…
heltonbiker
  • 26,657
  • 28
  • 137
  • 252
1
vote
2 answers

Gradually decrease the interval on a RepeatButton

I have a RepeatButton in my project that scrolls a graph left and right. I want the scroll to slowly speed up as the user holds the button with their mouse. As far as I can tell, RepeatButton doesn't have this feature built in. Is there an easy way…
Jason Higgins
  • 1,516
  • 1
  • 17
  • 37
1
vote
1 answer

In WPF Disable Scrollbar RepeatButtons when no data at their ends

I have a scrollviewer control. Its coding
Nikhil Agrawal
  • 47,018
  • 22
  • 121
  • 208
0
votes
2 answers

RepeatButtons not loosing focus and remains highlighted forever

I ma working on my Up Down control and it works fine, but today I noticed a strange problem with repeat buttons in control. Once I click on the +/- repeat buttons they get highlighted with blue border(thats fine) but the problem is that they remain…
akjoshi
  • 15,374
  • 13
  • 103
  • 121
0
votes
2 answers

How do I capture the mouse when a Silverlight RepeatButton is depressed?

I have a RepeatButton on a UserControl that acts as the up button. The control is a number spinner of sorts. When the number value goes from 9 to 10 the up button is released because it moves out from under the mouse. I know I can capture the…
Jordan
  • 9,642
  • 10
  • 71
  • 141
1
2