Skip to content

keytrap-x86/Parallax.WPF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallax.WPF

Parallax Effect for WPF

This is a fork from https://github.com/Pyrathlon/Parallax.WPF where I added a Nuget package

Install with Nuget

Install-Package Parallax.WPF

After you installed Parallax.WPF

  • Add reference :
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:parallax="clr-namespace:Parallax.WPF;assembly=Parallax.WPF"
  • Use the effect like this :
<Image Source="Images/Backgrounds/cosmo_bg.PNG" Margin="-30" Stretch="UniformToFill"
                     parallax:ParallaxEffect.IsBackground="True"
                     parallax:ParallaxEffect.Parent="{Binding ElementName=TopGrid}"
                     parallax:ParallaxEffect.UseParallax="True"
                     parallax:ParallaxEffect.XOffset="50"
                     parallax:ParallaxEffect.YOffset="50">
    <i:Interaction.Behaviors>
        <parallax:ParallaxEffect/>
    </i:Interaction.Behaviors>
</hc:GifImage>

Demo

I0w9ZsT.mp4

About

Parallax Effect for WPF

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages