68 lines
3.1 KiB
Plaintext
68 lines
3.1 KiB
Plaintext
|
<ResourceDictionary
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:local="using:WinUIEditor">
|
||
|
|
||
|
<!-- Todo: Apply corner radius to this. Remember conditional Setters do not work, so make a different style for each version. What happens with WinUI 3? -->
|
||
|
<Style TargetType="local:EditorBaseControl">
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="local:EditorBaseControl">
|
||
|
<Grid
|
||
|
Padding="{TemplateBinding Padding}"
|
||
|
Background="{TemplateBinding Background}"
|
||
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="*" />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="*" />
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Border
|
||
|
x:Name="ImageTarget"
|
||
|
Grid.Row="0"
|
||
|
Grid.RowSpan="2"
|
||
|
Grid.Column="0"
|
||
|
Grid.ColumnSpan="2"
|
||
|
AllowDrop="True" />
|
||
|
<ScrollBar
|
||
|
x:Name="VerticalScrollBar"
|
||
|
Grid.Row="0"
|
||
|
Grid.Column="1"
|
||
|
IndicatorMode="MouseIndicator"
|
||
|
IsTabStop="False"
|
||
|
Orientation="Vertical" />
|
||
|
<ScrollBar
|
||
|
x:Name="HorizontalScrollBar"
|
||
|
Grid.Row="1"
|
||
|
Grid.Column="0"
|
||
|
IndicatorMode="MouseIndicator"
|
||
|
IsTabStop="False"
|
||
|
Orientation="Horizontal" />
|
||
|
</Grid>
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
|
||
|
<Style TargetType="local:CodeEditorControl">
|
||
|
<Setter Property="Template">
|
||
|
<Setter.Value>
|
||
|
<ControlTemplate TargetType="local:CodeEditorControl">
|
||
|
<ContentPresenter
|
||
|
x:Name="EditorContainer"
|
||
|
Padding="{TemplateBinding Padding}"
|
||
|
Background="{TemplateBinding Background}"
|
||
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||
|
CornerRadius="{TemplateBinding CornerRadius}" />
|
||
|
</ControlTemplate>
|
||
|
</Setter.Value>
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
</ResourceDictionary>
|