Select to view content in your preferred language

Event triggers against a DynamicLayer

571
1
10-28-2010 12:48 PM
GrantCarroll
Deactivated User
Hi All

Does anyone know if its possible to use the Microcsoft Expression libraries to create event triggers ? I'm trying to convert an application to MVVM and I have use this pattern to implement event handling in other projects, but I'm not sure if the reason its not working is because I've missed something or if it just simply won't work against a dynamiclayer.

eg

<esri:ArcGISDynamicMapServiceLayer Url="SomeURL">
                        <i:Interaction.Triggers>
                            <i:EventTrigger EventName="Initialized">
                                <ei:CallMethodAction TargetObject="{Binding}" MethodName="LayersInitialized_Handler"/>
                            </i:EventTrigger>
                        </i:Interaction.Triggers>
                    </esri:ArcGISDynamicMapServiceLayer>

Thanks
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
I have not done this myself but this might help http://blog.roboblob.com/2010/01/26/binding-ui-events-from-view-to-commands-in-viewmodel-in-silverli...

DynamicLayer is not the UIElement though, Map is - so maybe you need to change the Binding statement.
0 Kudos