forked from ArthurHub/HTML-Renderer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSampleWindow.xaml
More file actions
28 lines (28 loc) · 1.76 KB
/
Copy pathSampleWindow.xaml
File metadata and controls
28 lines (28 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<Window x:Class="TheArtOfDev.HtmlRenderer.Demo.WPF.SampleWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:wpf="clr-namespace:TheArtOfDev.HtmlRenderer.WPF;assembly=HtmlRenderer.WPF"
Title="Sample Window" Height="300" Width="500" WindowStartupLocation="CenterOwner">
<Grid Background="{x:Static SystemColors.ControlBrush}">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6*"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="4*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Text="Html Label" Margin="10 0"/>
<Border Background="{StaticResource TransBackBrush}" Grid.Row="1" Grid.Column="0" Margin="10 5">
<wpf:HtmlLabel x:Name="_htmlLabel" AutoSizeHeightOnly="True" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="8" MouseLeftButtonUp="OnHtmlControl_click" />
</Border>
<TextBlock Text="Html Panel" Grid.Row="2" Grid.Column="0" Margin="10 0"/>
<wpf:HtmlPanel x:Name="_htmlPanel" Grid.Row="3" Grid.Column="0" Margin="10 5" MouseLeftButtonUp="OnHtmlControl_click"/>
<xctk:PropertyGrid x:Name="_propertyGrid" Grid.Row="0" Grid.Column="2" Grid.RowSpan="4" PropertyValueChanged="OnPropertyChanged"/>
<GridSplitter Grid.Row="0" Grid.Column="1" Grid.RowSpan="4" Width="4" Background="#BFDBFF" ResizeBehavior="PreviousAndNext" VerticalAlignment="Stretch" />
</Grid>
</Window>