Add GridSplitter

This commit is contained in:
Stone_Red
2024-03-21 22:50:21 +01:00
parent dd725ba930
commit 6853f20fd4
+49 -52
View File
@@ -40,59 +40,56 @@
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<TabControl Grid.Row="1"> <Grid ColumnDefinitions="*, 4, *" Grid.Row="1">
<TabItem Header="Markdown"> <md:MarkdownScrollViewer Margin="10" IsEnabled="{Binding !IsBusy}" Markdown="{Binding Content}">
<md:MarkdownScrollViewer Margin="10" IsEnabled="{Binding !IsBusy}" Markdown="{Binding Content}"> <md:MarkdownScrollViewer.Styles>
<md:MarkdownScrollViewer.Styles> <Style Selector="ctxt|CTextBlock">
<Style Selector="ctxt|CTextBlock"> <Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" />
<Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" /> </Style>
</Style> <Style Selector="ctxt|CTextBlock.Heading1">
<Style Selector="ctxt|CTextBlock.Heading1"> <Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" />
<Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" /> </Style>
</Style> <Style Selector="ctxt|CTextBlock.Heading2">
<Style Selector="ctxt|CTextBlock.Heading2"> <Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" />
<Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" /> </Style>
</Style> <Style Selector="ctxt|CTextBlock.Heading3">
<Style Selector="ctxt|CTextBlock.Heading3"> <Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" />
<Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" /> </Style>
</Style> <Style Selector="ctxt|CTextBlock.Heading4">
<Style Selector="ctxt|CTextBlock.Heading4"> <Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" />
<Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" /> </Style>
</Style> <Style Selector="ctxt|CTextBlock.Heading5">
<Style Selector="ctxt|CTextBlock.Heading5"> <Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" />
<Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" /> </Style>
</Style> <Style Selector="ctxt|CTextBlock.Heading6">
<Style Selector="ctxt|CTextBlock.Heading6"> <Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" />
<Setter Property="Foreground" Value="{DynamicResource SemiColorText0}" /> </Style>
</Style> <Style Selector="ctxt|CHyperlink">
<Style Selector="ctxt|CHyperlink"> <Setter Property="Foreground" Value="{DynamicResource SemiColorLink}" />
<Setter Property="Foreground" Value="{DynamicResource SemiColorLink}" /> </Style>
</Style> <Style Selector="ctxt|CHyperlink:pointerover">
<Style Selector="ctxt|CHyperlink:pointerover"> <Setter Property="Foreground" Value="{DynamicResource SemiColorLinkPointerover}" />
<Setter Property="Foreground" Value="{DynamicResource SemiColorLinkPointerover}" /> </Style>
</Style> <Style Selector="ctxt|CHyperlink:pressed">
<Style Selector="ctxt|CHyperlink:pressed"> <Setter Property="Foreground" Value="{DynamicResource SemiColorLinkVisited}" />
<Setter Property="Foreground" Value="{DynamicResource SemiColorLinkVisited}" /> </Style>
</Style> <Style Selector="ctxt|CImage">
<Style Selector="ctxt|CImage"> <Setter Property="FittingWhenProtrude" Value="True" />
<Setter Property="FittingWhenProtrude" Value="True" /> <Setter Property="LayoutWidth" Value="500" />
<Setter Property="LayoutWidth" Value="500" /> <Setter Property="SaveAspectRatio" Value="True" />
<Setter Property="SaveAspectRatio" Value="True" /> </Style>
</Style> </md:MarkdownScrollViewer.Styles>
</md:MarkdownScrollViewer.Styles> <md:MarkdownScrollViewer.Plugins>
<md:MarkdownScrollViewer.Plugins> <md:MdAvPlugins PathResolver="{StaticResource HttpPathResolver}" HyperlinkCommand="{StaticResource HyperlinkCommand}" />
<md:MdAvPlugins PathResolver="{StaticResource HttpPathResolver}" HyperlinkCommand="{StaticResource HyperlinkCommand}" /> </md:MarkdownScrollViewer.Plugins>
</md:MarkdownScrollViewer.Plugins> </md:MarkdownScrollViewer>
</md:MarkdownScrollViewer> <GridSplitter Grid.Column="1" Background="{DynamicResource SemiColorTertiary}" ResizeDirection="Columns" />
</TabItem> <ScrollViewer Grid.Column="2" Margin="10">
<TabItem Header="Raw"> <TextBlock TextWrapping="Wrap" Text="{Binding Content}" />
<ScrollViewer Margin="10"> </ScrollViewer>
<TextBlock Text="{Binding Content}" /> </Grid>
</ScrollViewer>
</TabItem>
</TabControl>
<Border Grid.Row="2" BorderThickness="0 2 0 0" CornerRadius="0" BorderBrush="Gray"> <Border Grid.Row="2" BorderThickness="0 2 0 0" CornerRadius="0" BorderBrush="{DynamicResource SemiColorTertiary}">
<Grid> <Grid>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>