-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Enhancement] Support for long path aware and resolve #19
- Loading branch information
Showing
19 changed files
with
414 additions
and
63 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> | ||
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> | ||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> | ||
<security> | ||
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> | ||
<requestedExecutionLevel level="asInvoker" uiAccess="false" /> | ||
</requestedPrivileges> | ||
</security> | ||
</trustInfo> | ||
|
||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1"> | ||
<application> | ||
|
||
<!-- Windows 10/11 --> | ||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" /> | ||
|
||
</application> | ||
</compatibility> | ||
|
||
<application xmlns="urn:schemas-microsoft-com:asm.v3"> | ||
<windowsSettings> | ||
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware> | ||
</windowsSettings> | ||
</application> | ||
|
||
</assembly> |
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,54 @@ | ||
<Window x:Class="SymlinkCreator.ui.aboutWindow.AboutWindow" | ||
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:local="clr-namespace:SymlinkCreator.ui.aboutWindow" | ||
xmlns:core="clr-namespace:SymlinkCreator.core" | ||
xmlns:system="clr-namespace:System;assembly=mscorlib" | ||
mc:Ignorable="d" | ||
Title="About" | ||
Width="400" | ||
ResizeMode="NoResize" | ||
WindowStyle="SingleBorderWindow" | ||
SizeToContent="Height"> | ||
<Window.Resources> | ||
<Thickness x:Key="DefaultMargin">5</Thickness> | ||
<system:Double x:Key="DefaultMinButtonWidth">80</system:Double> | ||
<system:Double x:Key="DefaultMinButtonHeight">20</system:Double> | ||
|
||
<Style TargetType="Button"> | ||
<Setter Property="Margin" Value="{StaticResource DefaultMargin}" /> | ||
<Setter Property="MinWidth" Value="{StaticResource DefaultMinButtonWidth}" /> | ||
<Setter Property="MinHeight" Value="{StaticResource DefaultMinButtonHeight}" /> | ||
</Style> | ||
|
||
<Style TargetType="TextBlock"> | ||
<Setter Property="Margin" Value="{StaticResource DefaultMargin}" /> | ||
</Style> | ||
</Window.Resources> | ||
<StackPanel Margin="{StaticResource DefaultMargin}" Orientation="Vertical"> | ||
<TextBlock> | ||
<TextBlock.Text> | ||
<MultiBinding StringFormat="{}{0} v{1}"> | ||
<Binding Source="{x:Static core:ApplicationConfiguration.ApplicationName}" /> | ||
<Binding Source="{x:Static core:ApplicationConfiguration.ApplicationVersion}" /> | ||
</MultiBinding> | ||
</TextBlock.Text> | ||
</TextBlock> | ||
|
||
<TextBlock Text="Developed by Arnob Paul. Thank you for using this application! :)" /> | ||
|
||
<TextBlock> | ||
<Run Text="Visit the developer's website:" /> | ||
<LineBreak /> | ||
<Hyperlink NavigateUri="{x:Static core:ApplicationConfiguration.CompanyWebAddressUri}" Click="Hyperlink_OnClick"> | ||
<Run Text="{x:Static core:ApplicationConfiguration.CompanyWebAddress}" /> | ||
</Hyperlink> | ||
</TextBlock> | ||
|
||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> | ||
<Button Content="OK" IsDefault="True" Click="OkButton_OnClick" /> | ||
</StackPanel> | ||
</StackPanel> | ||
</Window> |
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,45 @@ | ||
using System; | ||
using System.Diagnostics; | ||
using System.Windows; | ||
using System.Windows.Documents; | ||
|
||
namespace SymlinkCreator.ui.aboutWindow | ||
{ | ||
public partial class AboutWindow : Window | ||
{ | ||
#region constructor | ||
|
||
public AboutWindow() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
#endregion | ||
|
||
|
||
#region control event handles | ||
|
||
private void Hyperlink_OnClick(object sender, RoutedEventArgs e) | ||
{ | ||
Hyperlink hyperlink = sender as Hyperlink; | ||
if (hyperlink?.NavigateUri != null) | ||
{ | ||
try | ||
{ | ||
Process.Start(new ProcessStartInfo(hyperlink.NavigateUri.ToString()) { UseShellExecute = true }); | ||
} | ||
catch (Exception ex) | ||
{ | ||
MessageBox.Show($"Failed to open link: {ex.Message}", "Error", MessageBoxButton.OK, MessageBoxImage.Error); | ||
} | ||
} | ||
} | ||
|
||
private void OkButton_OnClick(object sender, RoutedEventArgs e) | ||
{ | ||
Close(); | ||
} | ||
|
||
#endregion | ||
} | ||
} |
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.