2019-09-19 12:34:02 +10:00
|
|
|
<UserControl
|
|
|
|
|
x:Class="UWP_Visual_Asset_Generator.UserControls.AssetBrowserUserControl"
|
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2020-01-26 16:07:37 -05:00
|
|
|
xmlns:Windows10version1809="http://schemas.microsoft.com/winfx/2006/xaml/presentation?IsApiContractPresent(Windows.Foundation.UniversalApiContract, 7)"
|
2019-09-19 10:07:15 -04:00
|
|
|
xmlns:animations="using:Microsoft.Toolkit.Uwp.UI.Animations"
|
2020-01-26 15:21:06 +11:00
|
|
|
xmlns:behaviors="using:Microsoft.Toolkit.Uwp.UI.Animations.Behaviors"
|
2020-01-26 16:07:37 -05:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:local="using:UWP_Visual_Asset_Generator.UserControls"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:mucx="using:Microsoft.UI.Xaml.Controls"
|
|
|
|
|
xmlns:muimedia="using:Microsoft.UI.Xaml.Media"
|
2021-05-12 19:39:16 -04:00
|
|
|
xmlns:muxc="using:Windows.UI.Xaml.Controls"
|
2020-01-26 16:07:37 -05:00
|
|
|
xmlns:tkcon="using:Microsoft.Toolkit.Uwp.UI.Controls"
|
2021-05-12 19:39:16 -04:00
|
|
|
xmlns:viewModels="using:UWP_Visual_Asset_Generator.ViewModels">
|
2019-09-19 12:34:02 +10:00
|
|
|
|
2021-05-12 20:01:21 -04:00
|
|
|
<Grid Padding="12,40,0,0" Background="{ThemeResource SystemChromeMediumColor}">
|
2019-09-19 21:38:07 +10:00
|
|
|
<Grid.RowDefinitions>
|
2020-01-26 16:07:37 -05:00
|
|
|
<RowDefinition Height="auto" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
<RowDefinition Height="auto" />
|
2019-09-19 21:38:07 +10:00
|
|
|
</Grid.RowDefinitions>
|
2019-09-19 12:34:02 +10:00
|
|
|
|
2020-03-11 11:08:38 +11:00
|
|
|
<StackPanel HorizontalAlignment="Center">
|
2021-05-12 19:39:16 -04:00
|
|
|
<TextBlock
|
|
|
|
|
Margin="8,12,8,0"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
HorizontalTextAlignment="Center"
|
|
|
|
|
Text="{x:Bind mainViewModel.AssetTypes.Current.Title, Mode=OneWay}" />
|
|
|
|
|
<TextBlock
|
|
|
|
|
Margin="8,0,8,4"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
FontStyle="Italic"
|
|
|
|
|
HorizontalTextAlignment="Center"
|
|
|
|
|
Style="{ThemeResource CaptionTextBlockStyle}"
|
|
|
|
|
Text="{x:Bind mainViewModel.AssetTypes.Current.Notes, Mode=OneWay}"
|
|
|
|
|
TextWrapping="Wrap" />
|
2020-07-28 05:30:11 +10:00
|
|
|
</StackPanel>
|
2021-05-12 19:39:16 -04:00
|
|
|
|
|
|
|
|
<muxc:Button
|
|
|
|
|
x:Name="toggleAllButton"
|
|
|
|
|
Margin="0"
|
|
|
|
|
Padding="8"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Click="toggleAllButton_Click"
|
|
|
|
|
Content="Toggle All"
|
|
|
|
|
ToolTipService.ToolTip="Toggles all assets in this category" />
|
2020-07-28 05:30:11 +10:00
|
|
|
|
2020-01-26 16:07:37 -05:00
|
|
|
<GridView
|
|
|
|
|
Grid.Row="1"
|
2021-05-12 19:39:16 -04:00
|
|
|
animations:ItemsReorderAnimation.Duration="0:0:0.350"
|
2020-01-26 16:07:37 -05:00
|
|
|
ItemsSource="{x:Bind mainViewModel.AssetTypes.Current.Assets.Items, Mode=OneWay}"
|
|
|
|
|
SelectedItem="{x:Bind mainViewModel.AssetTypes.Current.Assets.Current, Mode=TwoWay}"
|
|
|
|
|
SelectionMode="Extended">
|
2019-09-19 21:38:07 +10:00
|
|
|
<GridView.ItemTemplate>
|
|
|
|
|
<DataTemplate x:DataType="viewModels:AssetViewModel">
|
2020-01-26 16:07:37 -05:00
|
|
|
<Grid
|
|
|
|
|
Width="350"
|
|
|
|
|
Height="470"
|
|
|
|
|
Margin="0"
|
2021-08-25 10:55:58 -04:00
|
|
|
Padding="0">
|
2019-10-01 13:25:38 +10:00
|
|
|
<Grid.RowDefinitions>
|
2020-01-26 16:07:37 -05:00
|
|
|
<RowDefinition Height="auto" MinHeight="50" />
|
|
|
|
|
<RowDefinition Height="*" />
|
|
|
|
|
<RowDefinition Height="auto" />
|
2021-05-12 19:39:16 -04:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
|
2019-10-01 13:25:38 +10:00
|
|
|
<StackPanel>
|
2020-01-26 16:07:37 -05:00
|
|
|
<TextBlock
|
|
|
|
|
Margin="4"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
|
Text="{x:Bind FileName, Mode=OneWay}"
|
|
|
|
|
TextAlignment="Center"
|
|
|
|
|
TextWrapping="Wrap" />
|
2019-09-19 21:38:07 +10:00
|
|
|
|
2020-01-26 16:07:37 -05:00
|
|
|
<TextBlock
|
|
|
|
|
Margin="0"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Bottom">
|
|
|
|
|
|
|
|
|
|
<Run Text="(" />
|
|
|
|
|
<Run Text="{x:Bind ImageWidth, Mode=OneWay}" />
|
|
|
|
|
<Run Text="*" />
|
|
|
|
|
<Run Text="{x:Bind ImageHeight, Mode=OneWay}" />
|
|
|
|
|
<Run Text=")" />
|
2019-09-21 06:51:19 +10:00
|
|
|
|
2019-10-01 13:25:38 +10:00
|
|
|
</TextBlock>
|
|
|
|
|
</StackPanel>
|
2019-09-21 06:51:19 +10:00
|
|
|
|
2020-01-26 16:07:37 -05:00
|
|
|
<tkcon:ImageEx
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
MaxWidth="{x:Bind Logo.PixelWidth, Mode=OneWay}"
|
|
|
|
|
MaxHeight="{x:Bind Logo.PixelHeight, Mode=OneWay}"
|
|
|
|
|
Margin="8"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
BorderBrush="Silver"
|
|
|
|
|
BorderThickness="1"
|
2021-05-12 19:39:16 -04:00
|
|
|
DecodePixelHeight="{x:Bind Logo.PixelHeight, Mode=OneWay}"
|
|
|
|
|
DecodePixelWidth="{x:Bind Logo.PixelWidth, Mode=OneWay}"
|
2020-01-26 16:07:37 -05:00
|
|
|
PlaceholderSource="/Images/Logo.png"
|
|
|
|
|
PlaceholderStretch="Uniform"
|
2020-03-02 10:16:03 +11:00
|
|
|
Source="{x:Bind ReadOnlyLogoForDisplay, Mode=OneWay}"
|
2021-05-12 19:39:16 -04:00
|
|
|
Stretch="Uniform">
|
2020-03-02 10:16:03 +11:00
|
|
|
<tkcon:ImageEx.Background>
|
2021-05-12 19:39:16 -04:00
|
|
|
<SolidColorBrush Color="{x:Bind mainViewModel.PreviewWithAccentColourBrush, Mode=OneWay}" />
|
2020-03-02 10:16:03 +11:00
|
|
|
</tkcon:ImageEx.Background>
|
|
|
|
|
</tkcon:ImageEx>
|
2019-09-20 14:05:26 +10:00
|
|
|
|
2020-01-26 16:07:37 -05:00
|
|
|
<CheckBox
|
|
|
|
|
Margin="12,8"
|
|
|
|
|
HorizontalAlignment="Left"
|
|
|
|
|
VerticalAlignment="Top"
|
|
|
|
|
IsChecked="{x:Bind SelectedForExport, Mode=TwoWay}"
|
|
|
|
|
ToolTipService.ToolTip="Include in export" />
|
2019-10-01 13:25:38 +10:00
|
|
|
|
2020-01-26 16:07:37 -05:00
|
|
|
<TextBlock
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Margin="8,0"
|
|
|
|
|
HorizontalAlignment="Right"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
FontFamily="Segoe MDL2 Assets"
|
|
|
|
|
FontSize="32"
|
|
|
|
|
Foreground="Green"
|
|
|
|
|
Text=""
|
|
|
|
|
ToolTipService.ToolTip="Saved!"
|
|
|
|
|
Visibility="{x:Bind SavedSuccessfully, Mode=OneWay}" />
|
2019-10-01 13:25:38 +10:00
|
|
|
|
2020-01-26 16:07:37 -05:00
|
|
|
<StackPanel
|
|
|
|
|
Grid.Row="2"
|
|
|
|
|
Margin="4"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
Orientation="Horizontal">
|
|
|
|
|
<mucx:NumberBox
|
|
|
|
|
x:Name="text_TopMargin"
|
|
|
|
|
MinWidth="120"
|
|
|
|
|
Margin="4"
|
|
|
|
|
Header="Top Padding"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind TopPadding, Mode=TwoWay}" />
|
|
|
|
|
<mucx:NumberBox
|
|
|
|
|
x:Name="text_BottomMargin"
|
|
|
|
|
MinWidth="120"
|
|
|
|
|
Margin="4"
|
|
|
|
|
Header="Bottom Padding"
|
|
|
|
|
SpinButtonPlacementMode="Compact"
|
|
|
|
|
Value="{x:Bind BottomPadding, Mode=TwoWay}" />
|
2019-10-01 13:25:38 +10:00
|
|
|
|
|
|
|
|
</StackPanel>
|
2020-01-03 09:44:49 +11:00
|
|
|
|
2020-01-26 16:07:37 -05:00
|
|
|
<tkcon:Loading
|
|
|
|
|
Grid.RowSpan="3"
|
|
|
|
|
Margin="0"
|
|
|
|
|
Background="{ThemeResource SystemControlBackgroundAccentBrush}"
|
|
|
|
|
IsLoading="{x:Bind Thinking, Mode=OneWay}"
|
|
|
|
|
Opacity="0.8">
|
|
|
|
|
<StackPanel
|
|
|
|
|
Padding="12"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center">
|
|
|
|
|
|
|
|
|
|
<Image
|
|
|
|
|
Height="100"
|
|
|
|
|
Margin="8"
|
2020-01-03 09:44:49 +11:00
|
|
|
VerticalAlignment="Center"
|
2020-01-26 16:07:37 -05:00
|
|
|
Source="/Images/Logo.png" />
|
2020-01-03 09:44:49 +11:00
|
|
|
|
2020-01-26 16:07:37 -05:00
|
|
|
<TextBlock
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Style="{StaticResource SubtitleTextBlockStyle}"
|
|
|
|
|
Text="{x:Bind ThinkingText, Mode=OneWay}"
|
|
|
|
|
TextAlignment="Center" />
|
2020-01-03 09:44:49 +11:00
|
|
|
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</tkcon:Loading>
|
2019-10-01 13:25:38 +10:00
|
|
|
</Grid>
|
2020-01-26 16:07:37 -05:00
|
|
|
</DataTemplate>
|
2019-09-19 21:38:07 +10:00
|
|
|
</GridView.ItemTemplate>
|
|
|
|
|
</GridView>
|
2019-09-19 12:34:02 +10:00
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|