Comments (9)
@RajClinton26 why are you using DesignerSerializationVisibility.Content
on a bool
property? Shouldn't you use DesignerSerializationVisibility.Visible
?
DesignerSerializationVisibility.Content
is for more complex objects like Collections, is that what you are having issues with?
@Epica3055 Can your team test that DesignerSerializationVisibility.Visible
works okay on the same property?
from winforms.
@LeafShi1 can you guys pull out the list of types or properties in the sample project so we know which one's we're worrying about.
from winforms.
I have no idea, but at least there is a work around for now.
When you say non-complex object property
do you mean a class
or a primitive
? DesignerSerializationVisibility.Content
is really meant for collections and not much else. I suspect its the designer not checking the object type, or maybe it needs a custom TypeConverter
for your class?
It is definitely a bug for a bool
property to not be persisted when using DesignerSerializationVisibility.Content
in my mind, the designer should handle that. Otherwise an analyzer should exist for DesignerSerializationVisibility.Content
and warn users about using it on primitive properties.
from winforms.
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public bool CanChangeValue
{
get;
set;
}
from winforms.
Hi @merriemcgaw / @LeafShi1 / @Epica3055 ,
Any update regarding the above designer related issues in .NET Core.?
from winforms.
@elachlan I have used the DesignerSerializationVisibility.Visible
attribute on a property, and it worked fine.
However, when we used the DesignerSerializationVisibility.Content
attribute on a non-complex object property
, the assigned value to this property persists after rebuilding in .NET Framework, but not in .NET Core.
Could you please provide the reason for this inconsistency?
from winforms.
@elachlan - Thanks for the update. Can we consider this as a bug in .NET CORE.?
from winforms.
Up to the team. I do not work on the winforms team. I suggest using DesignerSerializationVisibility.Visible
as a work around until it is fixed.
from winforms.
We will take a look at this, but be aware that since a simple workaround exists this issue won't be high in the priority list.
from winforms.
Related Issues (20)
- Massive GDI (region) leak. Help needed. HOT 9
- Unresponsiveness issue during Real-Time Updates in Winforms DataGridView HOT 4
- [ARM64]The Form1.cs[Design] page cannot load successfully after installed the latest .NET 9.0 Preview4 or Preview5 HOT 3
- GDI/BitBlt features for .NET Core? HOT 1
- Add GetData<T> Method to Clipboard HOT 2
- The selected control should have a solid border in the DemoConsole application HOT 1
- Single instance app doesn't work when same app is in different folders HOT 3
- Investigate BinaryFormatter Impact On DataSets HOT 1
- Restrict Certain OLE Data Coming in From Different Processes
- Investigate JSON Serialization/Deserialization in OLE
- Allow Binary Format Binder Specification
- Shrink/ losslessly compress `ICO` resource files to reduce size of apps published with SingleFile/AOT HOT 4
- Unstable unit test: System.Windows.Forms.Tests.ToolStripTests.ToolStrip_WndProc_InvokeMouseActivateWithHandle_Success
- Anchors of user control don't work when scaling on high DPI (#6381) HOT 3
- Allow internal types to be selected as object data source for binding HOT 1
- Winform Designer generates confliting resource files on partial class HOT 6
- Add WindowsFormsLifetime extensions to the .NET Generic Host HOT 18
- Can't remove tooltip once added to NumericUpDown HOT 3
- Unstable unit test: System.Windows.Forms.Tests.ToolStripTests.ToolStrip_WndProc_InvokeMouseActivate_Success
- Make some internal/private VS designer sdk classes public
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winforms.