main-vinayFork / Source / Excel / Excel.AddIn / Excel.AddIn / View / GenerateCitationViewPane.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.GenerateCitationViewPane"
    x:Name="Window" KeyDown="OnKeyDown"
    Title="Generate Citation"
    Width="700" Height="550" 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:GenerateCitationPaneViewModel x:Key="Model"/>
        </ResourceDictionary>
    </Window.Resources>

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

    <Grid x:Name="LayoutRoot">
        <GroupBox MouseLeftButtonDown="OnMouseLeftButtonDown" Header="CREATE CITATION" Style="{DynamicResource PopupContainerStyle}" Margin="10">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <ContentControl Opacity="0.2" Content="ContentControl" VerticalAlignment="Stretch" Style="{DynamicResource SharpShadowControl}" />
                <Rectangle Fill="White" Stroke="{DynamicResource WizardControlBorderBrush}" SnapsToDevicePixels="True"/>
                <Rectangle Fill="{DynamicResource PatternImageBrush}" Opacity="0.06" SnapsToDevicePixels="True"/>
                <local:Citation Margin="10,0,10,0" DataContext="{Binding CitationViewModel}"/>
                <StackPanel Grid.Row="1" Style="{DynamicResource ButtonContainer}">
                    <Button Content="SAVE" Style="{DynamicResource CommonButtonStyle}" Tag="Save" 
                            Visibility="{Binding CurrentTabState.ShowNext, Converter={StaticResource VisibilityConverter}}" 
                            Command="{Binding SaveCommand}" CommandParameter="{Binding}"/>
                    <Button Content="CANCEL" Style="{DynamicResource CommonButtonStyle}" Tag="Cancel" IsCancel="True"
                            Visibility="{Binding CurrentTabState.ShowCancel, Converter={StaticResource VisibilityConverter}}"/>
                </StackPanel>
            </Grid>
        </GroupBox>

        <Border BorderThickness="1" Background="#88272727" CornerRadius="5" Margin="10" Visibility="{Binding ShowIdentifier, Converter={StaticResource VisibilityConverter}}">
            <GroupBox Style="{DynamicResource PopupContainerStyle}" Tag="GenericSmall" Header="GET IDENTIFIER" HorizontalAlignment="Center" VerticalAlignment="Center" >
                <local:GetIdentifierControl VerticalAlignment="Center" HorizontalAlignment="Center"
                                            DataContext="{Binding GetIdentifierViewModel}"/>
            </GroupBox>
        </Border>
    </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.