Setting EmptyTemplate on CompletionList does not have any effect #74

Open
opened 2015-09-14 04:17:27 -05:00 by Pwndrian · 0 comments
Pwndrian commented 2015-09-14 04:17:27 -05:00 (Migrated from github.com)

The issue is the same as described in http://www.codeproject.com/Messages/4980791/Usage-of-CompletionList-EmptyTemplate.aspx:

Setting the EmptyTemplate on the CompletionList of a CompletionWindow does not have any effect. I intend to use code like the following to define the template:

<Style TargetType="CodeCompletion:CompletionList" 
       BasedOn="{StaticResource {x:Type CodeCompletion:CompletionList}}">
    <Setter Property="EmptyTemplate">
        <Setter.Value>
            <ControlTemplate>
                <Label Content="No suggestions"/>
            </ControlTemplate>
        </Setter.Value>
    </Setter>
</Style>

As "Member 10819996" wrote:

The template does not show up, neither when the CompletionData list is empty from start, nor when it initially contains items, but all items get filtered out.

The issue is the same as described in http://www.codeproject.com/Messages/4980791/Usage-of-CompletionList-EmptyTemplate.aspx: Setting the `EmptyTemplate` on the `CompletionList` of a `CompletionWindow` does not have any effect. I intend to use code like the following to define the template: ``` xml <Style TargetType="CodeCompletion:CompletionList" BasedOn="{StaticResource {x:Type CodeCompletion:CompletionList}}"> <Setter Property="EmptyTemplate"> <Setter.Value> <ControlTemplate> <Label Content="No suggestions"/> </ControlTemplate> </Setter.Value> </Setter> </Style> ``` As "Member 10819996" wrote: > The template does not show up, neither when the `CompletionData` list is empty from start, nor when it initially contains items, but all items get filtered out.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-icsharpcode/AvalonEdit#74
No description provided.