2020-02-02 15:41:48 -05:00
|
|
|
<ContentDialog
|
|
|
|
|
x:Class="UWP_Visual_Asset_Generator.UserControls.BackgroundColorUserControl"
|
|
|
|
|
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:local="using:UWP_Visual_Asset_Generator.UserControls"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
|
xmlns:muxc="using:Windows.UI.Xaml.Controls"
|
|
|
|
|
xmlns:tk="using:Microsoft.Toolkit.Uwp.UI.Controls"
|
|
|
|
|
mc:Ignorable="d">
|
|
|
|
|
|
|
|
|
|
<Grid>
|
2021-05-12 20:01:21 -04:00
|
|
|
<StackPanel x:Name="contentgoeshere">
|
2020-02-02 15:41:48 -05:00
|
|
|
<TextBlock
|
|
|
|
|
Margin="8"
|
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
|
Text="Select Icon Background Colour" />
|
2021-05-12 20:01:21 -04:00
|
|
|
<muxc:ToggleSwitch
|
|
|
|
|
Margin="0,8"
|
|
|
|
|
Header="Use Transparent Background"
|
|
|
|
|
IsOn="{x:Bind mainViewModel.UseTransparentBackground, Mode=TwoWay}"
|
|
|
|
|
OffContent="No - Select a colour below"
|
|
|
|
|
OnContent="Yes - Transparent" />
|
2020-02-02 15:41:48 -05:00
|
|
|
<ColorPicker
|
|
|
|
|
IsAlphaSliderVisible="True"
|
|
|
|
|
IsAlphaTextInputVisible="True"
|
|
|
|
|
IsColorChannelTextInputVisible="False"
|
2021-05-12 20:01:21 -04:00
|
|
|
IsEnabled="{x:Bind mainViewModel.UseColouredBackground, Mode=OneWay}"
|
|
|
|
|
Color="{x:Bind mainViewModel.BackgroundColour, Mode=TwoWay}" />
|
2020-02-02 15:41:48 -05:00
|
|
|
|
|
|
|
|
<tk:ImageEx
|
|
|
|
|
x:Uid="preview"
|
|
|
|
|
Width="120"
|
|
|
|
|
Margin="8"
|
|
|
|
|
Padding="24"
|
|
|
|
|
Background="{x:Bind mainViewModel.BackgroundColourBrush, Mode=OneWay}"
|
|
|
|
|
PlaceholderSource="/Images/Logo.png"
|
|
|
|
|
PlaceholderStretch="Uniform"
|
|
|
|
|
Source="{x:Bind mainViewModel.OriginalLogoImageSource, Mode=OneWay}"
|
|
|
|
|
Stretch="Uniform"
|
|
|
|
|
ToolTipService.ToolTip="Preveiew" />
|
|
|
|
|
|
|
|
|
|
<muxc:Button
|
|
|
|
|
x:Name="okButton"
|
|
|
|
|
Margin="8"
|
|
|
|
|
Padding="4"
|
|
|
|
|
HorizontalAlignment="Stretch"
|
|
|
|
|
Click="okButton_Click"
|
|
|
|
|
Content="Ok" />
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</ContentDialog>
|