<ContentDialog
    x:Class="PCUT.Pages.CategoriesManagement.MetadataUpsertDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:PCUT.Pages.CategoriesManagement"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:viewmodels="using:PCUT.ViewModels"
    Title="{Binding Title, Mode=OneWay}"
    PrimaryButtonText="Save"
    PrimaryButtonStyle="{StaticResource PrimaryDialogButton}"
    PrimaryButtonClick="ContentDialog_PrimaryButtonClick"
    CloseButtonText="Cancel"
    CloseButtonStyle="{StaticResource CloseDialogButton}"
    Opened="ContentDialog_Opened">

    <ContentDialog.DataContext>
        <viewmodels:UpsertMetadataViewModel x:Name="ViewModel" />
    </ContentDialog.DataContext>

    <Grid>
        <Grid Grid.Row="1">
            <StackPanel>
                <TextBlock Text="{Binding Type, Mode=OneWay}" />
                <TextBox PlaceholderText="Name" Text="{Binding Name, Mode=TwoWay}" />
            </StackPanel>
        </Grid>
    </Grid>
</ContentDialog>
