-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from karolberezicki/1.3
1.3 release
- Loading branch information
Showing
10 changed files
with
180 additions
and
29 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 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,31 @@ | ||
<simpleChildWindow:ChildWindow x:Class="EasySnippets.Views.ClosingDialog" | ||
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow" | ||
Title="Exit" | ||
Padding="15" | ||
d:DesignHeight="100" | ||
d:DesignWidth="120" | ||
AllowMove="True" | ||
ShowCloseButton="True" | ||
mc:Ignorable="d"> | ||
|
||
<simpleChildWindow:ChildWindow.OverlayBrush> | ||
<SolidColorBrush Opacity="0.8" Color="{StaticResource Gray2}" /> | ||
</simpleChildWindow:ChildWindow.OverlayBrush> | ||
|
||
|
||
<StackPanel Orientation="Vertical" Margin="10"> | ||
<StackPanel Margin="5"> | ||
<TextBlock FontSize="16">Are you sure</TextBlock> | ||
<TextBlock FontSize="16">you want to exit?</TextBlock> | ||
</StackPanel> | ||
|
||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> | ||
<Button Margin="5" Content="Yes" Click="ApplicationShutdown"/> | ||
<Button Margin="5" Content="No" Click="DialogDismiss"/> | ||
</StackPanel> | ||
</StackPanel> | ||
</simpleChildWindow:ChildWindow> |
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,26 @@ | ||
using System.Windows; | ||
using MahApps.Metro.SimpleChildWindow; | ||
|
||
namespace EasySnippets.Views | ||
{ | ||
/// <summary> | ||
/// Interaction logic for ClosingDialog.xaml | ||
/// </summary> | ||
public partial class ClosingDialog : ChildWindow | ||
{ | ||
public ClosingDialog() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void ApplicationShutdown(object sender, RoutedEventArgs e) | ||
{ | ||
Application.Current.Shutdown(); | ||
} | ||
|
||
private void DialogDismiss(object sender, RoutedEventArgs e) | ||
{ | ||
Close(); | ||
} | ||
} | ||
} |
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 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 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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="MahApps.Metro" version="1.5.0" targetFramework="net461" /> | ||
<package id="MahApps.Metro.SimpleChildWindow" version="1.4.0" targetFramework="net461" /> | ||
<package id="Newtonsoft.Json" version="10.0.3" targetFramework="net461" /> | ||
<package id="Rx-Core" version="2.2.5" targetFramework="net461" /> | ||
<package id="Rx-Interfaces" version="2.2.5" targetFramework="net461" /> | ||
<package id="Rx-Linq" version="2.2.5" targetFramework="net461" /> | ||
</packages> |