NoesisGUI

StyleInteraction Class

namespace NoesisApp

Allows setting a collection of Interactivity behaviors and triggers in a Style, so they are applied to all instances of the styled control.

<Grid
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
  xmlns:noesis="clr-namespace:NoesisGUIExtensions">
  <Grid.Resources>
    <Style TargetType="Button" BasedOn="{StaticResource {x:Type Button}}">
      <Setter Property="noesis:StyleInteraction.Triggers">
        <Setter.Value>
          <noesis:StyleTriggerCollection>
            <i:EventTrigger EventName="Click">
              <ei:PlaySoundAction Source="Sounds/ButtonClick.wav" />
            </i:EventTrigger>
          </noesis:StyleTriggerCollection>
        </Setter.Value>
      </Setter>
    </Style>
  </Grid.Resources>
  ...
</Grid>

Inheritance Hierarchy

StyleInteraction

INDEX Class Hierarchy Index

Methods

StyleInteraction has no methods

Properties

StyleInteraction has no properties

Events

StyleInteraction has no events

© 2017 Noesis Technologies