Skip to content

Commit

Permalink
Cleanup for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
timmer98 committed Nov 30, 2023
1 parent cb48c45 commit 6a060c8
Showing 1 changed file with 79 additions and 63 deletions.
142 changes: 79 additions & 63 deletions WpfApplication1/Views/SpecialViews/ResultView.xaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
<!-- ReSharper disable UnusedMember.Global -->
<UserControl x:Class="LoadProfileGenerator.Views.SpecialViews.ResultView"
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"
d:DesignHeight="380"
d:DesignWidth="510"
mc:Ignorable="d">
<UserControl
x:Class="LoadProfileGenerator.Views.SpecialViews.ResultView"
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"
d:DesignHeight="380"
d:DesignWidth="510"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="35" />
</Grid.RowDefinitions>
<GroupBox Name="Border1" Grid.Row="0"
BorderBrush="Silver"
BorderThickness="5">
<GroupBox
Name="Border1"
Grid.Row="0"
BorderBrush="Silver"
BorderThickness="5">
<GroupBox.Header>
<Border Style="{StaticResource GroupBoxHeader}">
<TextBlock Text="General" />
Expand All @@ -32,16 +35,17 @@
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Label Grid.Column="0"
Content="Household name:"
Target="{Binding ElementName=TxtHouseholdName}" />
<TextBox x:Name="TxtHouseholdName"
Grid.Row="0"
Grid.Column="1"
Height="23"
Margin="5,5,5,5"
Text="{Binding Path=Householdname,
Mode=OneWay}" />
<Label
Grid.Column="0"
Content="Household name:"
Target="{Binding ElementName=TxtHouseholdName}" />
<TextBox
x:Name="TxtHouseholdName"
Grid.Row="0"
Grid.Column="1"
Height="23"
Margin="5,5,5,5"
Text="{Binding Path=Householdname, Mode=OneWay}" />
<!--<Grid Grid.Row="1"
Grid.Column="0"
Grid.ColumnSpan="2">
Expand Down Expand Up @@ -100,13 +104,16 @@
</Grid>-->
</Grid>
</GroupBox>
<GroupBox BorderBrush="Silver" Grid.Row="1" BorderThickness="5">
<GroupBox
Grid.Row="1"
BorderBrush="Silver"
BorderThickness="5">
<GroupBox.Header>
<Border Style="{StaticResource GroupBoxHeader}">
<TextBlock Text="Files" />
</Border>
</GroupBox.Header>
<Grid x:Name="LayoutRoot">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
Expand All @@ -119,59 +126,68 @@
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<TextBlock Grid.ColumnSpan="2" TextWrapping="WrapWithOverflow">
Double clicking on a file will try to open it with the programm associated with the file in windows.
Double clicking on a file will try to open it with the programm associated with the file in windows.
</TextBlock>


<Label Grid.Row="1"
Grid.Column="0"
HorizontalAlignment="Left"
Content="Filter" />
<TextBox x:Name="TxtFilter"
Grid.Row="1"
Grid.Column="1"
Height="23"
Margin="5,5,5,5"
KeyUp="TxtFilterKeyUp" />
<ListView x:Name="LstFiles"
Grid.Row="2"
Grid.Column="0"
Grid.ColumnSpan="2"
MinHeight="150"
Margin="5"
ItemsSource="{Binding FilteredResultFiles}"
MouseDoubleClick="LstFilesMouseDoubleClick">
<Label
Grid.Row="1"
Grid.Column="0"
HorizontalAlignment="Left"
Content="Filter" />
<TextBox
x:Name="TxtFilter"
Grid.Row="1"
Grid.Column="1"
Height="23"
Margin="5,5,5,5"
KeyUp="TxtFilterKeyUp" />
<ListView
x:Name="LstFiles"
Grid.Row="2"
Grid.Column="0"
Grid.ColumnSpan="2"
MinHeight="150"
Margin="5"
ItemsSource="{Binding FilteredResultFiles}"
MouseDoubleClick="LstFilesMouseDoubleClick">
<ListView.View>
<GridView>
<GridViewColumn Width="Auto"
DisplayMemberBinding="{Binding Name}"
Header="Name" />
<GridViewColumn Width="Auto"
DisplayMemberBinding="{Binding FileName}"
Header="Filename" />
<GridViewColumn Width="Auto"
DisplayMemberBinding="{Binding PrettySize}"
Header="Size" />
<GridViewColumn Width="Auto"
DisplayMemberBinding="{Binding FullFileName}"
Header="FullFilename" />
<GridViewColumn
Width="Auto"
DisplayMemberBinding="{Binding Name}"
Header="Name" />
<GridViewColumn
Width="Auto"
DisplayMemberBinding="{Binding FileName}"
Header="Filename" />
<GridViewColumn
Width="Auto"
DisplayMemberBinding="{Binding PrettySize}"
Header="Size" />
<GridViewColumn
Width="Auto"
DisplayMemberBinding="{Binding FullFileName}"
Header="FullFilename" />
</GridView>
</ListView.View>
</ListView>


</Grid>
</GroupBox>
<StackPanel Grid.Row="2"
HorizontalAlignment="Right"
Orientation="Horizontal">
<StackPanel
Grid.Row="2"
HorizontalAlignment="Right"
Orientation="Horizontal">

<Button Name="Close"
Width="75"
Height="23"
HorizontalAlignment="Right"
Click="CloseClick"
Content="Close" />
<Button
Name="Close"
Width="75"
Height="23"
HorizontalAlignment="Right"
Click="CloseClick"
Content="Close" />
</StackPanel>
</Grid>
</UserControl>
Expand Down

0 comments on commit 6a060c8

Please sign in to comment.