Questions tagged [custom-controls]

A custom control is a reusable GUI element, derived from an existing control type, customized with additional behavior, functionality and/or appearance.

Depending on the platform, language, framework and purpose, custom controls are likely to be installed in a GUI designer for ease of use.

Some languages or frameworks (e.g. ) might have specific meanings to the term "custom control" or might provide specific features or capabilities for a custom control instance that are not applicable to base controls.

Custom controls can be self written or found in a lot of frameworks.

4201 questions
1
vote
2 answers

Hidden Field not loading from view state on post back within parent custom control

I have a parent control that has an instance of a HiddenField child control. I am using CreateChildControls() to add it. Everything works client side including the values being added to the field. However, on postback, the reference to the field is…
Matthew Cox
  • 13,566
  • 9
  • 54
  • 72
1
vote
1 answer

Custom rounded button with outline

I am tring to create a custom button width rounded corner and a white outline which follows its shape. On the OnPaint event I've added the following code. Public Class RoundedButton Protected Overrides Sub OnPaint(e As PaintEventArgs) …
Cristian Cundari
  • 317
  • 1
  • 3
  • 13
1
vote
3 answers

Implementing custom NSView in Cocoa on OS X

I am creating a Cocoa application wherein one view will contain the "hex dump" of the currently loaded document. Up until this point, I have been using a bog-standard (and very unappealing) NSTextField, but I am now looking for something more…
Aidan Steele
  • 10,999
  • 6
  • 38
  • 59
1
vote
2 answers

What is the best VB.NET control (standard/custom) for displaying list of files?

I'm developing a Desktop Search Engine in VB.NET and I'm looking for a powerful, flexible and feature-rich control for displaying the search results i.e. list of files.
user57175
  • 3,284
  • 9
  • 32
  • 26
1
vote
1 answer

How to create IsSelected property for custom itemscontrolItem?

I am trying to create a custom ItemsControl by directly inheriting from ItemsControl (WPF/Silverlight, I am using same code base for both). I have created an Item class for it by inheriting from ContentControl. I want to create IsSelected property…
Gaurave Sehgal
  • 119
  • 3
  • 11
1
vote
1 answer

Xamarin Form - Utilizing ResourceDictionary Style with Custom UserControl

I have a custom User Control as to utilized FontAwesome fonts on the app, and it works correctly. I want to style the control with Style in the ResourceDictionary in App.xaml. The page utilizing the style is:
Diomedes
  • 634
  • 11
  • 24
1
vote
0 answers

Is it possible to make diagonal column headers in JavaFX?

My JavaFX TableView looks something like this: It would be so much more pleasing and efficient if the labels at the top were diagonal to save space. I imagine it like so: The goal is to make the column fit closely to the content despite a long…
Brad Turek
  • 2,472
  • 3
  • 30
  • 56
1
vote
2 answers

Angular 2 - ControlValueAccessor - How to implement?

I keep having "No value accessor for form control with unspecified name attribute" some say ngDefaultControl should be added but it does not trigger any change in my component I tried to implement ControlValueAccessor instead but I get back to the…
Phil
  • 708
  • 1
  • 11
  • 22
1
vote
2 answers

In a Silverlight CustomControl how can you layout elements of that control according to a Grid that contains the Control?

Assume a custom control in Silverlight that has three TextBlock elements named Left, Middle and Right. I want to place the control inside of a grid that has three columns, and I would like the position of those elements to be the same as if I had…
1
vote
1 answer

How do I create a custom control in Open Layers with an image inside?

http://openlayers.org/en/latest/examples/custom-controls.html?q=custom This is a good example of how to create a custom control but I can't seem to make it work with an image. The image I want to include in the custom control is here Also, I don't…
Anabella G.
  • 41
  • 1
  • 7
1
vote
2 answers

Binding Canvas Background in Generic.xaml for custom control

In WPF, I have a Canvas to which I am drawing horizontal lines across the background, something like a notepad with ruled lines. The spacing of these lines is bound to the viewmodel. The below code works well. I now would like to convert the canvas,…
Alan Wayne
  • 5,122
  • 10
  • 52
  • 95
1
vote
1 answer

Custom Action Control Swift 3.0

I have created a custom rating control using Apples's documentation at https://developer.apple.com/library/content/referencelibrary/GettingStarted/DevelopiOSAppsSwift/ImplementingACustomControl.html. I have been able to successfully add it to…
Why
  • 626
  • 11
  • 29
1
vote
0 answers

How to set custom properties in an inherited control in xaml

I built a custom control TabularListView based on ListView with a new Property, an ObservableCollection of TabularListViewHeaderColumn. TabularListView: class TabularListView : ListView { public TabularListView() { Columns = new…
1
vote
1 answer

Change the XAML auto generating text when a custom control is dropped from the toolbox onto Mainwindow

When a wpf custom control is added to the toolbox and dragged onto the MainWindow, the automatically generated text in the XAML editor contains some properties=values by default. How can I alter this text so that automatically includes some new…
1
vote
4 answers

asp.net usercontrol vs customcontrol vs stringbuilder

I'm building a product catalog which displays between 50/100 products per page. Since I want to have different browse sections on my site I've put each product into a UserControl. Well, not the products themselves ofcourse, but some labels, divs and…
Mark
  • 31
  • 3
1 2 3
99
100