Window_MainEditGraphTabItem.xaml 4.7 KB
Newer Older
潘栩锋's avatar
潘栩锋 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
<flyctrllib:WindowBigClose x:Class="ThickTcpUiInWindow.MainEdit.Window_MainEditGraphTabItem"
                            xmlns:flyctrllib="clr-namespace:FLY.ControlLibrary;assembly=FLY.ControlLibrary"
      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" 
      mc:Ignorable="d" 
      SizeToContent="WidthAndHeight"  >
    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
                <!--<ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Culture/StringResource.zh-CN.xaml"/>-->
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid TextBlock.FontSize="24" TextBlock.FontStyle="Normal" >
        <Grid x:Name="grid_graphTabItem"/>
        <Grid x:Name="grid_RC"/>
        <StackPanel Orientation="Vertical" Margin="5,20">
            <StackPanel Orientation="Horizontal">
                <StackPanel Orientation="Vertical" Margin="5" DataContext="{Binding DataContext,ElementName=grid_graphTabItem}">
                    <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strTitle}" />
                    <StackPanel Orientation="Horizontal">
                        <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding Title}" Tag="Full" MinWidth="100"/>
                    </StackPanel>
                </StackPanel>
                <GroupBox DataContext="{Binding DataContext,ElementName=grid_RC}">
                    <GroupBox.Header>
                        <TextBlock Text="{DynamicResource strSheet}"/>
                    </GroupBox.Header>
                    <StackPanel Orientation="Horizontal">
                        <StackPanel Orientation="Vertical" Margin="5">
                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strRow}" />
                            <StackPanel Orientation="Horizontal">
                                <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding RowCnt}" />
                            </StackPanel>
                        </StackPanel>
                        <TextBlock Text="x" VerticalAlignment="Center"/>
                        <StackPanel Orientation="Vertical" Margin="5">
                            <TextBlock Style="{StaticResource ResourceKey=TextBlockStyle_FieldHeaderEditable}" Text="{DynamicResource strColumn}" />
                            <StackPanel Orientation="Horizontal">
                                <TextBox Style="{StaticResource ResourceKey=TextBoxStyle_FieldContent}" Text="{Binding ColCnt}" />
                            </StackPanel>
                        </StackPanel>
                        <Button Style="{StaticResource ButtonStyle_empty}" HorizontalAlignment="Right" BorderThickness="0" VerticalAlignment="Bottom" Click="button_apply_Click" Margin="5" Background="White">
                            <Path Data="{StaticResource Geometry_check-circle}" Fill="{StaticResource Color_theme_activity}" Stretch="Fill" Height="50" Width="50"  />
                        </Button>
                    </StackPanel>

                </GroupBox>

            </StackPanel>


            <GroupBox>
                <GroupBox.Header>
                    <TextBlock Text="{DynamicResource strPosition}"/>
                </GroupBox.Header>
                <StackPanel Orientation="Horizontal">
                    <Button Style="{StaticResource ButtonStyle_empty}" HorizontalAlignment="Right" Background="White" BorderThickness="0" VerticalAlignment="Bottom" Click="button_pre_Click" Margin="5">
                        <Path Data="{StaticResource Geometry_arrow-left-bold-circle}" Fill="{StaticResource Color_theme_activity}" Stretch="Fill" Height="50" Width="50"  />
                    </Button>
                    <Button Style="{StaticResource ButtonStyle_empty}" HorizontalAlignment="Right" Background="White" BorderThickness="0" VerticalAlignment="Bottom" Click="button_next_Click" Margin="5">
                        <Path Data="{StaticResource Geometry_arrow-right-bold-circle}" Fill="{StaticResource Color_theme_activity}" Stretch="Fill" Height="50" Width="50"  />
                    </Button>
                </StackPanel>
            </GroupBox>
        </StackPanel>
    </Grid>

</flyctrllib:WindowBigClose>