Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hatsunea/62afbfc256322e84d6f46def24a37b3c to your computer and use it in GitHub Desktop.
Save hatsunea/62afbfc256322e84d6f46def24a37b3c to your computer and use it in GitHub Desktop.
<Window x:Class="TextSummarizationSDKSample.Views.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:TextSummarizationSDKSample.Views"
DataContext="{Binding ViewModel, RelativeSource={RelativeSource Mode=Self}}"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBox Grid.Row="0" Text="{Binding InputData,Mode=TwoWay}" TextWrapping="Wrap" AcceptsReturn="True" />
<Button Grid.Row="1" Content="Exec" Command="{Binding ExecCommand}" />
<TextBox Grid.Row="2" Text="{Binding Result,Mode=TwoWay}" TextWrapping="Wrap" IsReadOnly="True" />
</Grid>
</Window>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment