Listbox horizontal line not showing
See original GitHub issueI can’t figure it out why the gray horizontal line does not show when dragging items to ListBox. Is there some trick here?
<Window x:Class="EmptyListBoxWithDragAndDrop.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:gong="clr-namespace:GongSolutions.Wpf.DragDrop;assembly=GongSolutions.Wpf.DragDrop"
Title="MainWindow" Height="600" Width="800" WindowStartupLocation="CenterScreen">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<ListBox Grid.Column="0" ItemsSource="{Binding Source}"
gong:DragDrop.IsDragSource="True" gong:DragDrop.UseDefaultEffectDataTemplate="True"/>
<ListBox Grid.Column="1" ItemsSource="{Binding Target}"
gong:DragDrop.IsDropTarget="True" gong:DragDrop.DropHandler="{Binding}">
<ListBox.Style>
<Style TargetType="ListBox" BasedOn="{StaticResource {x:Type ListBox}}">
<Style.Triggers>
<Trigger Property="HasItems" Value="False">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<TextBlock Text="Drag items from left ListBox" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
</ListBox.Style>
</ListBox>
</Grid>
</Window>
I even remove the trigger style, but it doesn’t work, no horizontal line is shown. This is the line I’m talking about:
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Listbox Horizontal scrollbar not visible - Getting Started
But the Listbox Horizontal scrollbar is not visible, and it is set to true for visible. I made sure the count changed from...
Read more >Horizontal lines every second row in listbox - Windows
I've just gotten a report from a Windows test user that all of the listboxes in my app have a white horizontal line...
Read more >Horizontal lines - QlikView App Dev
Hi All, Has anyone else noticed that Horizontal lines with 1-2pt aren't ... reference line not showing properly - when bar chart orientation...
Read more >Solved: Horizontal Line - Qlik Community - 535496
Hi all,. It is possible in my chart to create a symetric courbe like a pink exponential courbe and it is possible to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So there is a catch 😄 Thanks, it worked!
I can’t believe it! Thanks a lot, I’ve been banging my head over this (my stackoverflow question)
@JobaDiniz 😄 I should use a default for this to avoid such issues…