moved connection state to status bar
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
xmlns:vm="clr-namespace:ARAMUtility.ViewModel"
|
||||
mc:Ignorable="d"
|
||||
Title="{Binding Title}"
|
||||
Height="480"
|
||||
Height="500"
|
||||
Width="700"
|
||||
Background="#0a1a2a"
|
||||
Topmost="True"
|
||||
@@ -67,27 +67,11 @@
|
||||
<Separator />
|
||||
<MenuItem Header="Quit" Command="{Binding QuitCommand}" />
|
||||
</MenuItem>
|
||||
<MenuItem Header="{Binding ConnectionStatus}" Command="{Binding ConnectCommand}" />
|
||||
<MenuItem Header="Update ARAM">
|
||||
<StackPanel Orientation="Vertical">
|
||||
<ComboBox ItemsSource="{Binding .}"
|
||||
SelectedIndex="0"
|
||||
SelectedItem="{Binding .}"
|
||||
/>
|
||||
<ItemsControl ItemsSource="{Binding .}">
|
||||
<ItemsControl.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<Label Content="{Binding .}" />
|
||||
<TextBox Text="{Binding .}" />
|
||||
</StackPanel>
|
||||
</DataTemplate>
|
||||
</ItemsControl.ItemTemplate>
|
||||
</ItemsControl>
|
||||
<Button Content="Save" />
|
||||
</StackPanel>
|
||||
</MenuItem>
|
||||
<MenuItem Header="Reconnect" Command="{Binding ConnectCommand}" Visibility="{Binding ReconnectButtonVisibility, Mode=OneWay}" />
|
||||
</Menu>
|
||||
<StatusBar DockPanel.Dock="Bottom">
|
||||
<StatusBarItem Content="{Binding Status}" />
|
||||
</StatusBar>
|
||||
<Viewbox Stretch="Uniform" StretchDirection="DownOnly">
|
||||
<Grid Margin="10">
|
||||
<Grid.RowDefinitions>
|
||||
|
||||
@@ -11,6 +11,10 @@ public partial class MainWindow : Window
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
#if DEBUG
|
||||
Topmost = false;
|
||||
#endif
|
||||
|
||||
if (DataContext is MainViewModel viewModel)
|
||||
{
|
||||
Loaded += viewModel.OnInit;
|
||||
|
||||
Reference in New Issue
Block a user