chr
7 天以前 43a0207d207390abdeeb3ab9155eebf03edd7b1a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<UserControl x:Class="PdmSwPlugin.UserSetting.UserSettingControl"
             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:PdmSwPlugin.UserSetting"
             mc:Ignorable="d" 
             d:DesignHeight="450" d:DesignWidth="800">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/PdmSwPlugin.Common;component/Style/ToolBar.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
 
    <StackPanel>
        <ToolBarTray Background="#FFF" ToolBarTray.IsLocked="True" >
            <ToolBar Style="{StaticResource CommonToolBar}" ToolBar.OverflowMode="Never" Band="1" BandIndex="1" Height="30" Background="#FFF">
                <Button ToolTip="刷新" Content="&#xe631;刷新" Click="Refresh_Click" FontSize="16"/>
 
                <Button ToolTip="保存" Content="&#xe60d;保存" FontFamily="{StaticResource iconfont}" FontSize="16"
                Click="Save_Click"/>
            </ToolBar>
        </ToolBarTray>
        <StackPanel>
            <Label Content="图审映射目录"/>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <TextBox Grid.Column="0" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" 
                         IsReadOnly="True" Text="{Binding SwFilePath,Mode=TwoWay}"/>
                <Button Grid.Column="1" Width="200" Click="ChooseDir_Click">选择</Button>
            </Grid>
        </StackPanel>
    </StackPanel>
</UserControl>