Skip to main content

Questions tagged [controls]

Use this tag for programming scenarios related to controls (interactive elements of the user interface).

2,281 questions with no upvoted or accepted answers
18 votes
2 answers
5k views

How can I conditionally disable a control in Storybook based on the value of another argument?

I am trying to conditionally disable a Storybook.js control based on the value of another argument. For example, I have a modal component that can be of type 'alert', 'confirmation', 'content', or '...
Wil S.'s user avatar
  • 303
11 votes
0 answers
827 views

Scrollbar painting issue with thickened non-client window border

I am trying to draw a coloured border around the client area of a custom control with scrollbars. To this end, I set BorderWidth to a positive integer and respond to the WM_NCPAINT message. This ...
Andreas Rejbrand's user avatar
9 votes
0 answers
364 views

detect when playback controls are on the screen

I want to display a banner in the lower third an AVPlayer. I am trying to detect when an AVPlayerViewController's playback controls appear and disappear from the screen so I can hide the banner ...
Chris Horsfield's user avatar
9 votes
0 answers
5k views

Android Remote control app (on phone) for controlling Android TV

I've skimmed through the Google TV Pairing protocol and downloaded the TV Paring protocol sample code from https://code.google.com/p/google-tv-pairing-protocol/ I've also read about the Anymote ...
dangling_refrenz's user avatar
9 votes
1 answer
3k views

"A value of type FixedToolBar cannot be added to a collection or dictionary of type 'UIElementCollection'" but FixedToolBar is a subclass of UIElement

We have a custom control called FixedToolBar defined in a class library which is referenced by a second assembly which uses it via XAML. However, VS2015 is showing the error: A value of type ...
Mark A. Donohoe's user avatar
9 votes
0 answers
3k views

iOS "Touch to Return to Navigation" style Banner

In the phone App or the Maps App if the App is in the background a glowing "Bar" appears on the top that the user can touch to return to the App. For the Apple Maps app - this is a "Touch to Return ...
OneGuyInDc's user avatar
  • 1,557
8 votes
2 answers
703 views

Power control widget shown for a short moment when updating my own widget via AppWidgetManager, what's the problem?

I've got a problem when updating my widget manually via AppWidgetManager.updateAppWidget. Platform is Android 2.2. Here's the code: I declared the widget additionally to an existing Activity in the ...
Oli's user avatar
  • 81
6 votes
0 answers
3k views

error: only position independent executables (PIE) are supported

When I execute a bin file in my code, Android L 5.0 blocking the execution of these file with following error Error: only position independent executables (PIE) are supported My executable files are ...
user3569769's user avatar
5 votes
1 answer
714 views

Replicate background blur used for SwiftUI GraphicalDatePickerStyle for a custom control

I'm trying to develop a custom control for use in a form that behaves in a similar manner to SwiftUI's DatePicker (within a Form it defaults to GraphicalDatePickerStyle). Apple's control displays the ...
rustproofFish's user avatar
5 votes
0 answers
1k views

How to run a function in the controls of Storybook?

I got a component which has a button that can be clicked. It got its props, here it go: ... <Button id="buttonAddTreatments" color={colorOfTheButton} variant="contained" ...
Pedro Relvas's user avatar
5 votes
1 answer
406 views

Detect when a control on design surface is selected

I'm writing an Expression Blend 4 Extension and I want to detect (in my extension) when a Control or Element on the design surface is selected. Can someone tell me how I can detect it? Thanks, Tim
Tim's user avatar
  • 51
5 votes
1 answer
4k views

Wpf Xaml - TreeView Hierarchical Data Templates - multiple item sources

I have a class like this (describes class in C# and its fields, methods and so on): public class CSharpType { public string Name { get; private set; } public List<CSharpMethod> ...
BeginnerWpf's user avatar
5 votes
1 answer
2k views

Creating custom transparent control

I am trying to create a custom control that displays a bitmap with per-pixel alphablend (as some of you already know for other questions). Right now I am using a custom control in the resource editor ...
Javier De Pedro's user avatar
5 votes
3 answers
2k views

Respond to apple tv controls during video playback

I have an app with a AVPlayer to play video. I would like to be able to detect when the user has pressed a button on the remote control. I have tried implementing the following methods, however the ...
Smashkon's user avatar
  • 115
4 votes
0 answers
788 views

Get/Change value of widget controls dynamically in Elementor

I am developing a plugin for the elementor editor , and I am stuck with this problem that I need help resolving, I need to get the Values of the controls on the side , like for example getting the ...
Sagi Weizmann's user avatar

15 30 50 per page
1
2 3 4 5
153