Skip to content
Cole Campbell edited this page Mar 3, 2018 · 3 revisions

Ultraviolet Framework 1.3 added support for assigning visual effects to elements that modify their appearance.

Effect Classes

There are, at present, three build-in effect types, all of which are found in the Ultraviolet.Presentation.Media.Effects namespace.

  • BlurEffect

    Applies a Gaussian blur to the element.

  • DropShadowEffect

    Applies a drop shadow to the element.

  • ShaderEffect

    Applies the specified shader to the element.

An element's effect is specified by the value of the Effect dependency property defined on FrameworkElement.

<Button Content="Hello, world!" Width="100" Height="100" HorizontalAlignment="Center" VerticalAlignment="Center">
  <Button.Effect>
    <DropShadowEffect/>
  </Button.Effect>
</Button>
Clone this wiki locally