Questions tagged [custom-properties]

Use the custom-properties tag for questions relating to using non-standard or ad hoc properties in programming languages, APIs, or programming tools that allow them. For questions about custom properties in CSS, use the css-variables tag, instead.

Custom properties are just that: non-standard or ad hoc properties in programming languages, APIs, or programming tools that allow them to be defined by the programmer when writing code or during run time. For questions about custom properties in CSS, use the tag, instead.

115 questions
77
votes
10 answers

Adding custom properties to a function

Searching for appropriate answer proved difficult because of the existence of many other problems related to my keywords, so I'll ask this here. As we know, functions in JavaScript are objects and they have their own properties and methods (more…
Przemek
  • 6,300
  • 12
  • 44
  • 61
14
votes
3 answers

WebStorm CSS cannot resolve custom property

In my CSS file I'm using custom CSS as can be seen from the photo. WebStorm gives errors. How can I fix it? When hovered on it full error is here Cannot resolve '--color-gray-1' custom property This inspection warns about CSS custom property…
demiculus
  • 1,243
  • 1
  • 12
  • 32
12
votes
2 answers

Get value from custom attribute-decorated property?

I've written a custom attribute that I use on certain members of a class: public class Dummy { [MyAttribute] public string Foo { get; set; } [MyAttribute] public int Bar { get; set; } } I'm able to get the custom attributes from…
Joe
  • 41,484
  • 20
  • 104
  • 125
6
votes
1 answer

Expose A Property Of Type List In VS Designer Limiting/Hiding Access To Members Or Show Property As Expandable Menu?

I have created a custom tab control for my Windows application. The custom tab control extends System.Windows.Forms.TabControl. The reason why I created a custom tab control is so I can expose a property in the Visual Studio Properties window that…
5
votes
0 answers

how to show color preview for css custom properties/variables in VSCode/VSCodium

I spend a lot of time writing css for custom WordPress themes in VSCodium. I've created scripts using wp-cli to automate a lot of the process, so I use lots of custom properties/variables, especially for colors: foregrounds, backgrounds, and…
5
votes
3 answers

How do I set the JDBC driver's securityMechanism property with TLS_CLIENT_CERTIFICATE_SECURITY option on Liberty?

I tried to set the JDBC driver's securityMechanism property with the TLS_CLIENT_CERTIFICATE_SECURITY option on Websphere Liberty® referring to the following IBM® Knowledge Center, but got a CWWKG0032W warning message when I started Websphere Liberty…
shimac-jp
  • 233
  • 3
  • 11
4
votes
1 answer

Cannot use Custom property of a label in data triggers

I am making a WPF application with custom TitleBar. It also has a Custom Button style. Though I made both of the custom controls perfectly but while creating a resize button that changes it's caption with the windows state problem occours. The XAML…
4
votes
1 answer

C# custom control property: unable to set DefaultValue field

I am trying to set a custom C# control property. Here's my code: /* Cancel's button text */ [Category("ComboTouch"), Description("Text to display in cancel button"), DefaultValue("Cancel")] public String ct_cancelButtonText { get; set; } I can get…
Oskytar
  • 205
  • 2
  • 8
3
votes
1 answer

UserControl Custom Properties for Triggers

I am writing a custom user control, called MyUserControl. I have many DependecyProperties for it, which I use in the MainWindow where several MyUserControl are defined multiple times. What I would like to know is how can I create custom Properties…
Mihaiu Adrian
  • 69
  • 1
  • 1
  • 8
3
votes
1 answer

SharePoint Web Part Custom Properties Don't Take Effect Until Page Reload

I am developing a sharepoint 2007 web part that uses custom properties. Here is one: [Personalizable(PersonalizationScope.User), WebDisplayName("Policy Update List Name")] [WebDescription("The name of the SharePoint List that records all the policy…
3
votes
3 answers

getPropertyValue() includes whitespace of CSS formating when retrieving Custom CSS Property Values

When I get the value of a custom CSS property, the getPropertyValue method returns a DOMString that includes the whitespace I used in my CSS formatting. Is there a different method that I should be using to obtain the value of custom CSS properties…
Lonnie Best
  • 9,936
  • 10
  • 57
  • 97
3
votes
0 answers

ActiveX Control Design Mode Property Change Issue

I'm using a self-authored ActiveX control on an MS Access form. On adding the Active X control, I can set a custom design time property without issue. However, if I go back into design mode to change the value of the design time property, the…
Mike Humphreys
  • 101
  • 1
  • 3
3
votes
1 answer

Codable custom class type property can not initialize its own properties from JSON

My Json: { "message":"OK", "response":[ { "article_id":"201802062200722818", "lead":"Poliisi vapautti naisen ja otti miehen kiinni. Satakunnan käräjäoikeus vangitsi miehen tiistaina.", …
Ankush
  • 2,405
  • 3
  • 22
  • 45
3
votes
5 answers

WPF tab order with custom controls?

I have a WPF page that contains several out of the box controls with the tab order set. I have a custom control (NumericSpinner) that contains: border/grid/text box/2 Repeatbuttons (up/down). Two issues: 1) when I am in the textbox for the custom…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
3
votes
2 answers

User Control Custom Property lose value when build

I have a UserControl named "UserControl1" with a label inside it and a custom property: [Browsable(true)] public new string Text { get { return label1.Text; } set { label1.Text = value; } } public UserControl1() { …
1
2 3 4 5 6 7 8