From a80ae0280638d7e18955a82fa1a2de7f0b715b52 Mon Sep 17 00:00:00 2001 From: syneffort Date: Wed, 5 Jul 2023 10:06:12 +0900 Subject: [PATCH] data trigger --- PacticeSolution/DataTriggerSample/App.xaml | 9 +++ PacticeSolution/DataTriggerSample/App.xaml.cs | 17 +++++ .../DataTriggerSample/AssemblyInfo.cs | 10 +++ .../DataTriggerSample.csproj | 10 +++ .../DataTriggerSample/MainWindow.xaml | 65 +++++++++++++++++++ .../DataTriggerSample/MainWindow.xaml.cs | 28 ++++++++ PacticeSolution/PacticeSolution.sln | 6 ++ 7 files changed, 145 insertions(+) create mode 100644 PacticeSolution/DataTriggerSample/App.xaml create mode 100644 PacticeSolution/DataTriggerSample/App.xaml.cs create mode 100644 PacticeSolution/DataTriggerSample/AssemblyInfo.cs create mode 100644 PacticeSolution/DataTriggerSample/DataTriggerSample.csproj create mode 100644 PacticeSolution/DataTriggerSample/MainWindow.xaml create mode 100644 PacticeSolution/DataTriggerSample/MainWindow.xaml.cs diff --git a/PacticeSolution/DataTriggerSample/App.xaml b/PacticeSolution/DataTriggerSample/App.xaml new file mode 100644 index 0000000..bf2c562 --- /dev/null +++ b/PacticeSolution/DataTriggerSample/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/PacticeSolution/DataTriggerSample/App.xaml.cs b/PacticeSolution/DataTriggerSample/App.xaml.cs new file mode 100644 index 0000000..1f474c7 --- /dev/null +++ b/PacticeSolution/DataTriggerSample/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace DataTriggerSample +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/PacticeSolution/DataTriggerSample/AssemblyInfo.cs b/PacticeSolution/DataTriggerSample/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/PacticeSolution/DataTriggerSample/AssemblyInfo.cs @@ -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) +)] diff --git a/PacticeSolution/DataTriggerSample/DataTriggerSample.csproj b/PacticeSolution/DataTriggerSample/DataTriggerSample.csproj new file mode 100644 index 0000000..4106cb0 --- /dev/null +++ b/PacticeSolution/DataTriggerSample/DataTriggerSample.csproj @@ -0,0 +1,10 @@ + + + + WinExe + net6.0-windows + enable + true + + + diff --git a/PacticeSolution/DataTriggerSample/MainWindow.xaml b/PacticeSolution/DataTriggerSample/MainWindow.xaml new file mode 100644 index 0000000..d4b4789 --- /dev/null +++ b/PacticeSolution/DataTriggerSample/MainWindow.xaml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PacticeSolution/DataTriggerSample/MainWindow.xaml.cs b/PacticeSolution/DataTriggerSample/MainWindow.xaml.cs new file mode 100644 index 0000000..1f9c519 --- /dev/null +++ b/PacticeSolution/DataTriggerSample/MainWindow.xaml.cs @@ -0,0 +1,28 @@ +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 DataTriggerSample +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + } +} diff --git a/PacticeSolution/PacticeSolution.sln b/PacticeSolution/PacticeSolution.sln index bc43702..4baa907 100644 --- a/PacticeSolution/PacticeSolution.sln +++ b/PacticeSolution/PacticeSolution.sln @@ -59,6 +59,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ListSample", "ListSample\Li EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PropertyTriggerSample", "PropertyTriggerSample\PropertyTriggerSample.csproj", "{480DC5E9-1E18-4176-B964-FD2024C5F1C1}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataTriggerSample", "DataTriggerSample\DataTriggerSample.csproj", "{2184CBCF-A59E-4C6F-9BBF-1DC20F132B50}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -177,6 +179,10 @@ Global {480DC5E9-1E18-4176-B964-FD2024C5F1C1}.Debug|Any CPU.Build.0 = Debug|Any CPU {480DC5E9-1E18-4176-B964-FD2024C5F1C1}.Release|Any CPU.ActiveCfg = Release|Any CPU {480DC5E9-1E18-4176-B964-FD2024C5F1C1}.Release|Any CPU.Build.0 = Release|Any CPU + {2184CBCF-A59E-4C6F-9BBF-1DC20F132B50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {2184CBCF-A59E-4C6F-9BBF-1DC20F132B50}.Debug|Any CPU.Build.0 = Debug|Any CPU + {2184CBCF-A59E-4C6F-9BBF-1DC20F132B50}.Release|Any CPU.ActiveCfg = Release|Any CPU + {2184CBCF-A59E-4C6F-9BBF-1DC20F132B50}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE