├── .gitattributes
├── .gitignore
├── App.xaml
├── App.xaml.cs
├── AssemblyInfo.cs
├── Chat App.csproj
├── Chat App.sln
├── Images
├── p1.jpg
├── p2.jpg
├── p3.jpg
└── p4.jpg
├── MainWindow.xaml
├── MainWindow.xaml.cs
└── UserControls
├── AccountMenu.xaml
├── AccountMenu.xaml.cs
├── Chat Seprator.xaml
├── Chat Seprator.xaml.cs
├── ImageLogo.xaml
├── ImageLogo.xaml.cs
├── Item.xaml
├── Item.xaml.cs
├── MenuButton.xaml
├── MenuButton.xaml.cs
├── MessageChat.xaml
├── MessageChat.xaml.cs
├── MyMessageChat.xaml
├── MyMessageChat.xaml.cs
├── UserChat.xaml
└── UserChat.xaml.cs
/.gitattributes:
--------------------------------------------------------------------------------
1 | ###############################################################################
2 | # Set default behavior to automatically normalize line endings.
3 | ###############################################################################
4 | * text=auto
5 |
6 | ###############################################################################
7 | # Set default behavior for command prompt diff.
8 | #
9 | # This is need for earlier builds of msysgit that does not have it on by
10 | # default for csharp files.
11 | # Note: This is only used by command line
12 | ###############################################################################
13 | #*.cs diff=csharp
14 |
15 | ###############################################################################
16 | # Set the merge driver for project and solution files
17 | #
18 | # Merging from the command prompt will add diff markers to the files if there
19 | # are conflicts (Merging from VS is not affected by the settings below, in VS
20 | # the diff markers are never inserted). Diff markers may cause the following
21 | # file extensions to fail to load in VS. An alternative would be to treat
22 | # these files as binary and thus will always conflict and require user
23 | # intervention with every merge. To do so, just uncomment the entries below
24 | ###############################################################################
25 | #*.sln merge=binary
26 | #*.csproj merge=binary
27 | #*.vbproj merge=binary
28 | #*.vcxproj merge=binary
29 | #*.vcproj merge=binary
30 | #*.dbproj merge=binary
31 | #*.fsproj merge=binary
32 | #*.lsproj merge=binary
33 | #*.wixproj merge=binary
34 | #*.modelproj merge=binary
35 | #*.sqlproj merge=binary
36 | #*.wwaproj merge=binary
37 |
38 | ###############################################################################
39 | # behavior for image files
40 | #
41 | # image files are treated as binary by default.
42 | ###############################################################################
43 | #*.jpg binary
44 | #*.png binary
45 | #*.gif binary
46 |
47 | ###############################################################################
48 | # diff behavior for common document formats
49 | #
50 | # Convert binary document formats to text before diffing them. This feature
51 | # is only available from the command line. Turn it on by uncommenting the
52 | # entries below.
53 | ###############################################################################
54 | #*.doc diff=astextplain
55 | #*.DOC diff=astextplain
56 | #*.docx diff=astextplain
57 | #*.DOCX diff=astextplain
58 | #*.dot diff=astextplain
59 | #*.DOT diff=astextplain
60 | #*.pdf diff=astextplain
61 | #*.PDF diff=astextplain
62 | #*.rtf diff=astextplain
63 | #*.RTF diff=astextplain
64 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.rsuser
8 | *.suo
9 | *.user
10 | *.userosscache
11 | *.sln.docstates
12 |
13 | # User-specific files (MonoDevelop/Xamarin Studio)
14 | *.userprefs
15 |
16 | # Build results
17 | [Dd]ebug/
18 | [Dd]ebugPublic/
19 | [Rr]elease/
20 | [Rr]eleases/
21 | x64/
22 | x86/
23 | [Aa][Rr][Mm]/
24 | [Aa][Rr][Mm]64/
25 | bld/
26 | [Bb]in/
27 | [Oo]bj/
28 | [Ll]og/
29 |
30 | # Visual Studio 2015/2017 cache/options directory
31 | .vs/
32 | # Uncomment if you have tasks that create the project's static files in wwwroot
33 | #wwwroot/
34 |
35 | # Visual Studio 2017 auto generated files
36 | Generated\ Files/
37 |
38 | # MSTest test Results
39 | [Tt]est[Rr]esult*/
40 | [Bb]uild[Ll]og.*
41 |
42 | # NUNIT
43 | *.VisualState.xml
44 | TestResult.xml
45 |
46 | # Build Results of an ATL Project
47 | [Dd]ebugPS/
48 | [Rr]eleasePS/
49 | dlldata.c
50 |
51 | # Benchmark Results
52 | BenchmarkDotNet.Artifacts/
53 |
54 | # .NET Core
55 | project.lock.json
56 | project.fragment.lock.json
57 | artifacts/
58 |
59 | # StyleCop
60 | StyleCopReport.xml
61 |
62 | # Files built by Visual Studio
63 | *_i.c
64 | *_p.c
65 | *_h.h
66 | *.ilk
67 | *.meta
68 | *.obj
69 | *.iobj
70 | *.pch
71 | *.pdb
72 | *.ipdb
73 | *.pgc
74 | *.pgd
75 | *.rsp
76 | *.sbr
77 | *.tlb
78 | *.tli
79 | *.tlh
80 | *.tmp
81 | *.tmp_proj
82 | *_wpftmp.csproj
83 | *.log
84 | *.vspscc
85 | *.vssscc
86 | .builds
87 | *.pidb
88 | *.svclog
89 | *.scc
90 |
91 | # Chutzpah Test files
92 | _Chutzpah*
93 |
94 | # Visual C++ cache files
95 | ipch/
96 | *.aps
97 | *.ncb
98 | *.opendb
99 | *.opensdf
100 | *.sdf
101 | *.cachefile
102 | *.VC.db
103 | *.VC.VC.opendb
104 |
105 | # Visual Studio profiler
106 | *.psess
107 | *.vsp
108 | *.vspx
109 | *.sap
110 |
111 | # Visual Studio Trace Files
112 | *.e2e
113 |
114 | # TFS 2012 Local Workspace
115 | $tf/
116 |
117 | # Guidance Automation Toolkit
118 | *.gpState
119 |
120 | # ReSharper is a .NET coding add-in
121 | _ReSharper*/
122 | *.[Rr]e[Ss]harper
123 | *.DotSettings.user
124 |
125 | # JustCode is a .NET coding add-in
126 | .JustCode
127 |
128 | # TeamCity is a build add-in
129 | _TeamCity*
130 |
131 | # DotCover is a Code Coverage Tool
132 | *.dotCover
133 |
134 | # AxoCover is a Code Coverage Tool
135 | .axoCover/*
136 | !.axoCover/settings.json
137 |
138 | # Visual Studio code coverage results
139 | *.coverage
140 | *.coveragexml
141 |
142 | # NCrunch
143 | _NCrunch_*
144 | .*crunch*.local.xml
145 | nCrunchTemp_*
146 |
147 | # MightyMoose
148 | *.mm.*
149 | AutoTest.Net/
150 |
151 | # Web workbench (sass)
152 | .sass-cache/
153 |
154 | # Installshield output folder
155 | [Ee]xpress/
156 |
157 | # DocProject is a documentation generator add-in
158 | DocProject/buildhelp/
159 | DocProject/Help/*.HxT
160 | DocProject/Help/*.HxC
161 | DocProject/Help/*.hhc
162 | DocProject/Help/*.hhk
163 | DocProject/Help/*.hhp
164 | DocProject/Help/Html2
165 | DocProject/Help/html
166 |
167 | # Click-Once directory
168 | publish/
169 |
170 | # Publish Web Output
171 | *.[Pp]ublish.xml
172 | *.azurePubxml
173 | # Note: Comment the next line if you want to checkin your web deploy settings,
174 | # but database connection strings (with potential passwords) will be unencrypted
175 | *.pubxml
176 | *.publishproj
177 |
178 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
179 | # checkin your Azure Web App publish settings, but sensitive information contained
180 | # in these scripts will be unencrypted
181 | PublishScripts/
182 |
183 | # NuGet Packages
184 | *.nupkg
185 | # The packages folder can be ignored because of Package Restore
186 | **/[Pp]ackages/*
187 | # except build/, which is used as an MSBuild target.
188 | !**/[Pp]ackages/build/
189 | # Uncomment if necessary however generally it will be regenerated when needed
190 | #!**/[Pp]ackages/repositories.config
191 | # NuGet v3's project.json files produces more ignorable files
192 | *.nuget.props
193 | *.nuget.targets
194 |
195 | # Microsoft Azure Build Output
196 | csx/
197 | *.build.csdef
198 |
199 | # Microsoft Azure Emulator
200 | ecf/
201 | rcf/
202 |
203 | # Windows Store app package directories and files
204 | AppPackages/
205 | BundleArtifacts/
206 | Package.StoreAssociation.xml
207 | _pkginfo.txt
208 | *.appx
209 |
210 | # Visual Studio cache files
211 | # files ending in .cache can be ignored
212 | *.[Cc]ache
213 | # but keep track of directories ending in .cache
214 | !?*.[Cc]ache/
215 |
216 | # Others
217 | ClientBin/
218 | ~$*
219 | *~
220 | *.dbmdl
221 | *.dbproj.schemaview
222 | *.jfm
223 | *.pfx
224 | *.publishsettings
225 | orleans.codegen.cs
226 |
227 | # Including strong name files can present a security risk
228 | # (https://github.com/github/gitignore/pull/2483#issue-259490424)
229 | #*.snk
230 |
231 | # Since there are multiple workflows, uncomment next line to ignore bower_components
232 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
233 | #bower_components/
234 |
235 | # RIA/Silverlight projects
236 | Generated_Code/
237 |
238 | # Backup & report files from converting an old project file
239 | # to a newer Visual Studio version. Backup files are not needed,
240 | # because we have git ;-)
241 | _UpgradeReport_Files/
242 | Backup*/
243 | UpgradeLog*.XML
244 | UpgradeLog*.htm
245 | ServiceFabricBackup/
246 | *.rptproj.bak
247 |
248 | # SQL Server files
249 | *.mdf
250 | *.ldf
251 | *.ndf
252 |
253 | # Business Intelligence projects
254 | *.rdl.data
255 | *.bim.layout
256 | *.bim_*.settings
257 | *.rptproj.rsuser
258 | *- Backup*.rdl
259 |
260 | # Microsoft Fakes
261 | FakesAssemblies/
262 |
263 | # GhostDoc plugin setting file
264 | *.GhostDoc.xml
265 |
266 | # Node.js Tools for Visual Studio
267 | .ntvs_analysis.dat
268 | node_modules/
269 |
270 | # Visual Studio 6 build log
271 | *.plg
272 |
273 | # Visual Studio 6 workspace options file
274 | *.opt
275 |
276 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
277 | *.vbw
278 |
279 | # Visual Studio LightSwitch build output
280 | **/*.HTMLClient/GeneratedArtifacts
281 | **/*.DesktopClient/GeneratedArtifacts
282 | **/*.DesktopClient/ModelManifest.xml
283 | **/*.Server/GeneratedArtifacts
284 | **/*.Server/ModelManifest.xml
285 | _Pvt_Extensions
286 |
287 | # Paket dependency manager
288 | .paket/paket.exe
289 | paket-files/
290 |
291 | # FAKE - F# Make
292 | .fake/
293 |
294 | # JetBrains Rider
295 | .idea/
296 | *.sln.iml
297 |
298 | # CodeRush personal settings
299 | .cr/personal
300 |
301 | # Python Tools for Visual Studio (PTVS)
302 | __pycache__/
303 | *.pyc
304 |
305 | # Cake - Uncomment if you are using it
306 | # tools/**
307 | # !tools/packages.config
308 |
309 | # Tabs Studio
310 | *.tss
311 |
312 | # Telerik's JustMock configuration file
313 | *.jmconfig
314 |
315 | # BizTalk build output
316 | *.btp.cs
317 | *.btm.cs
318 | *.odx.cs
319 | *.xsd.cs
320 |
321 | # OpenCover UI analysis results
322 | OpenCover/
323 |
324 | # Azure Stream Analytics local run output
325 | ASALocalRun/
326 |
327 | # MSBuild Binary and Structured Log
328 | *.binlog
329 |
330 | # NVidia Nsight GPU debugger configuration file
331 | *.nvuser
332 |
333 | # MFractors (Xamarin productivity tool) working folder
334 | .mfractor/
335 |
336 | # Local History for Visual Studio
337 | .localhistory/
338 |
339 | # BeatPulse healthcheck temp database
340 | healthchecksdb
--------------------------------------------------------------------------------
/App.xaml:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
225 |
226 |
247 |
248 |
249 |
250 |
285 |
286 |
287 |
294 |
295 |
296 |
302 |
303 |
304 |
305 |
396 |
397 |
398 |
399 |
400 |
401 |
402 |
403 |
404 |
405 |
406 |
407 |
408 |
409 |
410 |
411 |
412 |
413 |
414 |
415 |
416 |
417 |
418 |
419 |
420 |
421 |
422 |
423 |
424 |
425 |
426 |
427 |
428 |
429 |
430 |
431 |
432 |
433 |
434 |
435 |
447 |
448 |
449 |
450 |
477 |
478 |
479 |
503 |
504 |
505 |
510 |
511 |
512 |
534 |
535 |
536 |
541 |
542 |
543 |
547 |
548 |
549 |
577 |
578 |
579 |
580 |
--------------------------------------------------------------------------------
/App.xaml.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Configuration;
4 | using System.Data;
5 | using System.Linq;
6 | using System.Threading.Tasks;
7 | using System.Windows;
8 |
9 | namespace Chat_App
10 | {
11 | ///
12 | /// Interaction logic for App.xaml
13 | ///
14 | public partial class App : Application
15 | {
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 |
3 | [assembly: ThemeInfo(
4 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5 | //(used if a resource is not found in the page,
6 | // or application resource dictionaries)
7 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8 | //(used if a resource is not found in the page,
9 | // app, or any theme specific resource dictionaries)
10 | )]
11 |
--------------------------------------------------------------------------------
/Chat App.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | WinExe
5 | netcoreapp3.1
6 | Chat_App
7 | true
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | PreserveNewest
24 |
25 |
26 | PreserveNewest
27 |
28 |
29 | PreserveNewest
30 |
31 |
32 | PreserveNewest
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/Chat App.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 16
4 | VisualStudioVersion = 16.0.30611.23
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Chat App", "Chat App.csproj", "{84B65201-2961-4D82-BB86-60D473C9FEF9}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {84B65201-2961-4D82-BB86-60D473C9FEF9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {84B65201-2961-4D82-BB86-60D473C9FEF9}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {84B65201-2961-4D82-BB86-60D473C9FEF9}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {84B65201-2961-4D82-BB86-60D473C9FEF9}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {4FC6EDAF-C380-43AE-B304-C23217C450C1}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/Images/p1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sajjad-z/WPF-Chat-App-UI/00b8ff0e4aaf3147969f6b47922860ad17a7566d/Images/p1.jpg
--------------------------------------------------------------------------------
/Images/p2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sajjad-z/WPF-Chat-App-UI/00b8ff0e4aaf3147969f6b47922860ad17a7566d/Images/p2.jpg
--------------------------------------------------------------------------------
/Images/p3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sajjad-z/WPF-Chat-App-UI/00b8ff0e4aaf3147969f6b47922860ad17a7566d/Images/p3.jpg
--------------------------------------------------------------------------------
/Images/p4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/sajjad-z/WPF-Chat-App-UI/00b8ff0e4aaf3147969f6b47922860ad17a7566d/Images/p4.jpg
--------------------------------------------------------------------------------
/MainWindow.xaml:
--------------------------------------------------------------------------------
1 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
43 |
44 |
45 |
49 |
50 |
51 |
52 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
72 |
73 |
76 |
77 |
80 |
81 |
82 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
125 |
126 |
128 |
129 |
131 |
132 |
134 |
135 |
137 |
138 |
140 |
141 |
142 |
143 |
145 |
146 |
148 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
179 |
180 |
181 |
182 |
185 |
186 |
187 |
188 |
190 |
191 |
195 |
196 |
200 |
201 |
205 |
206 |
207 |
208 |
209 |
210 |
212 |
213 |
214 |
216 |
219 |
220 |
221 |
222 |
223 |
226 |
227 |
232 |
233 |
239 |
240 |
245 |
246 |
251 |
252 |
257 |
258 |
260 |
261 |
264 |
265 |
266 |
271 |
272 |
276 |
277 |
281 |
282 |
288 |
289 |
291 |
292 |
293 |
294 |
295 |
296 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
318 |
319 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
334 |
335 |
336 |
337 |
338 |
339 |
341 |
342 |
343 |
344 |
346 |
348 |
350 |
351 |
352 |
353 |
355 |
356 |
358 |
360 |
362 |
363 |
365 |
366 |
368 |
370 |
372 |
374 |
375 |
376 |
378 |
379 |
380 |
381 |
383 |
384 |
385 |
386 |
387 |
388 |
389 |
390 |
397 |
399 |
400 |
401 |
405 |
406 |
412 |
413 |
418 |
419 |
424 |
425 |
426 |
427 |
428 |
429 |
441 |
442 |
443 |
444 |
445 |
446 |
447 |
448 |
--------------------------------------------------------------------------------
/MainWindow.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Input;
3 |
4 | namespace Chat_App
5 | {
6 | public partial class MainWindow : Window
7 | {
8 | public MainWindow()
9 | {
10 | InitializeComponent();
11 | }
12 |
13 | private void Border_MouseDown(object sender, MouseButtonEventArgs e)
14 | {
15 | if (e.ChangedButton == MouseButton.Left)
16 | {
17 | this.DragMove();
18 | }
19 | }
20 |
21 | private bool IsMaximize = false;
22 | private void Border_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
23 | {
24 | if (e.ClickCount == 2)
25 | {
26 | if (IsMaximize)
27 | {
28 | this.WindowState = WindowState.Normal;
29 | this.Width = 1250;
30 | this.Height = 830;
31 |
32 | IsMaximize = false;
33 | }
34 | else
35 | {
36 | this.WindowState = WindowState.Maximized;
37 |
38 | IsMaximize = true;
39 | }
40 | }
41 | }
42 |
43 | }
44 | }
--------------------------------------------------------------------------------
/UserControls/AccountMenu.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
36 |
37 |
--------------------------------------------------------------------------------
/UserControls/AccountMenu.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 | using System.Windows.Media;
4 |
5 | namespace Chat_App.UserControls
6 | {
7 | public partial class AccountMenu : UserControl
8 | {
9 | public AccountMenu()
10 | {
11 | InitializeComponent();
12 | }
13 |
14 |
15 | public string Title
16 | {
17 | get { return (string)GetValue(TitleProperty); }
18 | set { SetValue(TitleProperty, value); }
19 | }
20 |
21 | public static readonly DependencyProperty TitleProperty = DependencyProperty.Register("Title", typeof(string), typeof(AccountMenu));
22 |
23 |
24 | public bool IsActive
25 | {
26 | get { return (bool)GetValue(IsActiveProperty); }
27 | set { SetValue(IsActiveProperty, value); }
28 | }
29 |
30 | public static readonly DependencyProperty IsActiveProperty = DependencyProperty.Register("IsActive", typeof(bool), typeof(AccountMenu));
31 |
32 |
33 | public Color GradientColor1
34 | {
35 | get { return (Color)GetValue(GradientColor1Property); }
36 | set { SetValue(GradientColor1Property, value); }
37 | }
38 |
39 | public static readonly DependencyProperty GradientColor1Property = DependencyProperty.Register("GradientColor1", typeof(Color), typeof(AccountMenu));
40 |
41 |
42 | public Color GradientColor2
43 | {
44 | get { return (Color)GetValue(GradientColor2Property); }
45 | set { SetValue(GradientColor2Property, value); }
46 | }
47 |
48 | public static readonly DependencyProperty GradientColor2Property = DependencyProperty.Register("GradientColor2", typeof(Color), typeof(AccountMenu));
49 |
50 |
51 | }
52 | }
--------------------------------------------------------------------------------
/UserControls/Chat Seprator.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/UserControls/Chat Seprator.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 |
4 | namespace Chat_App.UserControls
5 | {
6 | public partial class Chat_Seprator : UserControl
7 | {
8 | public Chat_Seprator()
9 | {
10 | InitializeComponent();
11 | }
12 |
13 |
14 | public string Title
15 | {
16 | get { return (string)GetValue(TitleProperty); }
17 | set { SetValue(TitleProperty, value); }
18 | }
19 |
20 | public static readonly DependencyProperty TitleProperty = DependencyProperty.Register("Title", typeof(string), typeof(Chat_Seprator));
21 |
22 |
23 | }
24 | }
--------------------------------------------------------------------------------
/UserControls/ImageLogo.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/UserControls/ImageLogo.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 | using System.Windows.Media;
4 |
5 | namespace Chat_App.UserControls
6 | {
7 | public partial class ImageLogo : UserControl
8 | {
9 | public ImageLogo()
10 | {
11 | InitializeComponent();
12 | }
13 |
14 | public ImageSource Image
15 | {
16 | get { return (ImageSource)GetValue(ImageProperty); }
17 | set { SetValue(ImageProperty, value); }
18 | }
19 |
20 | public static readonly DependencyProperty ImageProperty = DependencyProperty.Register("Image", typeof(ImageSource), typeof(ImageLogo));
21 |
22 | }
23 | }
--------------------------------------------------------------------------------
/UserControls/Item.xaml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 |
8 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
47 |
48 |
49 |
55 |
56 |
57 |
58 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
78 |
82 |
85 |
86 |
87 |
93 |
97 |
98 |
99 |
100 |
101 |
--------------------------------------------------------------------------------
/UserControls/Item.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 | using System.Windows.Media;
4 |
5 | namespace Chat_App.UserControls
6 | {
7 | public partial class Item : UserControl
8 | {
9 | public Item()
10 | {
11 | InitializeComponent();
12 | }
13 |
14 | public string Title
15 | {
16 | get { return (string)GetValue(TitleProperty); }
17 | set { SetValue(TitleProperty, value); }
18 | }
19 |
20 | public static readonly DependencyProperty TitleProperty = DependencyProperty.Register("Title", typeof(string), typeof(Item));
21 |
22 |
23 | public string Message
24 | {
25 | get { return (string)GetValue(MessageProperty); }
26 | set { SetValue(MessageProperty, value); }
27 | }
28 |
29 | public static readonly DependencyProperty MessageProperty = DependencyProperty.Register("Message", typeof(string), typeof(Item));
30 |
31 |
32 | public string TagName
33 | {
34 | get { return (string)GetValue(TagNameProperty); }
35 | set { SetValue(TagNameProperty, value); }
36 | }
37 |
38 | public static readonly DependencyProperty TagNameProperty = DependencyProperty.Register("TagName", typeof(string), typeof(Item));
39 |
40 |
41 | public string MessageCount
42 | {
43 | get { return (string)GetValue(MessageCountProperty); }
44 | set { SetValue(MessageCountProperty, value); }
45 | }
46 |
47 | public static readonly DependencyProperty MessageCountProperty = DependencyProperty.Register("MessageCount", typeof(string), typeof(Item));
48 |
49 |
50 | public bool IsActive
51 | {
52 | get { return (bool)GetValue(IsActiveProperty); }
53 | set { SetValue(IsActiveProperty, value); }
54 | }
55 |
56 | public static readonly DependencyProperty IsActiveProperty = DependencyProperty.Register("IsActive", typeof(bool), typeof(Item));
57 |
58 |
59 | public Brush Color
60 | {
61 | get { return (Brush)GetValue(ColorProperty); }
62 | set { SetValue(ColorProperty, value); }
63 | }
64 |
65 | public static readonly DependencyProperty ColorProperty = DependencyProperty.Register("Color", typeof(Brush), typeof(Item));
66 |
67 |
68 | public Visibility Visible
69 | {
70 | get { return (Visibility)GetValue(VisibleProperty); }
71 | set { SetValue(VisibleProperty, value); }
72 | }
73 |
74 | public static readonly DependencyProperty VisibleProperty = DependencyProperty.Register("Visible", typeof(Visibility), typeof(Item));
75 |
76 |
77 | public ImageSource Image
78 | {
79 | get { return (ImageSource)GetValue(ImageProperty); }
80 | set { SetValue(ImageProperty, value); }
81 | }
82 |
83 | public static readonly DependencyProperty ImageProperty = DependencyProperty.Register("Image", typeof(ImageSource), typeof(Item));
84 |
85 |
86 | }
87 | }
--------------------------------------------------------------------------------
/UserControls/MenuButton.xaml:
--------------------------------------------------------------------------------
1 |
10 |
11 |
12 |
17 |
18 |
20 |
21 |
22 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/UserControls/MenuButton.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 |
4 | namespace Chat_App.UserControls
5 | {
6 | public partial class MenuButton : UserControl
7 | {
8 | public MenuButton()
9 | {
10 | InitializeComponent();
11 | }
12 |
13 |
14 | public string Title
15 | {
16 | get { return (string)GetValue(TitleProperty); }
17 | set { SetValue(TitleProperty, value); }
18 | }
19 |
20 | public static readonly DependencyProperty TitleProperty = DependencyProperty.Register("Title", typeof(string), typeof(MenuButton));
21 |
22 |
23 | public bool IsActive
24 | {
25 | get { return (bool)GetValue(IsActiveProperty); }
26 | set { SetValue(IsActiveProperty, value); }
27 | }
28 |
29 | public static readonly DependencyProperty IsActiveProperty = DependencyProperty.Register("IsActive", typeof(bool), typeof(MenuButton));
30 |
31 |
32 | public MahApps.Metro.IconPacks.PackIconMaterialKind Icon
33 | {
34 | get { return (MahApps.Metro.IconPacks.PackIconMaterialKind)GetValue(IconProperty); }
35 | set { SetValue(IconProperty, value); }
36 | }
37 |
38 | public static readonly DependencyProperty IconProperty = DependencyProperty.Register("Icon", typeof(MahApps.Metro.IconPacks.PackIconMaterialKind), typeof(MenuButton));
39 |
40 |
41 | }
42 | }
--------------------------------------------------------------------------------
/UserControls/MessageChat.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/UserControls/MessageChat.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 | using System.Windows.Media;
4 |
5 | namespace Chat_App.UserControls
6 | {
7 |
8 | public partial class MessageChat : UserControl
9 | {
10 | public MessageChat()
11 | {
12 | InitializeComponent();
13 | }
14 |
15 |
16 | public string Message
17 | {
18 | get { return (string)GetValue(MessageProperty); }
19 | set { SetValue(MessageProperty, value); }
20 | }
21 |
22 | public static readonly DependencyProperty MessageProperty = DependencyProperty.Register("Message", typeof(string), typeof(MessageChat));
23 |
24 |
25 | public Brush Color
26 | {
27 | get { return (Brush)GetValue(ColorProperty); }
28 | set { SetValue(ColorProperty, value); }
29 | }
30 |
31 | public static readonly DependencyProperty ColorProperty = DependencyProperty.Register("Color", typeof(Brush), typeof(MessageChat));
32 |
33 | }
34 | }
--------------------------------------------------------------------------------
/UserControls/MyMessageChat.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/UserControls/MyMessageChat.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 |
4 | namespace Chat_App.UserControls
5 | {
6 | public partial class MyMessageChat : UserControl
7 | {
8 | public MyMessageChat()
9 | {
10 | InitializeComponent();
11 | }
12 |
13 | public string Message
14 | {
15 | get { return (string)GetValue(MessageProperty); }
16 | set { SetValue(MessageProperty, value); }
17 | }
18 |
19 | public static readonly DependencyProperty MessageProperty = DependencyProperty.Register("Message", typeof(string), typeof(MyMessageChat));
20 |
21 | }
22 | }
--------------------------------------------------------------------------------
/UserControls/UserChat.xaml:
--------------------------------------------------------------------------------
1 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/UserControls/UserChat.xaml.cs:
--------------------------------------------------------------------------------
1 | using System.Windows;
2 | using System.Windows.Controls;
3 | using System.Windows.Media;
4 |
5 | namespace Chat_App.UserControls
6 | {
7 | public partial class UserChat : UserControl
8 | {
9 | public UserChat()
10 | {
11 | InitializeComponent();
12 | }
13 |
14 |
15 | public string Username
16 | {
17 | get { return (string)GetValue(UsernameProperty); }
18 | set { SetValue(UsernameProperty, value); }
19 | }
20 |
21 | public static readonly DependencyProperty UsernameProperty = DependencyProperty.Register("Username", typeof(string), typeof(UserChat));
22 |
23 |
24 | public ImageSource Source
25 | {
26 | get { return (ImageSource)GetValue(SourceProperty); }
27 | set { SetValue(SourceProperty, value); }
28 | }
29 |
30 | public static readonly DependencyProperty SourceProperty = DependencyProperty.Register("Source", typeof(ImageSource), typeof(UserChat));
31 |
32 |
33 | }
34 | }
--------------------------------------------------------------------------------