Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Getting Started/HelloWorld/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:HelloWorld"
StartupUri="MainWindow.xaml"/>
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/PresentationFramework.Fluent;component/Themes/Fluent.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
2 changes: 1 addition & 1 deletion Getting Started/HelloWorld/HelloWorld.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<UseWpf>true</UseWpf>
<EnableDefaultItems>false</EnableDefaultItems>
<OutputType>WinExe</OutputType>
Expand Down
25 changes: 19 additions & 6 deletions Getting Started/HelloWorld/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,23 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:HelloWorld"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525" Icon="app.ico">
<Grid>
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">
Hello, World!
</TextBlock>
Title="Hello World"
Height="350"
Width="525"
Icon="app.ico">
<Grid Margin="24">
<StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
<TextBlock FontSize="24"
HorizontalAlignment="Center"
Text="Hello, World!" />
<TextBlock Margin="0,12,0,0"
HorizontalAlignment="Center"
Opacity="0.7"
Text="Fluent-themed WPF sample" />
<Button Margin="0,24,0,0"
Padding="16,8"
HorizontalAlignment="Center"
Content="Click Me" />
</StackPanel>
</Grid>
</Window>
</Window>
Loading