xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:cal="http://www.caliburnproject.org"
xmlns:cnv="clr-namespace:Pithos.Client.WPF.Converters"
xmlns:model="clr-namespace:Pithos.Client.WPF.FileProperties"
- Title="Conflicts" Height="300" Width="500" x:Name="This"
+ Title="Conflicts" Height="500" Width="500" x:Name="This"
>
<Window.Resources>
<ResourceDictionary>
<Window x:Class="Pithos.Client.WPF.Preferences.LoginView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
Title="Astakos Login" Height="800" Width="1024" Icon="/PithosPlus;component/Images/PithosTaskbar.png"
x:Name="TheView">
<Grid>
<TextBox Text="{Binding Path=Uri,ElementName=TheView}" Grid.Column="2" Margin="5,0,5,0" IsReadOnly="true"/>
<Button Content="Retry" Grid.Column="3" x:Name="Retry" Click="Retry_Click" Padding="2"/>
</Grid>
- <WebBrowser Grid.Row="1" HorizontalAlignment="Stretch" Margin="5" Name="LoginBrowser" VerticalAlignment="Stretch" Navigating="LoginBrowser_Navigating" />
+ <extToolkit:BusyIndicator Grid.Row="1" x:Name="IsBusy">
+ <WebBrowser HorizontalAlignment="Stretch" Margin="5" Name="LoginBrowser" VerticalAlignment="Stretch" Navigating="LoginBrowser_Navigating" Navigated="LoginBrowser_Navigated" />
+ </extToolkit:BusyIndicator>
</Grid>
</Window>
private void LoginBrowser_Navigating(object sender, System.Windows.Navigation.NavigatingCancelEventArgs e)
{
+ IsBusy.IsBusy = true;
Log.Debug(e.ToString());
if (e.Uri.Scheme == "pithos")
{
LoginBrowser.Navigate(Uri);
}
+
+ private void LoginBrowser_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
+ {
+ IsBusy.IsBusy = false;
+ }
}
}