-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New UI using Material Design n XAML Toolkit
- Loading branch information
1 parent
03d2058
commit f86d2b4
Showing
47 changed files
with
1,759 additions
and
819 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,44 @@ | ||
<UserControl | ||
x:Class="GetMyIP.Dialogs.ErrorDialog" | ||
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="clr-namespace:GetMyIP" | ||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:system="clr-namespace:System;assembly=mscorlib" | ||
d:DesignHeight="150" | ||
d:DesignWidth="200" | ||
mc:Ignorable="d"> | ||
<Border | ||
BorderBrush="Red" | ||
BorderThickness="2" | ||
CornerRadius="3"> | ||
<StackPanel Margin="16"> | ||
<TextBlock | ||
Margin="8" | ||
Padding="10" | ||
HorizontalAlignment="Center" | ||
FontSize="14" | ||
Text="{Binding Path=Message, FallbackValue='Message Here'}" | ||
TextWrapping="Wrap" /> | ||
<StackPanel | ||
Margin="8" | ||
HorizontalAlignment="Center" | ||
Orientation="Horizontal"> | ||
<Button | ||
VerticalContentAlignment="Center" | ||
Command="materialDesign:DialogHost.CloseDialogCommand" | ||
Content="OK" | ||
FontWeight="DemiBold" | ||
IsDefault="True" | ||
Style="{StaticResource MaterialDesignRaisedAccentButton}"> | ||
<Button.CommandParameter> | ||
<system:Boolean>true</system:Boolean> | ||
</Button.CommandParameter> | ||
</Button> | ||
|
||
</StackPanel> | ||
</StackPanel> | ||
</Border> | ||
</UserControl> |
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,24 @@ | ||
// Copyright(c) Tim Kennedy. All Rights Reserved. Licensed under the MIT License. | ||
|
||
using System.Windows.Controls; | ||
|
||
namespace GetMyIP.Dialogs | ||
{ | ||
/// <summary> | ||
/// A dialog to display a message with an OK button. | ||
/// This dialog has a RED border and button background. | ||
/// </summary> | ||
public partial class ErrorDialog : UserControl | ||
{ | ||
/// <summary> | ||
/// Message to be displayed | ||
/// </summary> | ||
public string Message { get; set; } | ||
|
||
public ErrorDialog() | ||
{ | ||
InitializeComponent(); | ||
DataContext = this; | ||
} | ||
} | ||
} |
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,39 @@ | ||
<UserControl | ||
x:Class="GetMyIP.Dialogs.OkDialog" | ||
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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:system="clr-namespace:System;assembly=mscorlib" | ||
MaxWidth="550" | ||
MinHeight="100" | ||
d:DesignHeight="150" | ||
d:DesignWidth="200" | ||
mc:Ignorable="d"> | ||
<StackPanel Margin="16"> | ||
<TextBlock | ||
Margin="8" | ||
Padding="10" | ||
HorizontalAlignment="Center" | ||
FontSize="14" | ||
Text="{Binding Path=Message, FallbackValue='Message Here'}" | ||
TextWrapping="Wrap" /> | ||
|
||
<StackPanel | ||
Margin="8" | ||
HorizontalAlignment="Center" | ||
Orientation="Horizontal"> | ||
<Button | ||
Command="materialDesign:DialogHost.CloseDialogCommand" | ||
Content="OK" | ||
FontWeight="DemiBold" | ||
IsDefault="True" | ||
Style="{StaticResource MaterialDesignRaisedButton}"> | ||
<Button.CommandParameter> | ||
<system:Boolean>True</system:Boolean> | ||
</Button.CommandParameter> | ||
</Button> | ||
</StackPanel> | ||
</StackPanel> | ||
</UserControl> |
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,23 @@ | ||
// Copyright(c) Tim Kennedy. All Rights Reserved. Licensed under the MIT License. | ||
|
||
using System.Windows.Controls; | ||
|
||
namespace GetMyIP.Dialogs | ||
{ | ||
/// <summary> | ||
/// A dialog to display a message with an OK button. | ||
/// </summary> | ||
public partial class OkDialog : UserControl | ||
{ | ||
/// <summary> | ||
/// Message to be displayed | ||
/// </summary> | ||
public string Message { get; set; } | ||
|
||
public OkDialog() | ||
{ | ||
InitializeComponent(); | ||
DataContext = this; | ||
} | ||
} | ||
} |
Oops, something went wrong.