Source

main / Source / Excel / Excel.AddIn / Excel.AddIn / View / RepositoryViewPane.xaml

<Window
    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:i="http://schemas.microsoft.com/expression/2010/interactivity" 
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" 
    xmlns:local="clr-namespace:DataUp.Excel.Addin"
    x:Class="DataUp.Excel.Addin.RepositoryViewPane"
    x:Name="Window"
    Title="Post file to Repository"
    Width="410" Height="328" Background="{x:Null}" AllowsTransparency="True" WindowStyle="None">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Resources/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <BooleanToVisibilityConverter x:Key="VisibilityConverter"></BooleanToVisibilityConverter>
            <local:RepositoryViewModel x:Key="Model"/>
            <Style x:Key="MetroButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource DefaultButtonStyle}">
                <Setter Property="MinWidth" Value="75"/>
                <Setter Property="Height" Value="22"/>
                <Setter Property="FontSize" Value="13"/>
            </Style>
        </ResourceDictionary>
    </Window.Resources>

    <Window.DataContext>
        <Binding Source="{StaticResource Model}"/>
    </Window.DataContext>

    <Grid x:Name="LayoutRoot">
        <HeaderedContentControl Tag="Please enter the following repository information" Header="REPOSITORY" Style="{DynamicResource HeaderedWindowStyle}">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="40"/>
                </Grid.RowDefinitions>
                <StackPanel>
                    <DockPanel LastChildFill="True" Margin="0,10,0,0" VerticalAlignment="Top" Grid.Row="1" >
                        <TextBlock Text="Repository" Style="{DynamicResource PostfileLabelStyle}" />
                        <ComboBox Margin="0,0,15,0"  BorderBrush="#FF7E7E7E" BorderThickness="1" 
                                  ItemsSource="{Binding Path=Repositories}" 
                                  SelectedValue="{Binding Path=RepositoryName, Mode=TwoWay}"/>
                    </DockPanel>
                    <DockPanel LastChildFill="True" Margin="0,10,0,0" VerticalAlignment="Top" Grid.Row="1" >
                        <TextBlock Text="User Name" Style="{DynamicResource PostfileLabelStyle}" />
                        <TextBox  Margin="0,0,15,0"  BorderBrush="#FF7E7E7E" BorderThickness="1" Style="{DynamicResource InputTextboxStyle}"
                                  Text="{Binding UserName, Mode=TwoWay}"/>
                    </DockPanel>
                    <DockPanel LastChildFill="True" Margin="0,10,0,0" VerticalAlignment="Top" Grid.Row="1" >
                        <TextBlock Text="Password" Style="{DynamicResource PostfileLabelStyle}" />
                        <PasswordBox x:Name="pwdUserPassword" Margin="0,0,15,0"  BorderBrush="#FF7E7E7E" BorderThickness="1" Style="{DynamicResource PasswordBoxStyle}"
                                     />
                    </DockPanel>
                </StackPanel>
                <Border Background="White" Grid.Row="1">
                    <StackPanel HorizontalAlignment="Right" VerticalAlignment="Center"  Margin="0,0,15,0" Orientation="Horizontal">
                        <Button Content="OK" Width="75" Style="{DynamicResource SaveCancelButtonStyle}" IsDefault="True" IsCancel="False"
                                Command="{Binding PostFileCommand}"/>
                        <Button Content="Cancel"  Width="75" Style="{DynamicResource SaveCancelButtonStyle}" Margin="10,0,0,0" IsCancel="True"/>
                    </StackPanel>
                </Border>
            </Grid>
        </HeaderedContentControl>
    </Grid>
</Window>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.