Source

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

<Window x:Class="DataUp.Excel.Addin.MetadataViewPane"
        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"
        mc:Ignorable="d" Title="Describe Data Window" KeyDown="OnKeyDown"
        WindowStartupLocation="CenterOwner" WindowStyle="None" FontFamily="Segoe UI"
        Width="800" Height="650" ResizeMode="CanMinimize" AllowsTransparency="True" Background="{x:Null}">
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Resources/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <BooleanToVisibilityConverter x:Key="VisibilityConverter"></BooleanToVisibilityConverter>
            <local:MetadataViewPaneViewModel x:Key="Model"/>
        </ResourceDictionary>
    </Window.Resources>

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

    <Grid x:Name="LayoutRoot">
        <GroupBox MouseLeftButtonDown="OnMouseLeftButtonDown" Header="CREATE METADATA" Style="{DynamicResource PopupContainerStyle}" Margin="10" Tag="Generic" >
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <local:Metadata VerticalAlignment="Top" DataContext="{Binding MetadataListViewModel}"/>
                <StackPanel  Grid.Row="1" Style="{DynamicResource ButtonContainer}">
                    <Button Content="SAVE" Style="{DynamicResource GreenButton}" Command="{Binding SaveMetadataCommand}"/>
                    <Button Content="CANCEL" Style="{DynamicResource GrayButton}" IsCancel="True"/>
                </StackPanel>
            </Grid>
        </GroupBox>
    </Grid>
</Window>