Remove direction button

This commit is contained in:
Aleh Khantsevich
2024-07-02 02:52:56 +02:00
parent 573fe3cad3
commit 1e9d7c9b93
5 changed files with 7 additions and 36 deletions

View File

@@ -263,6 +263,8 @@
</ToggleButton.Content>
</ToggleButton>
<AppBarSeparator />
<Button
x:Name="DecreaseIndentButton"
Height="32"
@@ -285,19 +287,6 @@
</Button.Content>
</Button>
<AppBarSeparator />
<ToggleButton
x:Name="DirectionButton"
Height="32"
Click="DirectionButtonClicked">
<ToggleButton.Content>
<Viewbox Width="16">
<PathIcon Data="{StaticResource ParagraphPathIcon}" />
</Viewbox>
</ToggleButton.Content>
</ToggleButton>
<ComboBox
x:Name="AlignmentListView"
Width="120"

View File

@@ -206,11 +206,6 @@ namespace Wino.Views
await InvokeScriptSafeAsync("editor.execCommand('outdent')");
}
private async void DirectionButtonClicked(object sender, RoutedEventArgs e)
{
await InvokeScriptSafeAsync("document.getElementById('directionButton').click();");
}
private async void AlignmentChanged(object sender, SelectionChangedEventArgs e)
{
var selectedItem = AlignmentListView.SelectedItem as ComboBoxItem;