diff --git a/PacticeSolution/ControlTemplateSample/App.xaml b/PacticeSolution/ControlTemplateSample/App.xaml new file mode 100644 index 0000000..a21090e --- /dev/null +++ b/PacticeSolution/ControlTemplateSample/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/PacticeSolution/ControlTemplateSample/App.xaml.cs b/PacticeSolution/ControlTemplateSample/App.xaml.cs new file mode 100644 index 0000000..09d5ad2 --- /dev/null +++ b/PacticeSolution/ControlTemplateSample/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 ControlTemplateSample +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/PacticeSolution/ControlTemplateSample/AssemblyInfo.cs b/PacticeSolution/ControlTemplateSample/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/PacticeSolution/ControlTemplateSample/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/ControlTemplateSample/ControlTemplateSample.csproj b/PacticeSolution/ControlTemplateSample/ControlTemplateSample.csproj new file mode 100644 index 0000000..4106cb0 --- /dev/null +++ b/PacticeSolution/ControlTemplateSample/ControlTemplateSample.csproj @@ -0,0 +1,10 @@ + + + + WinExe + net6.0-windows + enable + true + + + diff --git a/PacticeSolution/ControlTemplateSample/MainWindow.xaml b/PacticeSolution/ControlTemplateSample/MainWindow.xaml new file mode 100644 index 0000000..50fd9ec --- /dev/null +++ b/PacticeSolution/ControlTemplateSample/MainWindow.xaml @@ -0,0 +1,21 @@ + + + + + diff --git a/PacticeSolution/ControlTemplateSample/MainWindow.xaml.cs b/PacticeSolution/ControlTemplateSample/MainWindow.xaml.cs new file mode 100644 index 0000000..ad224b9 --- /dev/null +++ b/PacticeSolution/ControlTemplateSample/MainWindow.xaml.cs @@ -0,0 +1,33 @@ +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 ControlTemplateSample +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + + private void Button_Click(object sender, RoutedEventArgs e) + { + MessageBox.Show("OK"); + } + } +} diff --git a/PacticeSolution/PacticeSolution.sln b/PacticeSolution/PacticeSolution.sln index 3aa745a..c5d3c5d 100644 --- a/PacticeSolution/PacticeSolution.sln +++ b/PacticeSolution/PacticeSolution.sln @@ -35,6 +35,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DependencyPropertySample", EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MVVMComboBoxSample", "MVVMComboBoxSample\MVVMComboBoxSample.csproj", "{86DDE4C6-1359-4EB7-BEE6-13EC137F081D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ControlTemplateSample", "ControlTemplateSample\ControlTemplateSample.csproj", "{F96483CE-6056-4DC5-8802-CE663BACB4B4}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -105,6 +107,10 @@ Global {86DDE4C6-1359-4EB7-BEE6-13EC137F081D}.Debug|Any CPU.Build.0 = Debug|Any CPU {86DDE4C6-1359-4EB7-BEE6-13EC137F081D}.Release|Any CPU.ActiveCfg = Release|Any CPU {86DDE4C6-1359-4EB7-BEE6-13EC137F081D}.Release|Any CPU.Build.0 = Release|Any CPU + {F96483CE-6056-4DC5-8802-CE663BACB4B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F96483CE-6056-4DC5-8802-CE663BACB4B4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F96483CE-6056-4DC5-8802-CE663BACB4B4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F96483CE-6056-4DC5-8802-CE663BACB4B4}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE