<commit_before>﻿<UserControl x:Class="Core2D.Views.Renderer.ShapeRendererStateControl"
             xmlns="https://github.com/avaloniaui"
             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:converters="clr-namespace:Core2D.Converters;assembly=Core2D"
             xmlns:libraries="clr-namespace:Core2D.Views.Libraries;assembly=Core2D"
             xmlns:Renderer="clr-namespace:Core2D.Renderer;assembly=Core2D"
             xmlns:Shapes="clr-namespace:Core2D.Shapes;assembly=Core2D"
             xmlns:Designer="clr-namespace:Core2D.Designer;assembly=Core2D"
             mc:Ignorable="d"
             d:DataContext="{x:Static Designer:DesignerContext.ShapeRendererState}"
             d:DesignWidth="250" d:DesignHeight="400"
             x:DataType="Renderer:ShapeRendererState" x:CompileBindings="True">
    <UserControl.Resources>
        <converters:ObjectToTypeStringConverter x:Key="ObjectToTypeStringConverter"/>
    </UserControl.Resources>
    <StackPanel>

            <TabItem Header="Point">
                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                    <StackPanel>
                        <CheckBox Content="DrawDecorators" IsChecked="{Binding DrawDecorators, Mode=TwoWay}" HorizontalAlignment="Stretch"/>
                        <CheckBox Content="DrawPoints" IsChecked="{Binding DrawPoints, Mode=TwoWay}" HorizontalAlignment="Stretch"/>
                        <TextBlock Text="PointSize" Margin="{DynamicResource TextControlThemePadding}"/>
                        <TextBox Text="{Binding PointSize, Mode=TwoWay}"/>
                    </StackPanel>
                </ScrollViewer>
            </TabItem>
            <TabItem Header="Normal Style">
                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                    <ContentControl Content="{Binding PointStyle}"/>
                </ScrollViewer>
            </TabItem>
            <TabItem Header="Selected Style">
                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                    <ContentControl Content="{Binding SelectedPointStyle}"/>
                </ScrollViewer>
            </TabItem>

            <TabItem Header="Zoom">
                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                    <StackPanel>
                        <TextBlock Text="PanX" Margin="{DynamicResource TextControlThemePadding}"/>
                        <TextBox Text="{Binding PanX, Mode=TwoWay}"/>
                        <TextBlock Text="PanY" Margin="{DynamicResource TextControlThemePadding}"/>
                        <TextBox Text="{Binding PanY, Mode=TwoWay}"/>
                        <TextBlock Text="ZoomX" Margin="{DynamicResource TextControlThemePadding}"/>
                        <TextBox Text="{Binding ZoomX, Mode=TwoWay}"/>
                        <TextBlock Text="ZoomY" Margin="{DynamicResource TextControlThemePadding}"/>
                        <TextBox Text="{Binding ZoomY, Mode=TwoWay}"/>
                    </StackPanel>
                </ScrollViewer>
            </TabItem>

            <TabItem Header="DrawShapeState">
                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                    <ContentControl Content="{Binding DrawShapeState}"/>
                </ScrollViewer>
            </TabItem>

        <TabItem Header="SelectedShapes">
            <ListBox x:Name="shapes" Items="{Binding SelectedShapes}" VirtualizationMode="Simple">
                <ListBox.ItemsPanel>
                    <ItemsPanelTemplate>
                        <VirtualizingStackPanel Orientation="Vertical"/>
                    </ItemsPanelTemplate>
                </ListBox.ItemsPanel>
                <ListBox.KeyBindings>
                    <KeyBinding Command="{Binding $parent[TopLevel].DataContext.OnRemoveShape}" CommandParameter="{Binding #shapes.SelectedItem}" Gesture="Delete" x:CompileBindings="False"/>
                </ListBox.KeyBindings>
                <ListBox.DataTemplates>
                    <DataTemplate DataType="Shapes:BaseShape">
                        <TextBlock Text="{Binding Mode=OneWay, Converter={StaticResource ObjectToTypeStringConverter}}">
                            <TextBlock.ContextMenu>
                                <ContextMenu x:CompileBindings="False">
                                    <MenuItem Header="_Delete" Command="{Binding $parent[TopLevel].DataContext.OnRemoveShape}" CommandParameter="{Binding}"/>
                                </ContextMenu>
                            </TextBlock.ContextMenu>
                        </TextBlock>
                    </DataTemplate>
                </ListBox.DataTemplates>
            </ListBox>
        </TabItem>
        <TabItem Header="ImageCache">
            <libraries:ImagesControl DataContext="{Binding ImageCache}"/>
        </TabItem>
        <TabItem Header="SelectionStyle">
            <ContentControl Content="{Binding SelectionStyle}"/>
        </TabItem>
        <TabItem Header="HelperStyle">
            <ContentControl Content="{Binding HelperStyle}"/>
        </TabItem>
    </StackPanel>
