I am trying to get a border to show around avalonEdit 'box' in a Wpf control, but it can't seem to happen.
I added BorderBrush="Black" BorderThickness="2" , but obviously something is missing.
I searched googled, but despite my efforts, I canβt find anything - I suspect that I may not know the correct terminology for Google, because it seems that it should be easy!
Enter the code as follows:
<Label Content="Account:" HorizontalAlignment="Left" Margin="10,28,0,0" VerticalAlignment="Top"/> <TextBox Name ="textBoxAccount" HorizontalAlignment="Left" Height="23" Margin="66,28,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="120"/> <Label Content="Query:" HorizontalAlignment="Left" Margin="10,59,0,0" VerticalAlignment="Top"/> <Button x:Name="btnGo" Content="Go!" HorizontalAlignment="Left" Height="25" Margin="10,342,0,0" VerticalAlignment="Top" Width="146"/> <avalonEdit:TextEditor xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit" x:Name="textEditor" FontFamily="Consolas" SyntaxHighlighting="AWQL" ScrollViewer.VerticalScrollBarVisibility="Hidden" WordWrap="True" Visibility="Visible" BorderBrush="Black" BorderThickness="2" FontSize="10pt" Margin="12,89.96,10,0" Height="229" VerticalAlignment="Top"/> </Grid>
which is as follows:

but the "avalonEdit" field does not seem to display the border, so it looks invisible if / until the user clicks on it and starts to print.
I would really like the border to look just like a simple text box at the top of a user control, but right now I'm agreeing to anything!
source share