WinRenameConfig.xaml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <windows:WinBase x:Class="SAGA.MBI.Test.WinSelectFileFloder"
  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:local="clr-namespace:SAGA.MBI.Test"
  7. xmlns:wpf="clr-namespace:SAGA.DotNetUtils.WPF.UserControl;assembly=SAGA.DotNetUtils"
  8. xmlns:windows="clr-namespace:SAGA.RevitUtils.Windows;assembly=SAGA.RevitUtils"
  9. mc:Ignorable="d" Title="选择文件夹" WindowStartupLocation="CenterScreen"
  10. Height="200" Width="400">
  11. <Window.Resources>
  12. <Style TargetType="TextBox">
  13. <Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
  14. <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
  15. <Setter Property="Height" Value="24"></Setter>
  16. </Style>
  17. <Style TargetType="DataGridColumnHeader">
  18. <Setter Property="Height" Value="25"></Setter>
  19. <Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
  20. <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
  21. </Style>
  22. <Style x:Key="dgtextblock">
  23. <Setter Property="TextBlock.Height" Value="25"></Setter>
  24. <Setter Property="TextBlock.HorizontalAlignment" Value="Center"></Setter>
  25. </Style>
  26. <Style x:Key="dgtextbox">
  27. <Setter Property="TextBox.Height" Value="25"></Setter>
  28. <Setter Property="TextBox.HorizontalContentAlignment" Value="Center"></Setter>
  29. </Style>
  30. </Window.Resources>
  31. <Grid Margin="5">
  32. <Grid.RowDefinitions>
  33. <RowDefinition Height="20"></RowDefinition>
  34. <RowDefinition></RowDefinition>
  35. <RowDefinition Height="50"></RowDefinition>
  36. </Grid.RowDefinitions>
  37. <Grid Grid.Row="1">
  38. <StackPanel>
  39. <Label Content="请选择需要操作的文件夹:"></Label>
  40. <wpf:SelectPath Height="25" Text="{Binding Path=RevitDirs,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" ButtonPosition="End"></wpf:SelectPath>
  41. </StackPanel>
  42. </Grid>
  43. <WrapPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center">
  44. <Button Height="24" Width="100" Content="执行" Margin="10,0" IsDefault="True" Click="ButtonBase_OnClick"></Button>
  45. <Button Height="24" Width="100" Content="取消" Margin="10,0" IsCancel="True"></Button>
  46. </WrapPanel>
  47. </Grid>
  48. </windows:WinBase>