</UserControl>
<commit_msg>Updated state view<commit_after>﻿<UserControl x:Class="Core2D.Views.Renderer.ShapeRendererStateControl"
             xmlns="https://github.com/avaloniaui"
             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:converters="clr-namespace:Core2D.Converters;assembly=Core2D"
             xmlns:libraries="clr-namespace:Core2D.Views.Libraries;assembly=Core2D"
             xmlns:Renderer="clr-namespace:Core2D.Renderer;assembly=Core2D"
             xmlns:Shapes="clr-namespace:Core2D.Shapes;assembly=Core2D"
             xmlns:Designer="clr-namespace:Core2D.Designer;assembly=Core2D"
             mc:Ignorable="d"
             d:DataContext="{x:Static Designer:DesignerContext.ShapeRendererState}"
             d:DesignWidth="250" d:DesignHeight="400"
             x:DataType="Renderer:ShapeRendererState" x:CompileBindings="True">
    <UserControl.Resources>
        <converters:ObjectToTypeStringConverter x:Key="ObjectToTypeStringConverter"/>
    </UserControl.Resources>
    <StackPanel>
        <Expander Header="Point" IsExpanded="False">
            <StackPanel>
                <CheckBox Content="DrawDecorators" IsChecked="{Binding DrawDecorators, Mode=TwoWay}" HorizontalAlignment="Stretch"/>
                <CheckBox Content="DrawPoints" IsChecked="{Binding DrawPoints, Mode=TwoWay}" HorizontalAlignment="Stretch"/>
                <Label Content="PointSize" Margin="{DynamicResource TextControlThemePadding}"/>
                <TextBox Text="{Binding PointSize, Mode=TwoWay}"/>
            </StackPanel>
        </Expander>
        <Expander Header="Normal Style" IsExpanded="False">
            <ContentControl Content="{Binding PointStyle}"/>
        </Expander>
        <Expander Header="Selected Style" IsExpanded="False">
            <ContentControl Content="{Binding SelectedPointStyle}"/>
        </Expander>
        <Expander Header="Zoom" IsExpanded="False">
            <StackPanel>
                <Label Content="PanX" Margin="{DynamicResource TextControlThemePadding}"/>
                <TextBox Text="{Binding PanX, Mode=TwoWay}"/>
                <Label Content="PanY" Margin="{DynamicResource TextControlThemePadding}"/>
                <TextBox Text="{Binding PanY, Mode=TwoWay}"/>
                <Label Content="ZoomX" Margin="{DynamicResource TextControlThemePadding}"/>
                <TextBox Text="{Binding ZoomX, Mode=TwoWay}"/>
                <Label Content="ZoomY" Margin="{DynamicResource TextControlThemePadding}"/>
                <TextBox Text="{Binding ZoomY, Mode=TwoWay}"/>
            </StackPanel>
        </Expander>
        <Expander Header="DrawShapeState" IsExpanded="False">
            <ContentControl Content="{Binding DrawShapeState}"/>
        </Expander>
        <Expander Header="SelectedShapes" IsExpanded="False">
            <ListBox x:Name="shapes" Items="{Binding SelectedShapes}" VirtualizationMode="Simple">
                <ListBox.ItemsPanel>
                    <ItemsPanelTemplate>
                        <VirtualizingStackPanel Orientation="Vertical"/>
                    </ItemsPanelTemplate>
                </ListBox.ItemsPanel>
                <ListBox.KeyBindings>
                    <KeyBinding Command="{Binding $parent[TopLevel].DataContext.OnRemoveShape}" CommandParameter="{Binding #shapes.SelectedItem}" Gesture="Delete" x:CompileBindings="False"/>
                </ListBox.KeyBindings>
                <ListBox.DataTemplates>
                    <DataTemplate DataType="Shapes:BaseShape">
                        <TextBlock Text="{Binding Mode=OneWay, Converter={StaticResource ObjectToTypeStringConverter}}">
                            <TextBlock.ContextMenu>
                                <ContextMenu x:CompileBindings="False">
                                    <MenuItem Header="_Delete" Command="{Binding $parent[TopLevel].DataContext.OnRemoveShape}" CommandParameter="{Binding}"/>
                                </ContextMenu>
                            </TextBlock.ContextMenu>
                        </TextBlock>
                    </DataTemplate>
                </ListBox.DataTemplates>
            </ListBox>
        </Expander>
        <Expander Header="ImageCache" IsExpanded="False">
            <libraries:ImagesControl DataContext="{Binding ImageCache}"/>
        </Expander>
        <Expander Header="SelectionStyle" IsExpanded="False">
            <ContentControl Content="{Binding SelectionStyle}"/>
        </Expander>
        <Expander Header="HelperStyle" IsExpanded="False">
            <ContentControl Content="{Binding HelperStyle}"/>
        </Expander>
    </StackPanel>
</UserControl>

{'fraction_non_alphanumeric': 0.11718902082927779, 'fraction_numerical': 0.005645318279151256, 'mean_word_length': 2.285897025903422, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 149, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 20}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '133899', 'n_tokens_mistral': 2694, 'n_tokens_neox': 2482, 'n_words': 371}