Skip to content

Commit a261a3d

Browse files
Fix UI
1 parent 6e8404e commit a261a3d

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed

SharpPusher/Views/MainWindow.axaml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
x:CompileBindings="True"
77
x:DataType="vm:MainWindowViewModel"
88
x:Class="SharpPusher.Views.MainWindow"
9-
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="650"
10-
Height="650" Width="800"
9+
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="620"
10+
Height="620" Width="800"
1111
Icon="/Assets/PusherIcon.ico"
1212
FontSize="14"
1313
Title="SharpPusher">
@@ -17,15 +17,25 @@
1717
</Design.DataContext>
1818

1919
<Grid ColumnDefinitions="2*,1*" RowDefinitions="1*,auto">
20-
<TextBox Text="{Binding RawTx}"
21-
TextWrapping="Wrap"
22-
AcceptsReturn="True"
23-
Watermark="Enter raw transaction hex here"
24-
UseFloatingWatermark="False"
25-
Margin="5"
26-
Grid.Column="0"/>
20+
<Grid RowDefinitions="*,*" Grid.Column="0" Grid.Row="0">
21+
<TextBox Text="{Binding RawTx}"
22+
TextWrapping="Wrap"
23+
AcceptsReturn="False"
24+
Watermark="Enter raw transaction hex here"
25+
UseFloatingWatermark="False"
26+
Margin="5"
27+
Grid.Row="0"/>
28+
29+
<TextBox Text="{Binding Message}"
30+
IsReadOnly="True"
31+
Background="Gainsboro"
32+
Grid.Row="1"/>
33+
</Grid>
34+
35+
36+
<StackPanel Orientation="Vertical" Spacing="3" Margin="5"
37+
Grid.Column="1" Grid.Row="0">
2738

28-
<StackPanel Orientation="Vertical" Spacing="3" Margin="5" Grid.Column="1" Grid.Row="0">
2939
<ListBox ItemsSource="{Binding NetworkList}"
3040
SelectedItem="{Binding SelectedNetwork}"
3141
Classes="RadioButtonListBox"/>
@@ -39,7 +49,7 @@
3949
</ListBox.ItemTemplate>
4050
</ListBox>
4151

42-
<CheckBox Content="Deserialize and check transaction"
52+
<CheckBox Content="Deserialize and check transaction"
4353
IsVisible="{Binding IsCheckTxVisible}"
4454
IsChecked="{Binding CheckTx}"
4555
ToolTip.Tip="{Binding CheckTxToolTip}"/>
@@ -49,9 +59,6 @@
4959
HorizontalAlignment="Stretch"
5060
HorizontalContentAlignment="Center"/>
5161

52-
<TextBlock Text="{Binding Errors}"
53-
TextWrapping="Wrap"/>
54-
5562
<TextBlock Text="{Binding VersionString}"
5663
TextAlignment="Center"
5764
Background="#FFADD8EC"
@@ -62,8 +69,8 @@
6269
</StackPanel>
6370

6471

65-
<TextBlock Text="{Binding Status}"
66-
Height="30"
72+
<TextBlock Text="{Binding CurrentState}"
73+
Height="25"
6774
Background="LightGray"
6875
Grid.ColumnSpan="2"
6976
Grid.Row="1"/>

0 commit comments

Comments
 (0)