Skip to content

Commit daf4320

Browse files
authored
Merge pull request #321 from hez2010/patch-2
Enable compiled bindings
2 parents 89e10f0 + bd1168a commit daf4320

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

src/AvaloniaEdit.Demo/App.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<ControlTemplate>
1414
<cc:CompletionListBox Name="PART_ListBox" Background="Gray" BorderThickness="1" BorderBrush="LightGray" >
1515
<cc:CompletionListBox.ItemTemplate>
16-
<DataTemplate>
16+
<DataTemplate x:DataType="cc:ICompletionData">
1717
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Height="18">
1818
<Image Source="{Binding Image}"
1919
Width="15"

src/AvaloniaEdit.Demo/AvaloniaEdit.Demo.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<RuntimeIdentifiers>win7-x64;linux-x64;osx-x64</RuntimeIdentifiers>
77
<EnableDefaultCompileItems>False</EnableDefaultCompileItems>
88
<DefineConstants>DEBUG;TRACE</DefineConstants>
9+
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
910
</PropertyGroup>
1011

1112
<ItemGroup>

src/AvaloniaEdit/AvaloniaEdit.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<PackageId>Avalonia.AvaloniaEdit</PackageId>
77
<Description>This project is a port of AvalonEdit, a WPF-based text editor for Avalonia.</Description>
88
<PackageLicenseExpression>MIT</PackageLicenseExpression>
9+
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
910
</PropertyGroup>
1011

1112
<ItemGroup>
@@ -41,4 +42,4 @@
4142
</ReferencePath>
4243
</ItemGroup>
4344
</Target>
44-
</Project>
45+
</Project>

src/AvaloniaEdit/CodeCompletion/CompletionList.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
<Setter Property="Template">
99
<ControlTemplate>
1010
<cc:CompletionListBox Name="PART_ListBox" FontSize="11">
11-
<cc:CompletionListBox.ItemTemplate>
12-
<DataTemplate>
11+
<cc:CompletionListBox.ItemTemplate>
12+
<DataTemplate x:DataType="cc:ICompletionData">
1313
<StackPanel Orientation="Horizontal" Margin="0">
1414
<Image Source="{Binding Image}"
1515
Width="16"

0 commit comments

Comments
 (0)