question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't find PropertyChanging Attribute

See original GitHub issue

Hello kekyo, I have a question about using PropertyChanging Attribute.

As the Documentation, not only PropertyChanged but also PropertyChanging can be used. But when I try to use it, VS can’t find the symbol.

If I understood correctly, both following code can available, isn’t it?

public WindowState MainWindowState { get; set; }
[PropertyChanging(nameof(MainWindowState))]
private ValueTask WindowStateChanged(WindowState state)
{
	MainShowInTaskbar = true;
	return default;
}
public WindowState MainWindowState { get; set; }
[PropertyChanged(nameof(MainWindowState))]
private ValueTask WindowStateChanged(WindowState state)
{
	if (state == WindowState.Minimized)
	{
		MainShowInTaskbar = false;
	}
	return default;
}

Is PropertyChanging Attribute not been implemented yet?

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
kekyocommented, Mar 3, 2023

Around this of Epoxy.Build is where the PropertyChangedAttribute and generate code for it. I think that similar code could be inserted here to support PropertyChangingAttribute.

It is okay if it is too difficult to implement. Even if you give up, I maybe implement it in later 😃

1reaction
sappho192commented, Mar 13, 2023

Thank you for such a detailed explanation and tips.

The binding system is a better structure, but it is not perfect, and I personally think it is better not to go too deep into it, because there are some problems such as the lack of clear subject-object relationship and the difficulty in dealing with triggers of events.

Yes, recently I started to realizing this at some point. It is very paradoxical that the more I get to know, the more I don’t know. 😂

It is okay if it is too difficult to implement. Even if you give up, I maybe implement it in later 😃

Actually I’m little intimidated of decompiler and source generater codes in Epoxy.Build, but I still want to give it a try! Thank you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Attribute on property not found
1 Answer. You defined the attribute on the property, not on the property accessors. To provide the attribute on the getter, you would...
Read more >
View or change the properties for an Office file
In Publisher you'd select Publication Properties. Currently, you can't view or create custom properties for Visio files. Click the Custom tab.
Read more >
.attr(): type property can't be changed
I am trying to change input type from password to text but I am getting the error in the subject. $('#password').attr("type", "text") This...
Read more >
Attributes and properties
The attributes collection is iterable and has all the attributes of the element (standard and non-standard) as objects with name and value ...
Read more >
Python's property(): Add Managed Attributes to Your Classes
In this step-by-step tutorial, you'll learn how to create managed attributes, also known as properties, using Python's property() in your custom classes.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found