Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

WPF Extensibility Hacks or WEX - Includes EventTrigger, ReactiveTrigger, InvokeMethodAction, InvokeCommandAction etc.

, 14 Jan 2010
A set of extensibility hacks for WPF. A few interesting triggers and actions, including EventTrigger, ReactiveTrigger, InvokeMethodAction, and InvokeCommandAction. Also allows invoking Triggers and Actions based on Conditions.
Wex.zip
Assemblies
Microsoft.Expression.Interactions.dll
System.ComponentModel.Composition.dll
System.CoreEx.dll
System.Interactive.dll
System.Reactive.dll
System.Windows.Interactivity.dll
WexEventTrigger
ClassDiagram1.cd
Wex.csproj.user
bin
Debug
WexEventTrigger.dll
WexEventTrigger.vshost.exe
WexEventTrigger.vshost.exe.manifest
Composition
Lib
Properties
Settings.settings
Reactive
WexEventTrigger.Demo
bin
Debug
WexEventTrigger.Demo.vshost.exe
WexEventTrigger.Demo.vshost.exe.manifest
Commands
Extensions
Properties
Settings.settings
Views
Demos
<Window x:Class="WexEventTrigger.Demo.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:wexdemo="clr-namespace:Wex.Lib.Demo.Views.Demos"
    Title="Wex Demo" Height="303" Width="491">
    <Grid x:Name="LayoutRoot">
        <ScrollViewer HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">

                <TabControl TabStripPlacement="Left"  x:Name="LinksStackPanel"  
                           HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Margin="2" Padding="10" >
                    <TabItem x:Name="Link1" Padding="3" 
                                     Header="Simple EventTrigger Demo" >
                        <StackPanel>
                            <TextBlock TextWrapping="Wrap" Text="Shows how to invoke events, based on conditions" Margin="3" />
                            <wexdemo:EventTrigger/>
                        </StackPanel>
                    </TabItem>
                <TabItem x:Name="Link2" Padding="3" 
                                     Header="Simple PropertyTrigger Demo" >
                    <StackPanel>
                        <TextBlock TextWrapping="Wrap" Text="Shows how to invoke property triggers, based on conditions" Margin="3" />
                        <wexdemo:PropertyTrigger/>
                    </StackPanel>
                </TabItem>
                <TabItem x:Name="Link3" 
                                     Header="Simple Invoke Method Demo">
                        <StackPanel>
                            <TextBlock TextWrapping="Wrap" Text="Shows how to invoke a method, and pass the parameters, based on conditions" Margin="3" />
                            <wexdemo:InvokeMethod />
                        </StackPanel>
                    </TabItem>
                    <TabItem x:Name="Link4"  
                                     Header="Simple Invoke Command Demo">
                        <StackPanel>
                            <TextBlock TextWrapping="Wrap" Text="Shows how to invoke a command, and pass the parameters, based on conditions" Margin="3" />
                            <wexdemo:InvokeCommand />
                        </StackPanel>
                    </TabItem>
                    <TabItem x:Name="Link5"  
                                     Header="Story Board Action Demo">
                        <StackPanel>
                            <TextBlock TextWrapping="Wrap" Text="Shows how to use Slex StoryBoardAction" Margin="3" />
                            <wexdemo:StoryBoardAction/>
                        </StackPanel>
                    </TabItem>
                    <TabItem x:Name="Link6"  
                                     Header="Reactive Trigger Example">
                        <StackPanel>
                            <TextBlock TextWrapping="Wrap" Text="Shows how to use a reactive trigger" Margin="3" />
                            <wexdemo:ReactiveTrigger/>
                            </StackPanel>
                    </TabItem>
                    <TabItem x:Name="Link7"  
                                     Header="PropertyAction Example (Set)">
                        <StackPanel>
                            <TextBlock TextWrapping="Wrap" Text="Shows how to set a property" Margin="3" />
                            <wexdemo:SetPropertyAction/>
                        </StackPanel>
                    </TabItem>
                    <TabItem x:Name="Link8" 
                                     Header="ConditionalTriggers Example (Set)">
                        <StackPanel>
                        <TextBlock TextWrapping="Wrap" Text="Shows how to use conditional triggers" Margin="3" />
                        <wexdemo:ConditionalTriggers/>
                            </StackPanel>
                    </TabItem>

                </TabControl>


        </ScrollViewer>
    </Grid>
</Window>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author


| Advertise | Privacy | Mobile
Web04 | 2.8.140827.1 | Last Updated 14 Jan 2010
Article Copyright 2010 by Anoop Madhusudanan
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid