diff --git a/PacticeSolution/DataBindingSample/App.xaml b/PacticeSolution/DataBindingSample/App.xaml new file mode 100644 index 0000000..4f4215e --- /dev/null +++ b/PacticeSolution/DataBindingSample/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/PacticeSolution/DataBindingSample/App.xaml.cs b/PacticeSolution/DataBindingSample/App.xaml.cs new file mode 100644 index 0000000..f4f6b74 --- /dev/null +++ b/PacticeSolution/DataBindingSample/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 DataBindingSample +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/PacticeSolution/DataBindingSample/AssemblyInfo.cs b/PacticeSolution/DataBindingSample/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/PacticeSolution/DataBindingSample/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/DataBindingSample/DataBindingSample.csproj b/PacticeSolution/DataBindingSample/DataBindingSample.csproj new file mode 100644 index 0000000..4106cb0 --- /dev/null +++ b/PacticeSolution/DataBindingSample/DataBindingSample.csproj @@ -0,0 +1,10 @@ + + + + WinExe + net6.0-windows + enable + true + + + diff --git a/PacticeSolution/DataBindingSample/MainWindow.xaml b/PacticeSolution/DataBindingSample/MainWindow.xaml new file mode 100644 index 0000000..15483cb --- /dev/null +++ b/PacticeSolution/DataBindingSample/MainWindow.xaml @@ -0,0 +1,17 @@ + + + + + + diff --git a/PacticeSolution/DataBindingSample/MainWindow.xaml.cs b/PacticeSolution/DataBindingSample/MainWindow.xaml.cs new file mode 100644 index 0000000..c84947b --- /dev/null +++ b/PacticeSolution/DataBindingSample/MainWindow.xaml.cs @@ -0,0 +1,37 @@ +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 DataBindingSample +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + DoBinding(); + } + + private void DoBinding() + { + Binding binding = new Binding(); + binding.Source = tbxByCodeBehind; + binding.Path = new PropertyPath(tbxByCodeBehind.Text); + lblByCodeBehind.SetBinding(Label.ContentProperty, binding); + } + } +} diff --git a/PacticeSolution/MapFinder/Utility/KakaoAPI.cs b/PacticeSolution/MapFinder/Utility/KakaoAPI.cs index 2fd3f34..c77548b 100644 --- a/PacticeSolution/MapFinder/Utility/KakaoAPI.cs +++ b/PacticeSolution/MapFinder/Utility/KakaoAPI.cs @@ -21,7 +21,7 @@ namespace MapFinder.Utility string site = "https://dapi.kakao.com/v2/local/search/keyword.json"; string rquery = $"{site}?query={query}"; WebRequest request = WebRequest.Create(rquery); - string rkey = "69747398a2142e62bfdaefbab4adbc42"; // REST API KEY + string rkey = ""; // REST API KEY string header = $"KakaoAK {rkey}"; request.Headers.Add("Authorization", header); diff --git a/PacticeSolution/PacticeSolution.sln b/PacticeSolution/PacticeSolution.sln index 80a5dd5..8628fb2 100644 --- a/PacticeSolution/PacticeSolution.sln +++ b/PacticeSolution/PacticeSolution.sln @@ -3,11 +3,13 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.5.33530.505 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PacticeSolution", "PacticeSolution\PacticeSolution.csproj", "{6AE700B8-28D0-4D9F-978B-91AFB1033125}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PacticeSolution", "PacticeSolution\PacticeSolution.csproj", "{6AE700B8-28D0-4D9F-978B-91AFB1033125}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ClockGadget", "ClockGadget\ClockGadget.csproj", "{AED102C2-9E4B-4DE6-A843-616856F687DB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ClockGadget", "ClockGadget\ClockGadget.csproj", "{AED102C2-9E4B-4DE6-A843-616856F687DB}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MapFinder", "MapFinder\MapFinder.csproj", "{4FCEAEAA-6A26-492F-95D1-9695F386DAB5}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MapFinder", "MapFinder\MapFinder.csproj", "{4FCEAEAA-6A26-492F-95D1-9695F386DAB5}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataBindingSample", "DataBindingSample\DataBindingSample.csproj", "{8A3E4E38-6E95-4955-8BFE-6E58F4AECE27}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -27,6 +29,10 @@ Global {4FCEAEAA-6A26-492F-95D1-9695F386DAB5}.Debug|Any CPU.Build.0 = Debug|Any CPU {4FCEAEAA-6A26-492F-95D1-9695F386DAB5}.Release|Any CPU.ActiveCfg = Release|Any CPU {4FCEAEAA-6A26-492F-95D1-9695F386DAB5}.Release|Any CPU.Build.0 = Release|Any CPU + {8A3E4E38-6E95-4955-8BFE-6E58F4AECE27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {8A3E4E38-6E95-4955-8BFE-6E58F4AECE27}.Debug|Any CPU.Build.0 = Debug|Any CPU + {8A3E4E38-6E95-4955-8BFE-6E58F4AECE27}.Release|Any CPU.ActiveCfg = Release|Any CPU + {8A3E4E38-6E95-4955-8BFE-6E58F4AECE27}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE