1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <Window x:Class="WatchDog.WPF.FileSelected"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:WatchDog.WPF"
- mc:Ignorable="d"
- TextElement.FontWeight="Regular"
- TextElement.FontSize="14"
- TextOptions.TextFormattingMode="Ideal"
- TextOptions.TextRenderingMode="Auto"
- Background="Wheat"
- Title="文件夹选择" Height="450" Width="800">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="45"/>
- <RowDefinition Height="79*"/>
- </Grid.RowDefinitions>
- <Canvas>
- <TextBlock Canvas.Left="26" Canvas.Top="15" >当前目录:</TextBlock>
- <Label Content="{Binding CurrentDir}" Canvas.Left="86" Canvas.Top="15" MouseDoubleClick="Label_MouseDoubleClick" />
- <Button Background="Beige" Visibility="Hidden"
- Foreground="Black"
- Canvas.Left="503" Canvas.Top="4"
- Command="{Binding RootDirectory}" >磁盘盘符</Button>
- <Button Background="Beige"
- Foreground="Black"
- Canvas.Left="596" Canvas.Top="4"
- Command="{Binding PreDirectory}" >上级目录</Button>
- <Button Background="Beige"
- Foreground="Black"
- Canvas.Left="689" Canvas.Top="4"
- Command="{Binding SelectedDirectory}" >选择目录</Button>
- </Canvas>
- <ListView ItemsSource="{Binding FilesPath}" Grid.Row="1"
-
- MouseDoubleClick="ListView_MouseDoubleClick"
- SelectedItem="{Binding SelectedItem}"
- >
- </ListView>
- </Grid>
- </Window>
|