-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
574 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<UserControl x:Class="TrimuiSmartHub.Application.Components.CustomDialog" | ||
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:local="clr-namespace:TrimuiSmartHub.Application.Components" | ||
mc:Ignorable="d" | ||
d:DesignHeight="650" d:DesignWidth="800" | ||
> | ||
<Grid Background="#80000000"> | ||
|
||
<Border | ||
HorizontalAlignment="Stretch" | ||
> | ||
<Border.Background> | ||
<LinearGradientBrush StartPoint="0.5, 0" EndPoint="0.5,1"> | ||
<GradientStop Color="#2C3E50" /> | ||
<GradientStop Color="#1b2a3d" Offset="0.5" /> | ||
|
||
</LinearGradientBrush> | ||
</Border.Background> | ||
<StackPanel Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center" > | ||
<TextBlock TextWrapping="WrapWithOverflow" | ||
Text="To connect your device, please plug in the USB cable, navigate to the App menu, and select the 'USB Storage' option." | ||
Foreground="#AAB8C2" | ||
Margin="15" | ||
FontSize="16" | ||
MaxWidth="550" | ||
FontWeight="SemiBold"/> | ||
|
||
<Image Source="/Resources/Images/Ui/trimui-usb-example.png" Width="500" RenderOptions.BitmapScalingMode="HighQuality"/> | ||
|
||
<StackPanel x:Name="ButtonPanel" | ||
Orientation="Horizontal" | ||
HorizontalAlignment="Center" | ||
VerticalAlignment="Bottom" | ||
Margin="10" > | ||
<Button Content="Agreed" | ||
Width="155" | ||
Foreground="#AAB8C2" | ||
Margin="5" | ||
Click="OkButton_Click"/> | ||
</StackPanel> | ||
</StackPanel> | ||
</Border> | ||
</Grid> | ||
</UserControl> |
36 changes: 36 additions & 0 deletions
36
TrimuiSmartHub.Application/Components/CustomDialog.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Navigation; | ||
using System.Windows.Shapes; | ||
|
||
namespace TrimuiSmartHub.Application.Components | ||
{ | ||
public partial class CustomDialog : UserControl | ||
{ | ||
public CustomDialog() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
// Método para esconder o modal | ||
public void Hide() | ||
{ | ||
this.Visibility = Visibility.Collapsed; | ||
} | ||
|
||
private void OkButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
Hide(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.