File tree 1 file changed +8
-2
lines changed
samples/BehaviorsTestApplication/Views
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 4
4
xmlns : vm =" using:BehaviorsTestApplication.ViewModels"
5
5
xmlns : views =" using:BehaviorsTestApplication.Views"
6
6
Title =" XamlBehaviors Test Application" Width =" 1000" Height =" 700"
7
- x : DataType =" vm:MainWindowViewModel"
8
- x : CompileBindings =" False" >
7
+ x : DataType =" vm:MainWindowViewModel" >
9
8
<Interaction .Behaviors>
9
+ <!-- TopLevel Logical tree special case -->
10
+ <!--
10
11
<EventTriggerBehavior EventName="Opened">
11
12
<InvokeCommandAction Command="{Binding InitializeCommand, Mode=OneTime}" />
12
13
</EventTriggerBehavior>
14
+ -->
15
+ <!-- TopLevel attached to visual tree special case -->
16
+ <RoutedEventTriggerBehavior RoutedEvent =" {x:Static Control.LoadedEvent}" >
17
+ <InvokeCommandAction Command =" {Binding InitializeCommand, Mode=OneTime}" />
18
+ </RoutedEventTriggerBehavior >
13
19
</Interaction .Behaviors>
14
20
<views : MainView />
15
21
</Window >
You can’t perform that action at this time.
0 commit comments