From 7449f0337a41b20812439bdd687ffbf44815c2bd Mon Sep 17 00:00:00 2001 From: syneffort Date: Thu, 29 Jun 2023 14:14:38 +0900 Subject: [PATCH] label, textblock, textbox control ui --- .../LabelTextBlockTextBoxSample/App.xaml | 9 ++ .../LabelTextBlockTextBoxSample/App.xaml.cs | 17 +++ .../AssemblyInfo.cs | 10 ++ .../LabelTextBlockTextBoxSample.csproj | 36 +++++ .../MainWindow.xaml | 52 ++++++++ .../MainWindow.xaml.cs | 28 ++++ .../Resources.Designer.cs | 73 +++++++++++ .../Resources.resx | 124 ++++++++++++++++++ .../Resources/telephone.png | Bin 0 -> 3697 bytes PacticeSolution/PacticeSolution.sln | 6 + 10 files changed, 355 insertions(+) create mode 100644 PacticeSolution/LabelTextBlockTextBoxSample/App.xaml create mode 100644 PacticeSolution/LabelTextBlockTextBoxSample/App.xaml.cs create mode 100644 PacticeSolution/LabelTextBlockTextBoxSample/AssemblyInfo.cs create mode 100644 PacticeSolution/LabelTextBlockTextBoxSample/LabelTextBlockTextBoxSample.csproj create mode 100644 PacticeSolution/LabelTextBlockTextBoxSample/MainWindow.xaml create mode 100644 PacticeSolution/LabelTextBlockTextBoxSample/MainWindow.xaml.cs create mode 100644 PacticeSolution/LabelTextBlockTextBoxSample/Resources.Designer.cs create mode 100644 PacticeSolution/LabelTextBlockTextBoxSample/Resources.resx create mode 100644 PacticeSolution/LabelTextBlockTextBoxSample/Resources/telephone.png diff --git a/PacticeSolution/LabelTextBlockTextBoxSample/App.xaml b/PacticeSolution/LabelTextBlockTextBoxSample/App.xaml new file mode 100644 index 0000000..62d401c --- /dev/null +++ b/PacticeSolution/LabelTextBlockTextBoxSample/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/PacticeSolution/LabelTextBlockTextBoxSample/App.xaml.cs b/PacticeSolution/LabelTextBlockTextBoxSample/App.xaml.cs new file mode 100644 index 0000000..858a6ec --- /dev/null +++ b/PacticeSolution/LabelTextBlockTextBoxSample/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 LabelTextBlockTextBoxSample +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} diff --git a/PacticeSolution/LabelTextBlockTextBoxSample/AssemblyInfo.cs b/PacticeSolution/LabelTextBlockTextBoxSample/AssemblyInfo.cs new file mode 100644 index 0000000..8b5504e --- /dev/null +++ b/PacticeSolution/LabelTextBlockTextBoxSample/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/LabelTextBlockTextBoxSample/LabelTextBlockTextBoxSample.csproj b/PacticeSolution/LabelTextBlockTextBoxSample/LabelTextBlockTextBoxSample.csproj new file mode 100644 index 0000000..a04a473 --- /dev/null +++ b/PacticeSolution/LabelTextBlockTextBoxSample/LabelTextBlockTextBoxSample.csproj @@ -0,0 +1,36 @@ + + + + WinExe + net6.0-windows + enable + true + + + + + + + + + PreserveNewest + + + + + + True + True + Resources.resx + + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Never + + + + diff --git a/PacticeSolution/LabelTextBlockTextBoxSample/MainWindow.xaml b/PacticeSolution/LabelTextBlockTextBoxSample/MainWindow.xaml new file mode 100644 index 0000000..739e722 --- /dev/null +++ b/PacticeSolution/LabelTextBlockTextBoxSample/MainWindow.xaml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/PacticeSolution/LabelTextBlockTextBoxSample/MainWindow.xaml.cs b/PacticeSolution/LabelTextBlockTextBoxSample/MainWindow.xaml.cs new file mode 100644 index 0000000..2bece84 --- /dev/null +++ b/PacticeSolution/LabelTextBlockTextBoxSample/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 LabelTextBlockTextBoxSample +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + } +} diff --git a/PacticeSolution/LabelTextBlockTextBoxSample/Resources.Designer.cs b/PacticeSolution/LabelTextBlockTextBoxSample/Resources.Designer.cs new file mode 100644 index 0000000..403fc3a --- /dev/null +++ b/PacticeSolution/LabelTextBlockTextBoxSample/Resources.Designer.cs @@ -0,0 +1,73 @@ +//------------------------------------------------------------------------------ +// +// 이 코드는 도구를 사용하여 생성되었습니다. +// 런타임 버전:4.0.30319.42000 +// +// 파일 내용을 변경하면 잘못된 동작이 발생할 수 있으며, 코드를 다시 생성하면 +// 이러한 변경 내용이 손실됩니다. +// +//------------------------------------------------------------------------------ + +namespace LabelTextBlockTextBoxSample { + using System; + + + /// + /// 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다. + /// + // 이 클래스는 ResGen 또는 Visual Studio와 같은 도구를 통해 StronglyTypedResourceBuilder + // 클래스에서 자동으로 생성되었습니다. + // 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여 ResGen을 + // 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("LabelTextBlockTextBoxSample.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 대해 현재 스레드의 CurrentUICulture 속성을 + /// 재정의합니다. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// System.Byte[] 형식의 지역화된 리소스를 찾습니다. + /// + internal static byte[] telephone { + get { + object obj = ResourceManager.GetObject("telephone", resourceCulture); + return ((byte[])(obj)); + } + } + } +} diff --git a/PacticeSolution/LabelTextBlockTextBoxSample/Resources.resx b/PacticeSolution/LabelTextBlockTextBoxSample/Resources.resx new file mode 100644 index 0000000..e646c64 --- /dev/null +++ b/PacticeSolution/LabelTextBlockTextBoxSample/Resources.resx @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + Resources\telephone.png;System.Byte[], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/PacticeSolution/LabelTextBlockTextBoxSample/Resources/telephone.png b/PacticeSolution/LabelTextBlockTextBoxSample/Resources/telephone.png new file mode 100644 index 0000000000000000000000000000000000000000..0339319a558fb4fc9234ea8f663a87b05a22a66b GIT binary patch literal 3697 zcmai1`8(9z`#&?@!wh0<89bQCUYfF%ZN@$*qfnM&N+KaWwlTK1$=2dyEPb+*WRkK( zDccNs;;Bd_Dzc}0n?SY8+au*05g zeT?tnKZX|Mubt+nU-BI$l&t|+IGxniCa<;WD3RSNRz#=Limja<}R`y7Ks6Q&GEdcH>WjKRej;v zL13qcnNhGHC#!`5X5C&w^sC(c`_mOo4AqySJ!>)sw#~HscA=%g*?>cGG1)yzMji&Ly$@TU1orew`5=fd{H14F@CGA5e9VV4lKnRWyU`FRjkFXheL9rnrAqV&E+gDgp zLL||YYV^=F<+lRClY1GU@|nBT>Lm;W&U%{^WJvTrmz9=I5)l#Ul+tjzj>%ZuOu|Sh zArNmkDO40bR9p1-<8o6V-R7UQ78leOxLIzW-C<*6Gydhvm)r&1YXQOgsY?cET?y!^ zF%cPu0V|b^)=Mq-u_8LgZ|0m$9JxYj7M|eB_LduDA;ZSS?rcsZB-(l z2i)+SUBt^WB z#hC|xY6#_{I7~a~?X84phY-|)B@wLw-Q4vMgk}2OXkSX5{^bZvD zzY(9{$2-5@%+vEvnfdYKOoy)`lI04&uD#8%WZNd@K(OsO1zSzZ20x4(!RrhVqz>Ho z5WsVc1GNb@h-Q53jWQBB9T{JVIwlDY_!VhwRy{4TVhaPSQY0Ml6dzuRGMoXcYQp@C zOG`@;=r_1ZTwUO|dHr>_yfQFy;VKe(-pD&Cb|;ak{Ep;+B;^~&EYEr?g2siK{P`P# z2Zc>nhQlV~*QZ%?ylAx?LCZjCEXWe!44cI)x4ax5h2Uajp|FJ_a1z+NckleW$(Eoh z3n5aCfbEa0d!T=$HKsBBI{TJU!jr|@NNU!3U=k3xVKm+I1@!ux*k1! z=cbcM4+saeuLYp?*7Su77fiNZ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HX$fL z@(}@Qj+~>*e%Axum7EmNcsu4s&ejvG=6n%lU3}V9E2t`!r!`IXVsD=R;#W3Lbi_nj^OE z228J7zR#f$+`dp7>quLF?m;JR2O-m*ucjiyHTcQm|FV!kkbp%-M|>4?J8=PqU{2;r9>TJIKCDei$&Q?<(Xf|cF>+YP8PB^8ihFcT^yxn?)7NT zR{B!HQjFwG3N3NWuO(jmtkKiws`e%g5zfKPQw0*c1mG=7A<{Obz!~(M2 zRW_GYI(L(~b^mhTz`($b?Ch}54?Lsp{Vah%#Yg+7s1^ z_j$Lhsy0p+oVdkOc(tJxekgGavheWuIJms>mog1}vB!kq38Kdv;x@ZoCDvCbGKO@t zwdoTmYVB=erhct&*MF>z^VZWS%YU#gA_+;@ubwZS3f+sGANlOz?7VP!sAc5AmxRC2 z{b12j;=J`-VxU6yG*+(TDHhD#U)e@d#)s%|ofKFs}XeK;y#vbVr!evebu zBQ~WN5FqTqM5;{XbaW^y4aTw-eE5Z3o332`s0YEjt_xnWh5ia|=!K9Sf7{u0 z5&82~Z7tb_`uC3F0ct!ZbV?f^>}Mp9h^L&BMuWnqt>} zWxHx@=4wLjvY)%ZfB!B{*kKT)d~<*z1&RS0V|)3HH@=iQT<=fOuzVs5MHbI{HHA-4 zx3#q?rp%qDdm7EM;~w@XJAgubs6hJ;K{BE}SKgiFRJ6XqC#vntkyFot%5L2n50lQh zxzA_h+d_Q5@>Bb@x$NLAXMr(6hL>lW0F?CYeEGK!JYKuBq?XUbRL?mQh>^ zdvIEGEfK-NFsy$FNTDO?oPgg&em-0pma)hs`vyPBTH&`WwnPM_dQR-QR=I`3gQ@p# zyVBu#T_9Q)IwqL!K#!8J*^yMyW>(q;0HUD1~7P{sC5MTi~Ucym* W|A@$qfHQmz3G8j0tg9`ljQ;`0AZL{T literal 0 HcmV?d00001 diff --git a/PacticeSolution/PacticeSolution.sln b/PacticeSolution/PacticeSolution.sln index cbfeda8..d100190 100644 --- a/PacticeSolution/PacticeSolution.sln +++ b/PacticeSolution/PacticeSolution.sln @@ -43,6 +43,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BindingSample", "BindingSam EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GridSharedSample", "GridSharedSample\GridSharedSample.csproj", "{32927DD0-81D5-48C7-BA39-3446651DF897}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LabelTextBlockTextBoxSample", "LabelTextBlockTextBoxSample\LabelTextBlockTextBoxSample.csproj", "{C1375ECE-FDD2-4C7B-B3F8-1A24F3CF051D}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -129,6 +131,10 @@ Global {32927DD0-81D5-48C7-BA39-3446651DF897}.Debug|Any CPU.Build.0 = Debug|Any CPU {32927DD0-81D5-48C7-BA39-3446651DF897}.Release|Any CPU.ActiveCfg = Release|Any CPU {32927DD0-81D5-48C7-BA39-3446651DF897}.Release|Any CPU.Build.0 = Release|Any CPU + {C1375ECE-FDD2-4C7B-B3F8-1A24F3CF051D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C1375ECE-FDD2-4C7B-B3F8-1A24F3CF051D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C1375ECE-FDD2-4C7B-B3F8-1A24F3CF051D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C1375ECE-FDD2-4C7B-B3F8-1A24F3CF051D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE