Skip to content

Commit

Permalink
Merge pull request #321 from hez2010/patch-2
Browse files Browse the repository at this point in the history
Enable compiled bindings
  • Loading branch information
danipen authored Apr 6, 2023
2 parents 89e10f0 + bd1168a commit daf4320
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/AvaloniaEdit.Demo/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<ControlTemplate>
<cc:CompletionListBox Name="PART_ListBox" Background="Gray" BorderThickness="1" BorderBrush="LightGray" >
<cc:CompletionListBox.ItemTemplate>
<DataTemplate>
<DataTemplate x:DataType="cc:ICompletionData">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Height="18">
<Image Source="{Binding Image}"
Width="15"
Expand Down
1 change: 1 addition & 0 deletions src/AvaloniaEdit.Demo/AvaloniaEdit.Demo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<RuntimeIdentifiers>win7-x64;linux-x64;osx-x64</RuntimeIdentifiers>
<EnableDefaultCompileItems>False</EnableDefaultCompileItems>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion src/AvaloniaEdit/AvaloniaEdit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<PackageId>Avalonia.AvaloniaEdit</PackageId>
<Description>This project is a port of AvalonEdit, a WPF-based text editor for Avalonia.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -41,4 +42,4 @@
</ReferencePath>
</ItemGroup>
</Target>
</Project>
</Project>
4 changes: 2 additions & 2 deletions src/AvaloniaEdit/CodeCompletion/CompletionList.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<Setter Property="Template">
<ControlTemplate>
<cc:CompletionListBox Name="PART_ListBox" FontSize="11">
<cc:CompletionListBox.ItemTemplate>
<DataTemplate>
<cc:CompletionListBox.ItemTemplate>
<DataTemplate x:DataType="cc:ICompletionData">
<StackPanel Orientation="Horizontal" Margin="0">
<Image Source="{Binding Image}"
Width="16"
Expand Down

0 comments on commit daf4320

Please sign in to comment.