You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hide properties if they are not usable on this control #64
e.g. the Background Property on a TextBlock seems to be not available but is shown in the intellisense and studio also, but if it is set, nothing happens
TextBlock.Issue.mp4
Expected behavior
In cases like this, maybe those Propertie Fields should be hidden, so the User Expirience is not disturbed from nothing happens
Which tool(s) are affected?
Hot Design™
How to reproduce it (as minimally and precisely as possible)
dotnet new unoapp -preset blank -toolkit false -tfm net9.0 -platforms desktop -presentation mvux -markup xaml -theme material -di -nav regions -log default
open Presentation\MainPage.xaml or not not really making a difference
Start Debug and enter Studio
(dont know if this is relevant: set the Style to DisplaySmall in Studio UI)
now try to change the Background Property which is presented in the Studio
Workaround
try to use those Properties and recognize they are not implemented althought they are shown
This is somewhat a limitation of the XAML object model itself. Furthermore in some controls, the fact that a property isn't used may be a result of the style/control template being applied. This is great feedback and definitely something we can consider for future in terms of highlighting important/relevant properties
@MartinZikmund Its also confusing and maybe at least solvable in studio ui, that we have TextAlignment and HorizontalTextAlignment available while one of them is just without functionality/change same as the background. Maybe that could be reviewed in one go?
@nickrandolph@MartinZikmund dont heared from any future steps or seen changes in the tool... Dont know, is that hiding to be integrated that kind of difficult? Just curious because I don't know how HD discovers the properties we get to see 🤔
Activity
nickrandolph commentedon Mar 10, 2025
This is somewhat a limitation of the XAML object model itself. Furthermore in some controls, the fact that a property isn't used may be a result of the style/control template being applied. This is great feedback and definitely something we can consider for future in terms of highlighting important/relevant properties
DevTKSS commentedon Mar 10, 2025
Can you explain to me what do you mean by limitations of xaml?
What I would understand from it would be: its not possible to hide those if you inherit from another control?
Is that what you mean or something else?
MartinZikmund commentedon Mar 11, 2025
Indeed it is odd that
TextBlockwould show aBackground, such property really does not exist there 🤔DevTKSS commentedon Mar 11, 2025
@MartinZikmund Its also confusing and maybe at least solvable in studio ui, that we have TextAlignment and HorizontalTextAlignment available while one of them is just without functionality/change same as the background. Maybe that could be reviewed in one go?
DevTKSS commentedon Jul 17, 2025
@nickrandolph @MartinZikmund dont heared from any future steps or seen changes in the tool... Dont know, is that hiding to be integrated that kind of difficult? Just curious because I don't know how HD discovers the properties we get to see 🤔