How can we improve the Windows dev platform?

VisualState setters should support custom attached properties

The VisualStateManager ignores Visual State Setters using custom attached properties. This works with normal attached properties, so it's confusing that it doesn't work for custom ones. The hack to get this to work is really ugly and requires custom code for every case using reflection: https://social.msdn.microsoft.com/Forums/expression/en-US/0f9826e1-48d2-4cd7-8253-a5b9aaf0e03d/uwpadaptative-triggers-with-custom-attached-properties-in-windows-10-uwp

8 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Michael shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Agnes.Z commented  ·   ·  Flag as inappropriate

        Would love for a syntax like that to be able to work on UWP :

        <Setter Target="Name.(custom:CustomBehavior.CustomProperty)"
        Value="CustomValue." />

      Feedback and Knowledge Base