More cleanup

pull/826/head
Oleksii Holub 3 years ago
parent aea96d5eba
commit 91ea7a443c

@ -67,7 +67,7 @@ public class DashboardViewModel : PropertyChangedBase
Progress.Bind(o => o.Current, (_, _) => NotifyOfPropertyChange(() => IsProgressIndeterminate)); Progress.Bind(o => o.Current, (_, _) => NotifyOfPropertyChange(() => IsProgressIndeterminate));
} }
public void OnViewFullyLoaded() public void OnViewLoaded()
{ {
if (_settingsService.LastToken is not null) if (_settingsService.LastToken is not null)
{ {

@ -13,6 +13,7 @@
xmlns:s="https://github.com/canton7/Stylet" xmlns:s="https://github.com/canton7/Stylet"
d:DataContext="{d:DesignInstance Type=components:DashboardViewModel}" d:DataContext="{d:DesignInstance Type=components:DashboardViewModel}"
FocusManager.FocusedElement="{Binding ElementName=TokenValueTextBox}" FocusManager.FocusedElement="{Binding ElementName=TokenValueTextBox}"
Loaded="{s:Action OnViewLoaded}"
mc:Ignorable="d"> mc:Ignorable="d">
<UserControl.Resources> <UserControl.Resources>
<CollectionViewSource x:Key="AvailableChannelsViewSource" Source="{Binding AvailableChannels, Mode=OneWay}"> <CollectionViewSource x:Key="AvailableChannelsViewSource" Source="{Binding AvailableChannels, Mode=OneWay}">
@ -26,7 +27,7 @@
</CollectionViewSource> </CollectionViewSource>
</UserControl.Resources> </UserControl.Resources>
<Grid Loaded="{s:Action OnViewFullyLoaded}"> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />
<RowDefinition Height="Auto" /> <RowDefinition Height="Auto" />

Loading…
Cancel
Save