3323dc5724
This adds [`XamlStyler.Console`] to our solution, and calls it when we format the code, to also format our .xaml files. * `XamlStyler.Console` is a dotnet tool so it needs to be restored with `dotnet tool restore` * I've added a set of rules to approximately follow [@cmaneu's XAML guidelines]. Those guidelines also recommend things based on the code-behind, which this tool can't figure out, but also _don't matter that much_. * There's an extra step to strip BOMs from the output, since Xaml Styler adds a BOM by default. Some had them before and others didn't. BOMs have been nothing but trouble though. [`XamlStyler.Console`]: https://github.com/Xavalon/XamlStyler [@cmaneu's XAML guidelines]: https://github.com/cmaneu/xaml-coding-guidelines
24 lines
1 KiB
XML
24 lines
1 KiB
XML
<UserControl x:Class="Microsoft.Terminal.Wpf.TerminalControl"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:Microsoft.Terminal.Wpf"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
x:Name="terminalUserControl"
|
|
d:DesignHeight="450"
|
|
d:DesignWidth="800"
|
|
Focusable="True"
|
|
mc:Ignorable="d">
|
|
<Grid x:Name="terminalGrid">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
<local:TerminalContainer x:Name="termContainer" />
|
|
<ScrollBar x:Name="scrollbar"
|
|
Grid.Column="1"
|
|
Scroll="Scrollbar_Scroll"
|
|
SmallChange="1" />
|
|
</Grid>
|
|
</UserControl>
|