| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <windows:WinBase x:Class="SAGA.MBI.Test.WinSelectFileFloder"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:SAGA.MBI.Test"
- xmlns:wpf="clr-namespace:SAGA.DotNetUtils.WPF.UserControl;assembly=SAGA.DotNetUtils"
- xmlns:windows="clr-namespace:SAGA.RevitUtils.Windows;assembly=SAGA.RevitUtils"
- mc:Ignorable="d" Title="选择文件夹" WindowStartupLocation="CenterScreen"
- Height="200" Width="400">
- <Window.Resources>
- <Style TargetType="TextBox">
- <Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
- <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
- <Setter Property="Height" Value="24"></Setter>
- </Style>
- <Style TargetType="DataGridColumnHeader">
- <Setter Property="Height" Value="25"></Setter>
- <Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
- <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
- </Style>
- <Style x:Key="dgtextblock">
- <Setter Property="TextBlock.Height" Value="25"></Setter>
- <Setter Property="TextBlock.HorizontalAlignment" Value="Center"></Setter>
- </Style>
- <Style x:Key="dgtextbox">
- <Setter Property="TextBox.Height" Value="25"></Setter>
- <Setter Property="TextBox.HorizontalContentAlignment" Value="Center"></Setter>
- </Style>
- </Window.Resources>
- <Grid Margin="5">
- <Grid.RowDefinitions>
- <RowDefinition Height="20"></RowDefinition>
- <RowDefinition></RowDefinition>
- <RowDefinition Height="50"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="1">
- <StackPanel>
- <Label Content="请选择需要操作的文件夹:"></Label>
- <wpf:SelectPath Height="25" Text="{Binding Path=RevitDirs,UpdateSourceTrigger=PropertyChanged,Mode=TwoWay}" ButtonPosition="End"></wpf:SelectPath>
- </StackPanel>
- </Grid>
- <WrapPanel Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center">
- <Button Height="24" Width="100" Content="执行" Margin="10,0" IsDefault="True" Click="ButtonBase_OnClick"></Button>
- <Button Height="24" Width="100" Content="取消" Margin="10,0" IsCancel="True"></Button>
- </WrapPanel>
- </Grid>
- </windows:WinBase>
|