This repository was archived by the owner on Feb 4, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
43 lines (43 loc) · 3.05 KB
/
MainWindow.xaml
File metadata and controls
43 lines (43 loc) · 3.05 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<Window x:Class="HTMLtoXAML.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
xmlns:ei="clr-namespace:Microsoft.Expression.Interactivity.Core;assembly=Microsoft.Expression.Interactions"
xmlns:local="clr-namespace:HTMLtoXAML"
mc:Ignorable="d"
Title="Incredible Interpretator for Frontend - C# Dev's" Height="711.773" Width="1112.881">
<Window.DataContext>
<local:ViewModel/>
</Window.DataContext>
<Grid RenderTransformOrigin="0.5,0.499">
<Grid.RowDefinitions>
<RowDefinition Height="5*"></RowDefinition>
<RowDefinition Height="26*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="543*"></ColumnDefinition>
<ColumnDefinition Width="563*"></ColumnDefinition>
</Grid.ColumnDefinitions>
<local:Preview Grid.Row="1" Grid.Column="1"/>
<ToggleButton
Name="btnOpenPort" HorizontalAlignment="Left" Margin="219,10,0,0" VerticalAlignment="Top" Width="149" FontSize="18" FontWeight="Bold" Height="42" Background="{Binding bgColor}" Foreground="White" BorderBrush="Black" Content="{Binding btnText}"
IsChecked="{Binding Path=PortIsOpen, Mode=OneWay}"
Canvas.Left="75" Canvas.Top="80">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Checked">
<i:InvokeCommandAction Command="{Binding StartWatcher}"/>
</i:EventTrigger>
<i:EventTrigger EventName="Unchecked">
<i:InvokeCommandAction Command="{Binding StopWatcher}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</ToggleButton>
<Button x:Name="openFile_Btn" Command="{Binding OpenFile}" Content="Open File" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="149" FontSize="18" FontWeight="Bold" Height="42" Background="#FF090909" Foreground="White" BorderBrush="Black"/>
<Label x:Name="label_HTML" Content="HTML" HorizontalAlignment="Left" Margin="10,83,0,0" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" Height="32" Grid.Row="0" Grid.Column="0" Width="54"/>
<WebBrowser x:Name="webBrowser" local:WebBrowserUtility.BindableSource="{Binding WebFilePath}" HorizontalAlignment="Left" Height="558" Margin="10,4.6,0,0" VerticalAlignment="Top" Width="523" Grid.Row="2" Grid.Column="0"/>
<Label x:Name="label_XAML" Content="XAML" HorizontalAlignment="Left" Margin="9.8,78,0,0" VerticalAlignment="Top" FontSize="16" FontWeight="Bold" Height="32" Width="213" Grid.Column="1" Grid.Row="0"/>
<Label x:Name="filePath" Content="{Binding FilePath}" HorizontalAlignment="Left" Margin="10,60,0,0" VerticalAlignment="Top"/>
</Grid>
</Window>