<commit_before>﻿<Window
    x:Class="WpfWindowToolkit.Demo.Views.ReturnValueMainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:behaviors="clr-namespace:PraiseHim.Rejoice.WpfWindowToolkit.Behaviors;assembly=WpfWindowToolkit"
    xmlns:converters="clr-namespace:WpfWindowToolkit.Demo.Converters"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
    xmlns:local="clr-namespace:WpfWindowToolkit.Demo.Views"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    Title="Return Value Test"
    Width="400"
    Height="400"
    DataContext="{Binding ReturnValueMainWindowViewModel, Source={StaticResource Locator}}"
    WindowStartupLocation="CenterScreen"
    mc:Ignorable="d">
    <Grid>
        <StackPanel Margin="20">
            <TextBlock Text="Open a window to selected friend and get the result" />

            <Button
                Margin="0,10,0,0"
                Padding="10,5"
                HorizontalAlignment="Left"
                Content="Open  (use OpenWindowAction) ">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="Click">
                        <behaviors:OpenWindowAction CommandAfterClose="{Binding ProcessReturnValueCommand}" WindowType="{x:Type local:ReturnValueTestWindow}" />
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </Button>
            <TextBlock Margin="0,5,0,0" Foreground="#666">
                <Run>Use</Run>
                <Run FontWeight="Bold">CommandAfterClose</Run>
                <Run>property</Run>
            </TextBlock>

            <Button
                Margin="0,20,0,0"
                Padding="10,5"
                HorizontalAlignment="Left"
                Content="Open  (use OpenWindowAction) ">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="Click">
                        <behaviors:OpenWindowAction MethodAfterClose="ShowResult" WindowType="{x:Type local:ReturnValueTestWindow}" />
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </Button>
            <TextBlock Margin="0,5,0,0" Foreground="#666">
                <Run>Use</Run>
                <Run FontWeight="Bold">MethodAfterClose</Run>
                <Run>property</Run>
            </TextBlock>

            <Button
                Margin="0,20,0,0"
                Padding="10,5"
                HorizontalAlignment="Left"
                Content="Open  (use ViewModelBaseEx&lt;T&gt;) ">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="Click">
                        <ei:CallMethodAction MethodName="ShowFriendSelectionWindow" TargetObject="{Binding}" />
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </Button>
            <TextBlock Margin="0,5,0,0" Foreground="#666">
                <Run>Use</Run>
                <Run FontWeight="Bold">ShowWindow</Run>
                <Run>method</Run>
            </TextBlock>
        </StackPanel>
    </Grid>
</Window><commit_msg>update demo<commit_after>﻿<Window
    x:Class="WpfWindowToolkit.Demo.Views.ReturnValueMainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:behaviors="clr-namespace:PraiseHim.Rejoice.WpfWindowToolkit.Behaviors;assembly=WpfWindowToolkit"
    xmlns:converters="clr-namespace:WpfWindowToolkit.Demo.Converters"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
    xmlns:helpers="clr-namespace:PraiseHim.Rejoice.WpfWindowToolkit.Helpers;assembly=WpfWindowToolkit"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
    xmlns:local="clr-namespace:WpfWindowToolkit.Demo.Views"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    Title="Return Value Test"
    Width="400"
    Height="400"
    DataContext="{Binding ReturnValueMainWindowViewModel, Source={StaticResource Locator}}"
    WindowStartupLocation="CenterScreen"
    mc:Ignorable="d">
    <Grid>
        <StackPanel Margin="20">
            <TextBlock Text="Open a window to selected friend and get the result" />

            <Button
                Margin="0,10,0,0"
                Padding="10,5"
                HorizontalAlignment="Left"
                Content="Open  (use OpenWindowAction) ">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="Click">
                        <behaviors:OpenWindowAction CommandAfterClose="{Binding ProcessReturnValueCommand}" WindowType="{x:Type local:ReturnValueTestWindow}" />
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </Button>
            <TextBlock Margin="0,2,0,0" Foreground="#666">
                <Run>Use</Run>
                <Run FontWeight="Bold">CommandAfterClose</Run>
                <Run>property</Run>
            </TextBlock>

            <Button
                Margin="0,20,0,0"
                Padding="10,5"
                HorizontalAlignment="Left"
                Content="Open  (use OpenWindowAction) ">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="Click">
                        <behaviors:OpenWindowAction MethodAfterClose="ShowResult" WindowType="{x:Type local:ReturnValueTestWindow}" />
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </Button>
            <TextBlock Margin="0,2,0,0" Foreground="#666">
                <Run>Use</Run>
                <Run FontWeight="Bold">MethodAfterClose</Run>
                <Run>property</Run>
            </TextBlock>

            <Button
                Margin="0,20,0,0"
                Padding="10,5"
                HorizontalAlignment="Left"
                Content="Open  (use ViewModelBaseEx&lt;T&gt;) ">
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="Click">
                        <ei:CallMethodAction MethodName="ShowFriendSelectionWindow" TargetObject="{Binding}" />
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </Button>
            <TextBlock Margin="0,2,0,0" Foreground="#666">
                <Run>Use</Run>
                <Run FontWeight="Bold">ShowWindow</Run>
                <Run>method</Run>
            </TextBlock>

            <Button
                Margin="0,20,0,0"
                Padding="10,5"
                HorizontalAlignment="Left"
                helpers:WindowHelper.CommandAfterClose="{Binding ProcessReturnValueCommand}"
                helpers:WindowHelper.OpenWindowType="{x:Type local:ReturnValueTestWindow}"
                Content="Open  (use WindowHelper) " />
        </StackPanel>
    </Grid>
</Window>
{'fraction_non_alphanumeric': 0.12693974556130294, 'fraction_numerical': 0.02264784006710471, 'mean_word_length': 2.1036876355748375, 'pattern_counts': {'":': 0, '<': 108, '<?xml version=': 0, '>': 108, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 21}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2773997', 'n_tokens_mistral': 2190, 'n_tokens_neox': 1980, 'n_words': 240}