ScriptReferenceDialog.xaml 2.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <Window x:Class="Plugins.Script.Views.ScriptReferenceDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="程序集引用管理" Height="500" Width="540" MinHeight="380" MinWidth="420"
  5. WindowStartupLocation="CenterOwner"
  6. Background="{DynamicResource RegionBrush}">
  7. <Grid Margin="14">
  8. <Grid.RowDefinitions>
  9. <RowDefinition Height="Auto"/>
  10. <RowDefinition Height="*"/>
  11. <RowDefinition Height="Auto"/>
  12. </Grid.RowDefinitions>
  13. <TextBlock Grid.Row="0" TextWrapping="Wrap" Margin="0,0,0,10"
  14. Foreground="{DynamicResource SecondaryTextBrush}"
  15. Text="脚本编译/运行可用的程序集引用。添加的 DLL 会自动归档到运行目录 References\,编辑器补全与流程运行期共用(TeamAAS 全家桶已默认引用)。"/>
  16. <ListBox x:Name="RefsList" Grid.Row="1"
  17. Background="{DynamicResource RegionBrush}"
  18. BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
  19. FontFamily="Consolas, Courier New, monospace" FontSize="12"
  20. Foreground="{DynamicResource PrimaryTextBrush}"
  21. ScrollViewer.HorizontalScrollBarVisibility="Auto"/>
  22. <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,12,0,0">
  23. <Button x:Name="BtnAdd" Content="添加 DLL" Click="BtnAdd_Click" Padding="16,5" Margin="0,0,10,0"
  24. ToolTip="从本地选择 .NET 程序集(.dll/.exe)添加为引用,自动归档到 References\"/>
  25. <Button x:Name="BtnRemove" Content="移除" Click="BtnRemove_Click" Padding="16,5" Margin="0,0,10,0"
  26. ToolTip="从引用列表移除所选项"/>
  27. <Button x:Name="BtnClose" Content="关闭" Click="BtnClose_Click" Padding="16,5"/>
  28. </StackPanel>
  29. </Grid>
  30. </Window>