mirror of
https://github.com/fadden/6502bench.git
synced 2025-02-18 08:30:28 +00:00
Fix setting of IsLongComment
This commit is contained in:
parent
da825d3114
commit
9bbaa80570
@ -310,13 +310,6 @@ namespace SourceGenWPF {
|
|||||||
return parts;
|
return parts;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static FormattedParts Create(string longComment) {
|
|
||||||
FormattedParts parts = new FormattedParts();
|
|
||||||
parts.Comment = longComment;
|
|
||||||
parts.IsLongComment = true;
|
|
||||||
|
|
||||||
return parts;
|
|
||||||
}
|
|
||||||
public static FormattedParts CreateBlankLine() {
|
public static FormattedParts CreateBlankLine() {
|
||||||
FormattedParts parts = new FormattedParts();
|
FormattedParts parts = new FormattedParts();
|
||||||
return parts;
|
return parts;
|
||||||
@ -325,6 +318,7 @@ namespace SourceGenWPF {
|
|||||||
public static FormattedParts CreateLongComment(string comment) {
|
public static FormattedParts CreateLongComment(string comment) {
|
||||||
FormattedParts parts = new FormattedParts();
|
FormattedParts parts = new FormattedParts();
|
||||||
parts.Comment = comment;
|
parts.Comment = comment;
|
||||||
|
parts.IsLongComment = true;
|
||||||
return parts;
|
return parts;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ See also https://github.com/fadden/DisasmUiTest
|
|||||||
<!-- Template for long lines. This is a modification of the default style, with
|
<!-- Template for long lines. This is a modification of the default style, with
|
||||||
Content and Columns attributes defined in the GridViewRowPresenter. It appears we
|
Content and Columns attributes defined in the GridViewRowPresenter. It appears we
|
||||||
inherit the FocusVisualStyle from the default. -->
|
inherit the FocusVisualStyle from the default. -->
|
||||||
<ControlTemplate x:Key="longComment" TargetType="{x:Type ListViewItem}">
|
<ControlTemplate x:Key="longCommentTemplate" TargetType="{x:Type ListViewItem}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<Border BorderBrush="{TemplateBinding BorderBrush}"
|
<Border BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
@ -135,7 +135,7 @@ See also https://github.com/fadden/DisasmUiTest
|
|||||||
<Style x:Key="codeListItemStyle" TargetType="{x:Type ListViewItem}">
|
<Style x:Key="codeListItemStyle" TargetType="{x:Type ListViewItem}">
|
||||||
<Style.Triggers>
|
<Style.Triggers>
|
||||||
<DataTrigger Binding="{Binding Path=IsLongComment}" Value="True">
|
<DataTrigger Binding="{Binding Path=IsLongComment}" Value="True">
|
||||||
<Setter Property="Template" Value="{StaticResource longComment}"/>
|
<Setter Property="Template" Value="{StaticResource longCommentTemplate}"/>
|
||||||
</DataTrigger>
|
</DataTrigger>
|
||||||
</Style.Triggers>
|
</Style.Triggers>
|
||||||
</Style>
|
</Style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user