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));
}
public void OnViewFullyLoaded()
public void OnViewLoaded()
{
if (_settingsService.LastToken is not null)
{

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