2013-11-12 19:14:11 +08:00
|
|
|
<Window x:Class="CefSharp.MinimalExample.Wpf.MainWindow"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2016-01-13 08:53:46 +08:00
|
|
|
xmlns:wpf="clr-namespace:CefSharp.Wpf;assembly=CefSharp.Wpf"
|
|
|
|
Title="{Binding Path=Title, ElementName=Browser, Converter={StaticResource TitleConverter}}"
|
2013-11-12 19:14:11 +08:00
|
|
|
WindowState="Maximized">
|
2016-01-13 08:53:46 +08:00
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<wpf:ChromiumWebBrowser Grid.Row="0"
|
2016-10-24 03:36:44 +08:00
|
|
|
x:Name="Browser"
|
|
|
|
Address="http://www.google.com" />
|
2016-01-13 08:53:46 +08:00
|
|
|
<StatusBar Grid.Row="1">
|
|
|
|
<ProgressBar HorizontalAlignment="Right"
|
2016-10-24 03:36:44 +08:00
|
|
|
IsIndeterminate="{Binding IsLoading, ElementName=Browser}"
|
2016-01-13 08:53:46 +08:00
|
|
|
Width="100"
|
|
|
|
Height="16"
|
|
|
|
Margin="3" />
|
|
|
|
<Separator />
|
|
|
|
<!-- TODO: Could show hover link URL here -->
|
2016-10-24 03:36:44 +08:00
|
|
|
<TextBlock Text="{Binding Address, ElementName=Browser}"/>
|
2016-01-13 08:53:46 +08:00
|
|
|
</StatusBar>
|
|
|
|
</Grid>
|
2013-11-12 19:14:11 +08:00
|
|
|
</Window>
|