53 lines
2.0 KiB
XML
53 lines
2.0 KiB
XML
<Window x:Class="FasdExcelToJsonConverter.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:FasdExcelToJsonConverter"
|
|
mc:Ignorable="d"
|
|
Title="F4SD Excel-JSON Converter"
|
|
Height="130"
|
|
Width="400"
|
|
DataContext="{Binding RelativeSource={RelativeSource Self}}"
|
|
WindowStyle="ToolWindow"
|
|
ResizeMode="NoResize">
|
|
<Window.Resources>
|
|
<FontFamily x:Key="robotoRegularFont">./resources/Roboto-Regular.ttf#Roboto</FontFamily>
|
|
</Window.Resources>
|
|
<Grid Margin="10">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBox Grid.Row="0"
|
|
Grid.Column="0"
|
|
Padding="3"
|
|
Text="{Binding SelectedFile}"
|
|
FontFamily="{StaticResource robotoRegularFont}"/>
|
|
<Button x:Name="SearchFileButton"
|
|
Grid.Column="1"
|
|
Click="SearchFileButton_Click"
|
|
ToolTip="Select File"
|
|
Margin="5,0,0,0"
|
|
Padding="5,0"
|
|
FontFamily="{StaticResource robotoRegularFont}">...</Button>
|
|
|
|
<Button x:Name="ConvertButton"
|
|
Margin="0, 10"
|
|
Padding="5"
|
|
Grid.ColumnSpan="2"
|
|
Grid.Row="1"
|
|
FontSize="20"
|
|
FontFamily="{StaticResource robotoRegularFont}"
|
|
FontWeight="Black"
|
|
Cursor="Hand"
|
|
Click="ConvertButton_Click">Convert to JSON!</Button>
|
|
</Grid>
|
|
</Window>
|