views:

32

answers:

1

Considering the code below:

 xmlns:interactivity="clr-namespace:Microsoft.Expression.Interactivity;assembly=Microsoft.Expression.Interactivity"

...

 <ToggleButton IsChecked="{Binding Path=IsGlobalControllerAttached}" Command="{Binding Path=AttachDetachGlobalControllerAction}" ToolTip="{Binding Path=GlobalControllerToolTip}" Visibility="{Binding Path=CanApplyDateFilter, Converter={StaticResource bool2VisibilityConverter}}" Style="{StaticResource toolBarToggleButton}">
                <i:Interaction.Behaviors>
                    <ei:DataStateBehavior Binding="{Binding IsGlobalControllerCreated}" Value="true" TrueState="Normal" FalseState="Disabled" />
                </i:Interaction.Behaviors>
                <Image Source="../../Common/Images/pin.png"/>
            </ToggleButton>

I am trying to set VisualState of Toggle Button by binding it to some property in ViewModel. Here, I am not able to find the Microsoft.Expression.Interactivity.dll in the "Add Reference" list. I am using VS 2010. What am i missing? Do i need to install Expression blend to get this dll?

Also, Is there any other way to get the job done? ( Changing VisualState of a control by biding it with some property of ViewModel).

Thanks for your interest.

A: 

Yes, you'll need the Blend SDK.

From this link

"That assembly is part of the Expression Blend SDK which is a free download: http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=75e13d71-7c53-4382-9592-6c07c6a00207"

Meleak
Thanks for the answer. Not accepting your answer since i am looking for some other way to achieve the task.
Amby