edit layour

main
syneffort 2 years ago
parent 1c37ec28a0
commit ef297e7653
  1. 9
      PacticeSolution/DataBindingSample/App.xaml
  2. 17
      PacticeSolution/DataBindingSample/App.xaml.cs
  3. 10
      PacticeSolution/DataBindingSample/AssemblyInfo.cs
  4. 10
      PacticeSolution/DataBindingSample/DataBindingSample.csproj
  5. 17
      PacticeSolution/DataBindingSample/MainWindow.xaml
  6. 37
      PacticeSolution/DataBindingSample/MainWindow.xaml.cs
  7. 2
      PacticeSolution/MapFinder/Utility/KakaoAPI.cs
  8. 12
      PacticeSolution/PacticeSolution.sln

@ -0,0 +1,9 @@
<Application x:Class="DataBindingSample.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:DataBindingSample"
StartupUri="MainWindow.xaml">
<Application.Resources>
</Application.Resources>
</Application>

@ -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
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}

@ -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)
)]

@ -0,0 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
</PropertyGroup>
</Project>

@ -0,0 +1,17 @@
<Window x:Class="DataBindingSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:DataBindingSample"
mc:Ignorable="d"
Title="MainWindow" Height="200 " Width="200">
<StackPanel>
<Label HorizontalAlignment="Center">--- By XAML Code ---</Label>
<TextBox x:Name="tbxByXaml" VerticalAlignment="Center"/>
<Label x:Name="lblByXaml" Height="30" VerticalAlignment="Center" Content="{Binding ElementName=tbxByXaml, Path=Text}"/>
<Label HorizontalAlignment="Center">--- By Code Behind ---</Label>
<TextBlock x:Name="tbxByCodeBehind"/>
<Label x:Name="lblByCodeBehind" Height="30" VerticalAlignment="Center"/>
</StackPanel>
</Window>

@ -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
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
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);
}
}
}

@ -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);

@ -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

Loading…
Cancel
Save