File tree Expand file tree Collapse file tree 7 files changed +104
-0
lines changed
WPFDemo/BuwagarcerefiFerejowalldalelha Expand file tree Collapse file tree 7 files changed +104
-0
lines changed Original file line number Diff line number Diff line change 1+ <Application x : Class =" BuwagarcerefiFerejowalldalelha.App"
2+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4+ xmlns : local =" clr-namespace:BuwagarcerefiFerejowalldalelha"
5+ StartupUri =" MainWindow.xaml" >
6+ <Application .Resources>
7+
8+ </Application .Resources>
9+ </Application >
Original file line number Diff line number Diff line change 1+ using System . Configuration ;
2+ using System . Data ;
3+ using System . Windows ;
4+
5+ namespace BuwagarcerefiFerejowalldalelha ;
6+
7+ /// <summary>
8+ /// Interaction logic for App.xaml
9+ /// </summary>
10+ public partial class App : Application
11+ {
12+ }
13+
Original file line number Diff line number Diff line change 1+ using System . Windows ;
2+
3+ [ assembly: ThemeInfo (
4+ ResourceDictionaryLocation . None , //where theme specific resource dictionaries are located
5+ //(used if a resource is not found in the page,
6+ // or application resource dictionaries)
7+ ResourceDictionaryLocation . SourceAssembly //where the generic resource dictionary is located
8+ //(used if a resource is not found in the page,
9+ // app, or any theme specific resource dictionaries)
10+ ) ]
Original file line number Diff line number Diff line change 1+ <Project Sdk =" Microsoft.NET.Sdk" >
2+
3+ <PropertyGroup >
4+ <OutputType >WinExe</OutputType >
5+ <TargetFramework >net10.0-windows</TargetFramework >
6+ <Nullable >enable</Nullable >
7+ <ImplicitUsings >enable</ImplicitUsings >
8+ <UseWPF >true</UseWPF >
9+ </PropertyGroup >
10+
11+ </Project >
Original file line number Diff line number Diff line change 1+ <Solution >
2+ <Project Path =" BuwagarcerefiFerejowalldalelha.csproj" />
3+ </Solution >
Original file line number Diff line number Diff line change 1+ <Window x : Class =" BuwagarcerefiFerejowalldalelha.MainWindow"
2+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4+ xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
5+ xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
6+ xmlns : local =" clr-namespace:BuwagarcerefiFerejowalldalelha"
7+ xmlns : system =" clr-namespace:System;assembly=System.Runtime"
8+ mc : Ignorable =" d"
9+ Title =" MainWindow" Height =" 450" Width =" 800"
10+ x : Name =" Root" >
11+ <Grid >
12+ <StackPanel x : Name =" MainStackPanel" >
13+ <TextBlock Margin =" 30" >
14+ <Hyperlink >HyperLink outside</Hyperlink >
15+ </TextBlock >
16+ <DataGrid IsReadOnly =" True" >
17+ <DataGrid .Columns>
18+ <DataGridHyperlinkColumn ContentBinding =" {Binding Path=Button}" ></DataGridHyperlinkColumn >
19+ </DataGrid .Columns>
20+ <DataGrid .Items>
21+ <local : Model ></local : Model >
22+ </DataGrid .Items>
23+ </DataGrid >
24+ </StackPanel >
25+ </Grid >
26+ </Window >
Original file line number Diff line number Diff line change 1+ using System . Text ;
2+ using System . Windows ;
3+ using System . Windows . Controls ;
4+ using System . Windows . Data ;
5+ using System . Windows . Documents ;
6+ using System . Windows . Input ;
7+ using System . Windows . Media ;
8+ using System . Windows . Media . Imaging ;
9+ using System . Windows . Navigation ;
10+ using System . Windows . Shapes ;
11+
12+ namespace BuwagarcerefiFerejowalldalelha ;
13+
14+ /// <summary>
15+ /// Interaction logic for MainWindow.xaml
16+ /// </summary>
17+ public partial class MainWindow : Window
18+ {
19+ public MainWindow ( )
20+ {
21+ InitializeComponent ( ) ;
22+ }
23+ }
24+
25+ public class Model
26+ {
27+ public object Button { get ; set ; } = new Button ( )
28+ {
29+ Width = 50 ,
30+ Height = 20 ,
31+ } ;
32+ }
You can’t perform that action at this time.
0 commit comments