Table of Contents
- Getting Started
- EO.Pdf
- EO.Web
- EO.WebBrowser
- EO.Wpf
- Overview
- Installation & Deployement
- Skin & Theme
- Common Taskes and Services
- EO.Wpf Buttons
- EO.Wpf Calendar & DatePicker
- EO.Wpf ComboBox
- EO.Wpf DockView
- EO.Wpf Gauge
- EO.Wpf ListBox
- EO.Wpf Menu
- EO.Wpf MaskedEdit
- EO.Wpf ProgressBar
- EO.Wpf Slider
- EO.Wpf SpinEdit
- EO.Wpf SplitView
- EO.Wpf TabControl
- EO.Wpf TreeView
- EO.Wpf Utility Controls
- EO.Wpf WindowChrome
- Sample Data Objects
- Common Topics
- Reference
Using EffectManager |
EO.Wpf EffectManager offers the ability to play "expand" or "collapse" effect on any FrameworkElement. The following code demonstrates how to "slide in" a button:
<Window x:Class="Test.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:eo="http://schemas.essentialobjects.com/wpf/" Title="Window1" Height="300" Width="400"> <StackPanel> <Button x:Name="btnTest" Width="100" Height="30" Click="btnTest_Click">Test</Button> <Button x:Name="Button1" Visibility="Collapsed" Width="300"> <!-- Set EffectManager.ExpandEffect attached property --> <eo:EffectManager.ExpandEffect> <eo:Effect Type="GlideLeftToRight"></eo:Effect> </eo:EffectManager.ExpandEffect> <!-- Set EffectManager.CollapseEffect attached property --> <eo:EffectManager.CollapseEffect> <eo:Effect Type="GlideLeftToRight"></eo:Effect> </eo:EffectManager.CollapseEffect> This Button will slide in and out </Button> </StackPanel> </Window>
The above code set EffectManager.ExpandEffect and EffectManager.CollapseEffect on "Button1". As a result, setting the button's Visiblity automatically triggers the expand effect and collapse effect associated to the button control.