Roadmap questions: Style.Triggers, RelativeSource Binding, x:Type, MethodBase.GetMethodFromHandle

TaterJuice
Posts: 23
Joined: Thu Mar 16, 2017 5:40 am

Roadmap questions: Style.Triggers, RelativeSource Binding, x:Type, MethodBase.GetMethodFromHandle

Postby TaterJuice » Tue Mar 28, 2017 12:53 pm

What is the current timeline to bring the following features to CSHTML5?

Style.Triggers, for example:

Code: Select all

<Style.Triggers>
   <Trigger Property="IsMouseOver" Value="True">
      <Setter Property="Background" Value="Red" />
   </Trigger>
</Style.Triggers>


RelativeSource Binding
I see that RelativeSource Bindings exist, but inside the binding, I cannot set the actual RelativeSource. For example, this does not compile:

Code: Select all

<ListBox.ItemTemplate>
    <DataTemplate>
        <TextBlock
            Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource AncestorType=ListBoxItem}}" />
    </DataTemplate>
</ListBox.ItemTemplate>


MethodBase.GetMethodFromHandle
This would add Strongly-Named PropertyChanged events for MVVM frameworks, for example, allowing you to fire a propertychanged notification using

Code: Select all

this.RaisePropertyChanged(() => this.Name)

rather than

Code: Select all

this.RaisePropertyChanged("Name")


Additionally, what about

Code: Select all

{x:Type ...}
and implicit styles in XAML? For example,

Code: Select all

<Style BasedOn={StaticResource {x:Type ListBoxItem}}" />

JS-Support
Site Admin
Posts: 664
Joined: Tue Apr 08, 2014 3:42 pm

Re: Roadmap questions: Style.Triggers, RelativeSource Binding, x:Type, MethodBase.GetMethodFromHandle

Postby JS-Support » Thu Mar 30, 2017 4:56 am

Hi,

Thanks for the feedback. All those features are on the roadmap for 2017. If you would like to accelerate their development, and get a very short and guaranteed delivery date, it is possible to do so by contributing to the funding (please contact the CSHTML5 team for a quote).

Thanks a lot.
Regards,
JS-Support


Return to “General Discussion and Other”

Who is online

Users browsing this forum: No registered users and 2 guests

 

 

cron