View Issue Details

IDProjectCategoryView StatusLast Update
0004174NoesisGUIStudiopublic2025-05-20 12:18
Reporterdstewart Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Product VersionStudio_Beta 
Target VersionStudio_Beta 
Summary0004174: Many DynamicProperties Cannot Be Easily Used With Their 'DefaultValue' Field
Description

Currently, when creating any Component DynamicProperty; they each offer a 'DefaultValue' field, allowing the user to not only set a 'Default' for when the Component is introduced in a Page, but also provides a handy feature to 'preview' what the Component will look like in its final form, from within itself.

However, many of these DynamicProperties either don't offer, or are unclear about how to set the Default option they appear to provide.
Additionally, all of these lack the ability to populate via a Resource. In some cases, this results in lack of efficiency, but in some cases, such as in the case of an Object, seems to render the 'Default' field unusable.

Sample file attached containing a Component containing all of the DynamicProperties, to ease in inspection of the below comments:


1) BOOL:
Offers an input field, with no indication of the format to use between True/False, Checked/Unchecked, or 0/1.
Does not offer the ability to set a 'Boolean' Resource as the Default Value.

Turns out, after experimenting, that all 3 format work, which is pretty cool.
This should likely be a Checkbox rather than a Text field. Or, alternately, if we support the isThreeState in Bool DynamicProperties, then it should instead likely be a Dropdown offering Checked/Unchecked/ThreeState.


2) INTEGER:
Works as expected!
But does not offer the ability to set an 'Int16' or 'Int32' Resource as the Default Value.


3) FLOAT:
Works as expected!
But does not offer the ability to set any Numerical Resource as the Default Value.


4) STRING:
Works as expected!
But does not offer the ability to set any 'String' Resource as the Default Value.


5) IMAGE
Offers an input field, with no indication of the format to use to display an Image Asset.
Does not offer the ability to set an Image Resource as the Default Value.

Copy-pasting the Image Source from XAML (for example Pasting "Background.png") does not work.
After investigation, I found that this needs to use the "studio://ButtonWithContentControl;component/Background.png" syntax to work. However, as far as I could tell, there appears to be nowhere where this can be copy-pasted from even, and I had to hover over Background.png in the Assets Panel, take a screenshot of the tooltip containing the path, and then transcribing it by hand into the DynamicProperty Default Value field.

This should offer a dropdown of images available to use, just as when assigning a PNG to any Image/Source Property, or any ImageBrush/ImageSource Property.


6) BRUSH
Offers an input field, with no indication of the format to use to display a particular colour.
But does not offer the ability to set a Color or SolidColourBrush Resource as the Default Value.

From personal experience, I know that both using the WPF Names (eg "Coral" or "White") or a direct Hex Value works (eg: #FFEFEFEF).

This should likely be in the same format as all other colour selections within the application: ie a visible swatch, which brings up the Colour Picker when clicked.


7) OBJECT
Offers an input field, with no indication of the format to use to display any given object.
Since it appears to not offer to set any Resource as the Default Value (eg a DataTemplate), in this particular case, the 'Object' Default Value is potentially unusable in any form.

This should likely either offer a dropdown of all available objects within the Scope, or simply allow a Resource to be assigned to its DefaultValue using the same Resource Assignment method as throughout the rest of the application.

Attached Files
ComponentDefaults.zip (2,236,454 bytes)
PlatformAny

Activities

Issue History

Date Modified Username Field Change
2025-05-19 14:35 dstewart New Issue
2025-05-19 14:35 dstewart File Added: ComponentDefaults.zip
2025-05-19 14:35 dstewart Summary Many DynamicProperties Cannot Be Successfully Used With Their 'DefaultValue' Field => Many DynamicProperties Cannot Be Easily Used With Their 'DefaultValue' Field
2025-05-19 14:36 dstewart Description Updated
2025-05-20 12:18 jsantos Assigned To => sfernandez
2025-05-20 12:18 jsantos Status new => assigned
2025-05-20 12:18 jsantos Target Version => Studio_Beta