You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.6 KiB
53 lines
2.6 KiB
<Window x:Class="ChromeStarter.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:local="clr-namespace:ChromeStarter"
|
|
xmlns:model="clr-namespace:ChromeStarter.Models"
|
|
mc:Ignorable="d"
|
|
Title="MainWindow" Height="450" Width="500"
|
|
MinHeight="450" MinWidth="500"
|
|
Icon="/Resources/Icon.ico">
|
|
<Window.DataContext>
|
|
<model:ProfilePlanCollection/>
|
|
</Window.DataContext>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="30"/>
|
|
<RowDefinition Height="*"/>
|
|
<RowDefinition Height="30"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center">
|
|
<Label Content="Path: "/>
|
|
<TextBox x:Name="tbChromePath" Width="350" Margin="10 0 0 0" VerticalAlignment="Center"/>
|
|
<Button x:Name="btnFindChromePath" Content="..." Width="30" Margin="10 0 0 0" VerticalAlignment="Center"
|
|
Click="btnFindChromePath_Click"/>
|
|
</StackPanel>
|
|
|
|
<ListView Grid.Row="1" x:Name="lvProfiles" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" Margin="5" ItemsSource="{Binding ProfilePlans}">
|
|
<ListView.View>
|
|
<GridView>
|
|
<GridViewColumn Header="Profile" Width="Auto">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Name}" HorizontalAlignment="Center" TextAlignment="Center"/>
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
<GridViewColumn x:Name="gvcStartPage" Header="Start Page" Width="420">
|
|
<GridViewColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<TextBox Text="{Binding StartPage, Mode=TwoWay}" Width="{Binding ElementName=gvcStartPage, Path=ActualWidth}" BorderThickness="0" TextAlignment="Left"/>
|
|
</DataTemplate>
|
|
</GridViewColumn.CellTemplate>
|
|
</GridViewColumn>
|
|
</GridView>
|
|
</ListView.View>
|
|
</ListView>
|
|
|
|
<Button Grid.Row="2" x:Name="btnStart" Content="Start" Click="btnStart_Click"/>
|
|
</Grid>
|
|
</Window>
|
|
|