|
9 | 9 | d:DesignHeight="300" d:DesignWidth="600" Background="{StaticResource ToolBackground}"> |
10 | 10 | <UserControl.Resources> |
11 | 11 | <ResourceDictionary> |
12 | | - |
| 12 | + |
13 | 13 | <helios:EnumConverter Type="{x:Type helios:BindingValueSources}" x:Key="BindingSourceValues" /> |
14 | 14 |
|
15 | 15 | <Style x:Key="PropertiesTabs" TargetType="TabControl"> |
|
19 | 19 | </DataTrigger> |
20 | 20 | </Style.Triggers> |
21 | 21 | </Style> |
22 | | - |
| 22 | + |
23 | 23 | <Style x:Key="LuaHelpTextStyle" TargetType="TextBlock"> |
24 | 24 | <Setter Property="Visibility" Value="Collapsed" /> |
25 | 25 | <Style.Triggers> |
|
42 | 42 | </Style> |
43 | 43 |
|
44 | 44 | <local:BindingsDragDropAdvisor x:Key="DropAdvisor" /> |
45 | | - |
46 | | - <Style x:Key="ValueExpanderStyle" TargetType="Expander" BasedOn="{StaticResource {x:Type Expander}}"> |
| 45 | + |
| 46 | + <Style x:Key="ValueExpanderStyle" TargetType="Expander" BasedOn="{StaticResource {x:Type Expander}}"> |
47 | 47 | <Style.Triggers> |
48 | 48 | <DataTrigger Binding="{Binding SelectedBinding.Action.ActionRequiresValue}" Value="false"> |
49 | 49 | <Setter Property="Visibility" Value="Collapsed" /> |
|
78 | 78 | </DataTrigger> |
79 | 79 | </Style.Triggers> |
80 | 80 | </Style> |
81 | | - |
| 81 | + |
82 | 82 | <ResourceDictionary.MergedDictionaries> |
83 | 83 | <ResourceDictionary Source="ProfileExplorerResources.xaml" /> |
84 | 84 | </ResourceDictionary.MergedDictionaries> |
85 | | - </ResourceDictionary> |
| 85 | + </ResourceDictionary> |
86 | 86 | </UserControl.Resources> |
87 | | - <Grid> |
| 87 | + <Grid Margin="0,0,0,0"> |
88 | 88 | <Grid.RowDefinitions> |
89 | 89 | <RowDefinition Height="Auto" /> |
90 | 90 | <RowDefinition Height="*" /> |
|
94 | 94 | <ColumnDefinition Width="*" /> |
95 | 95 | <ColumnDefinition Width="*" /> |
96 | 96 | </Grid.ColumnDefinitions> |
97 | | - <TabControl Name="IOTab" Grid.RowSpan="2" Grid.ColumnSpan="3" Margin="6" SelectedValuePath="Tag" SelectedValue="{Binding BindingType}"> |
| 97 | + <TabControl Name="IOTab" Grid.RowSpan="2" Grid.ColumnSpan="3" Margin="6,6,6,6" SelectedValuePath="Tag" SelectedValue="{Binding BindingType}"> |
98 | 98 | <TabItem Header="Input" Tag="Input" /> |
99 | 99 | <TabItem Header="Output" Tag="Output" /> |
100 | 100 | </TabControl> |
|
117 | 117 | <ColumnDefinition Style="{StaticResource TriggerColumn}" /> |
118 | 118 | <ColumnDefinition Width="*" /> |
119 | 119 | </Grid.ColumnDefinitions> |
120 | | - |
| 120 | + |
121 | 121 | <StackPanel Orientation="Horizontal" Grid.Row="0" Grid.ColumnSpan="2" Margin="6,0,4,0"> |
122 | 122 | <TextBlock Style="{StaticResource PropertyName}" VerticalAlignment="Center">Value Source</TextBlock> |
123 | 123 | <ComboBox MinWidth="120" ItemsSource="{Binding Source={StaticResource BindingSourceValues}, Path=DisplayNames}" SelectedItem="{Binding SelectedBinding.ValueSource, Converter={StaticResource BindingSourceValues}, Mode=TwoWay}" SelectionChanged="ValueSource_SelectionChanged" HorizontalAlignment="Left" FontSize="10" Margin="4" /> |
@@ -305,14 +305,41 @@ Other Global Variables: |
305 | 305 | <RowDefinition Height="Auto" /> |
306 | 306 | <RowDefinition Height="Auto" /> |
307 | 307 | <RowDefinition Height="Auto" /> |
| 308 | + <RowDefinition Height="Auto" /> |
| 309 | + <RowDefinition Height="Auto" /> |
308 | 310 | <RowDefinition Height="*" /> |
309 | 311 | </Grid.RowDefinitions> |
310 | 312 | <CheckBox Grid.Row="0" Grid.Column="0" IsChecked="{Binding SelectedBinding.BypassCascadingTriggers}" HorizontalAlignment="Center" Margin="4,12,8,4" /> |
311 | 313 | <TextBlock Grid.Row="0" Grid.Column="1" Margin="4,8,0,0" Style="{StaticResource PropertyName}" VerticalAlignment="Center">Bypass Cascading Triggers</TextBlock> |
312 | 314 | <TextBlock Grid.Row="1" Grid.Column="1" Style="{StaticResource Documentation}">When checked any triggers which would normally occur because of this action are surpressed.</TextBlock> |
313 | | - <TextBlock Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,12,0,0" Style="{StaticResource PropertyName}" VerticalAlignment="Center">Conditional Expression</TextBlock> |
314 | | - <TextBox Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,4,4,0" Height="60" Text="{Binding SelectedBinding.Condition}" AcceptsReturn="True" TextWrapping="Wrap" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" /> |
315 | | - <TextBlock Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,0,0,0" Style="{StaticResource Documentation}">If this LUA script returns false then this binding will abort without executing the action.</TextBlock> |
| 315 | + <StackPanel Grid.Row="2" Grid.RowSpan="2" Grid.Column="0" Grid.ColumnSpan="2"> |
| 316 | + <StackPanel.Style> |
| 317 | + <Style TargetType="StackPanel"> |
| 318 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 319 | + <Style.Triggers> |
| 320 | + <DataTrigger Binding="{Binding SelectedBinding.ValueSource}" Value="LuaScript"> |
| 321 | + <Setter Property="Visibility" Value="Visible"/> |
| 322 | + </DataTrigger> |
| 323 | + </Style.Triggers> |
| 324 | + </Style> |
| 325 | + </StackPanel.Style> |
| 326 | + <Grid> |
| 327 | + <Grid.ColumnDefinitions> |
| 328 | + <ColumnDefinition Width="Auto" /> |
| 329 | + <ColumnDefinition Width="*" /> |
| 330 | + </Grid.ColumnDefinitions> |
| 331 | + <Grid.RowDefinitions> |
| 332 | + <RowDefinition Height="Auto" /> |
| 333 | + <RowDefinition Height="*" /> |
| 334 | + </Grid.RowDefinitions> |
| 335 | + <CheckBox Grid.Row="0" Grid.Column="0" IsChecked="{Binding SelectedBinding.LuaScriptUTF8Encoding}" HorizontalAlignment="Center" Margin="4,12,8,4" /> |
| 336 | + <TextBlock Grid.Row="0" Grid.Column="1" Margin="4,8,0,0" Style="{StaticResource PropertyName}" VerticalAlignment="Center">Use UTF-8</TextBlock> |
| 337 | + <TextBlock Grid.Row="1" Grid.Column="1" Style="{StaticResource Documentation}">When checked strings in the LuaScript interpreter will be UTF-8 encoded.</TextBlock> |
| 338 | + </Grid> |
| 339 | + </StackPanel> |
| 340 | + <TextBlock Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,12,0,0" Style="{StaticResource PropertyName}" VerticalAlignment="Center">Conditional Expression</TextBlock> |
| 341 | + <TextBox Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,4,4,0" Height="60" Text="{Binding SelectedBinding.Condition}" AcceptsReturn="True" TextWrapping="Wrap" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" /> |
| 342 | + <TextBlock Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" Margin="4,0,0,0" Style="{StaticResource Documentation}">If this LUA script returns false then this binding will abort without executing the action.</TextBlock> |
316 | 343 | </Grid> |
317 | 344 | </Expander> |
318 | 345 | </StackPanel> |
|
0 commit comments