InputFileNameDialogView.xaml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <UserControl x:Class="MECF.Framework.UI.Client.CenterViews.Editors.InputFileNameDialogView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
  7. xmlns:micro="clr-namespace:Caliburn.Micro"
  8. xmlns:controls="clr-namespace:OpenSEMI.Ctrlib.Controls"
  9. mc:Ignorable="d"
  10. d:DesignHeight="450" d:DesignWidth="800">
  11. <Border BorderBrush="Gray" BorderThickness="0,1,0,0" Background="{DynamicResource Tab_BG}">
  12. <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="50">
  13. <Grid.ColumnDefinitions>
  14. <ColumnDefinition Width="60"/>
  15. <ColumnDefinition />
  16. </Grid.ColumnDefinitions>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="50"/>
  19. <RowDefinition Height="Auto"/>
  20. </Grid.RowDefinitions>
  21. <Border BorderBrush="{DynamicResource Table_BD}" BorderThickness="1" Background="{DynamicResource Table_BG_Title}" Padding="5,1">
  22. <TextBlock Text="Name" TextWrapping="Wrap" Foreground="{DynamicResource FG_Black}" FontSize="16" FontFamily="Arial" VerticalAlignment="Center"/>
  23. </Border>
  24. <Border Grid.Column="1" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,1,1,1" Background="{DynamicResource Table_BG_Content}" Padding="5,1">
  25. <controls:TextBoxEx x:Name="tbName" FontSize="14" Height="35" TextWrapping="NoWrap" AllowBackgroundChange="False" Text="{Binding FileName}" Width="300" />
  26. </Border>
  27. <StackPanel Grid.Row="1" Grid.ColumnSpan="2" Margin="0,10" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
  28. <Button Content="OK" Width="90" Height="30">
  29. <i:Interaction.Triggers>
  30. <i:EventTrigger EventName="Click">
  31. <micro:ActionMessage MethodName="OK">
  32. </micro:ActionMessage>
  33. </i:EventTrigger>
  34. </i:Interaction.Triggers>
  35. </Button>
  36. <Button Content="Cancel" Margin="10,0,0,0" Width="90" Height="30">
  37. <i:Interaction.Triggers>
  38. <i:EventTrigger EventName="Click">
  39. <micro:ActionMessage MethodName="Cancel">
  40. </micro:ActionMessage>
  41. </i:EventTrigger>
  42. </i:Interaction.Triggers>
  43. </Button>
  44. </StackPanel>
  45. </Grid>
  46. </Border>
  47. </UserControl>