mirror of
https://github.com/achiez/NebulaAuth-Steam-Desktop-Authenticator-by-Achies.git
synced 2026-07-25 06:14:31 +00:00
71 lines
3.6 KiB
XML
71 lines
3.6 KiB
XML
<UserControl x:Class="NebulaAuth.View.MafileMoverView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
xmlns:mafileMover="clr-namespace:NebulaAuth.ViewModel.MafileMover"
|
|
xmlns:nebulaAuth="clr-namespace:NebulaAuth"
|
|
mc:Ignorable="d"
|
|
TextElement.Foreground="{DynamicResource BaseContentBrush}"
|
|
FontFamily="{materialDesign:MaterialDesignFont}"
|
|
MinWidth="400"
|
|
MaxWidth="400"
|
|
Background="{DynamicResource WindowBackground}"
|
|
d:DataContext="{d:DesignInstance mafileMover:MafileMoverVM}"
|
|
FontSize="18">
|
|
<UserControl.InputBindings>
|
|
<KeyBinding Key="Enter"
|
|
Command="{Binding CurrentStep.NextCommand}" />
|
|
</UserControl.InputBindings>
|
|
<d:DesignerProperties.DesignStyle>
|
|
<Style TargetType="UserControl">
|
|
<Setter Property="Background" Value="{DynamicResource WindowBackground}" />
|
|
</Style>
|
|
</d:DesignerProperties.DesignStyle>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.Resources>
|
|
<Style TargetType="materialDesign:PackIcon">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=StackPanel}, Path=Tag}"
|
|
Value="False">
|
|
<Setter Property="Foreground" Value="IndianRed" />
|
|
<Setter Property="Kind" Value="CheckBoxOutlineBlank" />
|
|
</DataTrigger>
|
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=StackPanel}, Path=Tag}"
|
|
Value="True">
|
|
<Setter Property="Foreground" Value="Green" />
|
|
<Setter Property="Kind" Value="CheckBoxOutline" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
<Style TargetType="TextBlock">
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=StackPanel}, Path=Tag}"
|
|
Value="True">
|
|
<Setter Property="Foreground" Value="Gray" />
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Grid.Resources>
|
|
<nebulaAuth:DialogHeader IconKind="FileMove" Title="{Tr MafileMoverView.Title}" />
|
|
<nebulaAuth:HintBox FontSize="14"
|
|
Visibility="{Binding Tip, Converter={StaticResource NullableToVisibilityConverter}}"
|
|
Grid.Row="1" Margin="10,10,10,0"
|
|
Text="{Binding Tip}" />
|
|
<ContentControl
|
|
Grid.Row="2" Margin="20" Content="{Binding CurrentStep}" />
|
|
|
|
<nebulaAuth:HintBox FontSize="14"
|
|
Visibility="{Binding Error, Converter={StaticResource NullableToVisibilityConverter}}"
|
|
Grid.Row="3" Margin="10,0,10,10"
|
|
Text="{Binding Error}" />
|
|
</Grid>
|
|
</UserControl> |