-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/iNKORE-NET/UI.WPF.Modern
- Loading branch information
Showing
90 changed files
with
1,264 additions
and
90 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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.
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.
Binary file added
BIN
+1.29 KB
installer/Generated Assets/iNKORE.UI.WPF.Modern.GalleryBadgeLogo.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.67 KB
installer/Generated Assets/iNKORE.UI.WPF.Modern.GalleryBadgeLogo.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.21 KB
installer/Generated Assets/iNKORE.UI.WPF.Modern.GalleryBadgeLogo.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.02 KB
installer/Generated Assets/iNKORE.UI.WPF.Modern.GalleryBadgeLogo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.95 KB
installer/Generated Assets/iNKORE.UI.WPF.Modern.GalleryBadgeLogo.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+52.3 KB
installer/Generated Assets/iNKORE.UI.WPF.Modern.GallerySplashScreen.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+75.9 KB
installer/Generated Assets/iNKORE.UI.WPF.Modern.GallerySplashScreen.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+101 KB
installer/Generated Assets/iNKORE.UI.WPF.Modern.GallerySplashScreen.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+239 KB
installer/Generated Assets/iNKORE.UI.WPF.Modern.GallerySplashScreen.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+767 KB
installer/Generated Assets/iNKORE.UI.WPF.Modern.GallerySplashScreen.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.2 KB
...er/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare150x150Logo.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+18 KB
...er/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare150x150Logo.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.2 KB
...er/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare150x150Logo.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.9 KB
...er/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare150x150Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+222 KB
...er/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare150x150Logo.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+50.6 KB
...er/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare310x310Logo.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+73.3 KB
...er/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare310x310Logo.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+97.7 KB
...er/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare310x310Logo.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+235 KB
...er/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare310x310Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+742 KB
...er/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare310x310Logo.scale-400.png
Oops, something went wrong.
Binary file added
BIN
+2.7 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.scale-100.png
Oops, something went wrong.
Binary file added
BIN
+3.58 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.scale-125.png
Oops, something went wrong.
Binary file added
BIN
+4.38 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.scale-150.png
Oops, something went wrong.
Binary file added
BIN
+6.16 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.scale-200.png
Oops, something went wrong.
Binary file added
BIN
+16.4 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.scale-400.png
Oops, something went wrong.
Binary file added
BIN
+769 Bytes
.../Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-16.png
Oops, something went wrong.
Binary file added
BIN
+769 Bytes
...RE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-16_altform-lightunplated.png
Oops, something went wrong.
Binary file added
BIN
+769 Bytes
.../iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-16_altform-unplated.png
Oops, something went wrong.
Binary file added
BIN
+1.29 KB
.../Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-24.png
Oops, something went wrong.
Binary file added
BIN
+1.29 KB
...RE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-24_altform-lightunplated.png
Oops, something went wrong.
Binary file added
BIN
+1.29 KB
.../iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-24_altform-unplated.png
Oops, something went wrong.
Binary file added
BIN
+29.6 KB
...Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-256.png
Oops, something went wrong.
Binary file added
BIN
+29.6 KB
...E.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-256_altform-lightunplated.png
Oops, something went wrong.
Binary file added
BIN
+29.6 KB
...iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-256_altform-unplated.png
Oops, something went wrong.
Binary file added
BIN
+1.89 KB
.../Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-32.png
Oops, something went wrong.
Binary file added
BIN
+1.89 KB
...RE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-32_altform-lightunplated.png
Oops, something went wrong.
Binary file added
BIN
+1.89 KB
.../iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-32_altform-unplated.png
Oops, something went wrong.
Binary file added
BIN
+3.02 KB
.../Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-48.png
Oops, something went wrong.
Binary file added
BIN
+3.02 KB
...RE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-48_altform-lightunplated.png
Oops, something went wrong.
Binary file added
BIN
+3.02 KB
.../iNKORE.UI.WPF.Modern.GallerySquare44x44Logo.targetsize-48_altform-unplated.png
Oops, something went wrong.
Binary file added
BIN
+4.83 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare71x71Logo.scale-100.png
Oops, something went wrong.
Binary file added
BIN
+6.3 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare71x71Logo.scale-125.png
Oops, something went wrong.
Binary file added
BIN
+7.85 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare71x71Logo.scale-150.png
Oops, something went wrong.
Binary file added
BIN
+11.6 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare71x71Logo.scale-200.png
Oops, something went wrong.
Binary file added
BIN
+43.1 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GallerySquare71x71Logo.scale-400.png
Oops, something went wrong.
Binary file added
BIN
+13.2 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GalleryWide310x150Logo.scale-100.png
Oops, something went wrong.
Binary file added
BIN
+19.6 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GalleryWide310x150Logo.scale-125.png
Oops, something went wrong.
Binary file added
BIN
+25.4 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GalleryWide310x150Logo.scale-150.png
Oops, something went wrong.
Binary file added
BIN
+52.3 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GalleryWide310x150Logo.scale-200.png
Oops, something went wrong.
Binary file added
BIN
+239 KB
...ller/Generated Assets/iNKORE.UI.WPF.Modern.GalleryWide310x150Logo.scale-400.png
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>WinExe</OutputType> | ||
<TargetFramework>net6.0-windows</TargetFramework> | ||
<Nullable>enable</Nullable> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<UseWPF>true</UseWPF> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\source\iNKORE.UI.WPF.Modern.Controls\iNKORE.UI.WPF.Modern.Controls.csproj" /> | ||
<ProjectReference Include="..\..\source\Inkore.UI.WPF.Modern\iNKORE.UI.WPF.Modern.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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,15 @@ | ||
<Application x:Class="Acrylic10Example.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="clr-namespace:Acrylic10Example" | ||
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern" | ||
StartupUri="MainWindow.xaml"> | ||
<Application.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<ui:ThemeResources/> | ||
<ui:XamlControlsResources /> | ||
</ResourceDictionary.MergedDictionaries> | ||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application> |
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,14 @@ | ||
using System.Configuration; | ||
using System.Data; | ||
using System.Windows; | ||
|
||
namespace Acrylic10Example | ||
{ | ||
/// <summary> | ||
/// Interaction logic for App.xaml | ||
/// </summary> | ||
public partial class App : Application | ||
{ | ||
} | ||
|
||
} |
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,10 @@ | ||
using System.Windows; | ||
|
||
[assembly: ThemeInfo( | ||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located | ||
//(used if a resource is not found in the page, | ||
// or application resource dictionaries) | ||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located | ||
//(used if a resource is not found in the page, | ||
// app, or any theme specific resource dictionaries) | ||
)] |
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,19 @@ | ||
<Window x:Class="Acrylic10Example.MainWindow" | ||
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:Acrylic10Example" | ||
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern" | ||
ui:WindowHelper.UseModernWindowStyle="True" | ||
ui:TitleBar.Height="36" | ||
mc:Ignorable="d" | ||
Title="Welcome!" Height="450" Width="800" | ||
Loaded="Window_Loaded"> | ||
<ui:SimpleStackPanel VerticalAlignment="Center" Spacing="5"> | ||
<TextBlock Text="Legacy Acrylic API" FontSize="24" FontWeight="Bold" TextAlignment="Center"/> | ||
<TextBlock Text="This method will enable Acrylic in Windows 10 as well." FontSize="20" TextAlignment="Center"/> | ||
|
||
<Button Content="Hello world!" HorizontalAlignment="Center" Margin="0,20,0,0"/> | ||
</ui:SimpleStackPanel> | ||
</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 iNKORE.UI.WPF.Modern.Controls.Helpers; | ||
using iNKORE.UI.WPF.Modern.Controls.Primitives; | ||
using iNKORE.UI.WPF.Modern.Helpers.Styles; | ||
using System.Text; | ||
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; | ||
using System.Windows.Shell; | ||
|
||
namespace Acrylic10Example | ||
{ | ||
/// <summary> | ||
/// Interaction logic for MainWindow.xaml | ||
/// </summary> | ||
public partial class MainWindow : Window | ||
{ | ||
public MainWindow() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void Window_Loaded(object sender, RoutedEventArgs e) | ||
{ | ||
WindowChrome.SetWindowChrome(this, new WindowChrome() | ||
{ | ||
GlassFrameThickness = new Thickness(0, 1, 0, 0), | ||
UseAeroCaptionButtons = false, | ||
CornerRadius = new CornerRadius(0), | ||
ResizeBorderThickness = new Thickness(4), | ||
NonClientFrameEdges = NonClientFrameEdges.None, | ||
CaptionHeight = 36d, | ||
|
||
}); | ||
|
||
WindowHelper.SetApplyBackground(this, false); | ||
AcrylicHelper.Apply(this, true); | ||
} | ||
} | ||
} |
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
68 changes: 68 additions & 0 deletions
68
source/iNKORE.UI.WPF.Modern.Gallery/Controls/UserControls/DocumentationPromotion.xaml
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,68 @@ | ||
<UserControl x:Class="iNKORE.UI.WPF.Modern.Gallery.Controls.UserControls.DocumentationPromotion" | ||
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:iNKORE.UI.WPF.Modern.Gallery.Controls.UserControls" xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern" | ||
d:DesignWidth="640" | ||
mc:Ignorable="d" > | ||
<Grid> | ||
<Border Background="{DynamicResource {x:Static ui:ThemeKeys.LayerFillColorDefaultBrushKey}}" | ||
BorderBrush="{DynamicResource {x:Static ui:ThemeKeys.CardStrokeColorDefaultBrushKey}}" | ||
CornerRadius="8" BorderThickness="1" Padding="12, 10" TextElement.FontSize="14"> | ||
|
||
<Grid> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
</Grid.RowDefinitions> | ||
|
||
<ui:SimpleStackPanel Orientation="Horizontal" Spacing="8" TextElement.Foreground="{DynamicResource {x:Static ui:ThemeKeys.AccentTextFillColorPrimaryBrushKey}}" | ||
Margin="0,3,0,0"> | ||
<ui:FontIcon Icon="{x:Static ui:FluentSystemIcons.TextBulletListSquareEdit_24_Regular}" FontSize="24"/> | ||
<TextBlock FontSize="16" VerticalAlignment="Center" FontWeight="SemiBold">It's time for a brand-new docmentation set!</TextBlock> | ||
</ui:SimpleStackPanel> | ||
|
||
<ui:SimpleStackPanel Orientation="Vertical" Spacing="12" Grid.Row="1" Margin="5,10"> | ||
<FrameworkElement.Resources> | ||
<Style TargetType="TextBlock"> | ||
<Setter Property="LineHeight" Value="21"/> | ||
<Setter Property="TextWrapping" Value="Wrap"/> | ||
<Setter Property="TextAlignment" Value="Justify"/> | ||
</Style> | ||
</FrameworkElement.Resources> | ||
|
||
<TextBlock> | ||
<Run>We are looking for passionate volunteers to help us write and improve the documentation for the iNKORE.UI.WPF.Modern library. Your contributions will be invaluable in making this project more accessible and user-friendly for the entire community.</Run> | ||
</TextBlock> | ||
<TextBlock> | ||
<Run>Whether you are an experienced developer or just enthusiastic about contributing to open-source, we welcome your help!</Run> | ||
</TextBlock> | ||
|
||
<TextBlock> | ||
<Run>It's very easy to join us! You can create a PR in our</Run> | ||
<Hyperlink x:Name="Hyperlink_DoucmentationRepo" Click="Hyperlink_DoucmentationRepo_Click">Doucmentation repository</Hyperlink> | ||
<Run>when you're free. You can also join our</Run> | ||
<Hyperlink x:Name="Hyperlink_Discord" Click="Hyperlink_Discord_Click">Discord server</Hyperlink> | ||
<Run>and</Run> | ||
<Hyperlink x:Name="Hyperlink_Telegram" Click="Hyperlink_Telegram_Click">Telegram group</Hyperlink> | ||
<Run>to hang out with us.</Run> | ||
</TextBlock> | ||
<Separator Opacity="0.2"/> | ||
</ui:SimpleStackPanel> | ||
|
||
<ui:SimpleStackPanel Grid.Row="3" Orientation="Horizontal" Spacing="10"> | ||
|
||
<ui:HyperlinkButton x:Name="HyperlinkButton_Repository" Content="Repository" Click="HyperlinkButton_Repository_Click"/> | ||
<ui:HyperlinkButton x:Name="HyperlinkButton_Package" Content="Package" Click="HyperlinkButton_Package_Click"/> | ||
|
||
<ui:HyperlinkButton x:Name="HyperlinkButton_DocRepository" Content="Docs Repository" Click="Hyperlink_DoucmentationRepo_Click"/> | ||
<ui:HyperlinkButton x:Name="HyperlinkButton_Facebook" Content="Follow us on Facebook!" Click="HyperlinkButton_Facebook_Click"/> | ||
|
||
</ui:SimpleStackPanel> | ||
</Grid> | ||
</Border> | ||
|
||
</Grid> | ||
</UserControl> |
60 changes: 60 additions & 0 deletions
60
source/iNKORE.UI.WPF.Modern.Gallery/Controls/UserControls/DocumentationPromotion.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,60 @@ | ||
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 iNKORE.UI.WPF.Modern.Gallery.Controls.UserControls | ||
{ | ||
/// <summary> | ||
/// DocumentationPromotion.xaml 的交互逻辑 | ||
/// </summary> | ||
public partial class DocumentationPromotion : UserControl | ||
{ | ||
public DocumentationPromotion() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
private void HyperlinkButton_Repository_Click(object sender, RoutedEventArgs e) | ||
{ | ||
App.BrowseWeb(ThemeManager.Link_GithubRepo); | ||
} | ||
|
||
private void HyperlinkButton_Package_Click(object sender, RoutedEventArgs e) | ||
{ | ||
App.BrowseWeb(ThemeManager.Link_NugetPackage); | ||
} | ||
|
||
private void Hyperlink_DoucmentationRepo_Click(object sender, RoutedEventArgs e) | ||
{ | ||
App.BrowseWeb("https://github.com/iNKORE-NET/Documentation/tree/main/data/docs/ui.wpf.modern"); | ||
} | ||
|
||
private void Hyperlink_Discord_Click(object sender, RoutedEventArgs e) | ||
{ | ||
App.BrowseWeb(ThemeManager.Link_DiscordServer); | ||
} | ||
|
||
private void Hyperlink_Telegram_Click(object sender, RoutedEventArgs e) | ||
{ | ||
App.BrowseWeb(ThemeManager.Link_TelegramGroup); | ||
|
||
} | ||
|
||
private void HyperlinkButton_Facebook_Click(object sender, RoutedEventArgs e) | ||
{ | ||
App.BrowseWeb(ThemeManager.Link_FacebookPage); | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.