How To Change Themes Using WPF Tutorial

  Рет қаралды 5,102

Payload

Payload

Күн бұрын

Пікірлер: 39
@PeterMucha0811
@PeterMucha0811 11 ай бұрын
Hello! I've been an avid viewer and a proud Patreon supporter for over 5 years, and I must say, your approach to teaching WPF has profoundly impacted my development journey. Your tutorials stand out for their clarity and depth, making complex concepts remarkably accessible. I've explored many channels, but yours truly resonates with me, offering invaluable insights that have significantly enhanced my skills. The chance to deepen my learning further through the opportunities you provide would be incredible. Thank you for your dedication and for inspiring us all to grow and excel in our coding endeavors!
@_buffer
@_buffer 11 ай бұрын
I'm glad you've been a supporter for such a long time! Thank you! :-)
@ruchanadguzel1237
@ruchanadguzel1237 11 ай бұрын
i watched yout navigation video before and i liked your explanation style since then. again great video
@_buffer
@_buffer 11 ай бұрын
That makes me very happy! Thank you! :-)
@mikehankey8666
@mikehankey8666 13 күн бұрын
Great video, look forward to viewing others.
@noahyannis2465
@noahyannis2465 7 ай бұрын
Nice
@bekzod3322
@bekzod3322 11 ай бұрын
The legend is back! :)
@malachyokwute3010
@malachyokwute3010 11 ай бұрын
Awesome, much simpler way of changing theme than I’m used to. Thanks
@_buffer
@_buffer 11 ай бұрын
You're welcome! I'm glad you found this useful!
@belowsir5222
@belowsir5222 6 ай бұрын
bro is backkkkkkkkkkkkkkkkkkkkkkkkkkkk .
@NaderJomaa
@NaderJomaa 11 ай бұрын
Awesome Tutorial As usual 😃
@_buffer
@_buffer 11 ай бұрын
Thank you Nader! I appreciate it! :-)
@Merlock1010
@Merlock1010 11 ай бұрын
I haven't tested it, but based on the .RemoveAt() and .Add() functions. How does this work if you have multiple ResourceDictionaries in your merged dictionaries? If it removes the resource dictionary at index 0 and then adds a new resourcedictionary (which will be added as the last index?), doesnt that mean toggling the button will repeatedly remove all my other resourcedictionaries and then keep adding a new one? Edit: if I'm correct, it would be better practice to use .insert() at index 0 instead, so you make sure your added resourcedictionary will be the one that gets removed next time.
@graemerenney8171
@graemerenney8171 7 ай бұрын
Removing the old one by name worked for me private void OnToggleButtonChecked(object sender, RoutedEventArgs e) { _IsLightTheme = !_IsLightTheme; string newThemePath = _IsLightTheme ? "Themes/Light.xaml" : "Themes/Dark.xaml"; string oldThemePath = !_IsLightTheme ? "Themes/Light.xaml" : "Themes/Dark.xaml"; var newTheme = (ResourceDictionary)Application.LoadComponent(new Uri(newThemePath, UriKind.Relative)); var oldTheme = (ResourceDictionary)Application.LoadComponent(new Uri(oldThemePath, UriKind.Relative)); Application.Current.Resources.MergedDictionaries.Remove(oldTheme); Application.Current.Resources.MergedDictionaries.Add(newTheme); }
@customaries
@customaries 11 ай бұрын
good to see more videos!
@_buffer
@_buffer 11 ай бұрын
I'm glad you appreciate it! :-)
@belowsir5222
@belowsir5222 6 ай бұрын
where do you coding at ? its not VS ?
@_buffer
@_buffer 5 ай бұрын
Good question! It's Rider, by JetBrains :-)
@dafniperez1108
@dafniperez1108 11 ай бұрын
What software are you using?
@zopenzop2225
@zopenzop2225 11 ай бұрын
Nice video!
@_buffer
@_buffer 11 ай бұрын
Thank you! :-)
@Shin_v2
@Shin_v2 11 ай бұрын
awesome video !
@FernandoLuisBernardiLucas
@FernandoLuisBernardiLucas 11 ай бұрын
Great video
@_buffer
@_buffer 11 ай бұрын
Thank you Fernando! :-)
@SajjadAlizadeh-ww8rr
@SajjadAlizadeh-ww8rr 11 ай бұрын
Nice 👏
@_buffer
@_buffer 11 ай бұрын
Thank you! :-)
@zakiisse7519
@zakiisse7519 11 ай бұрын
Thanks 🎉🎉
@_buffer
@_buffer 11 ай бұрын
You're most welcome! :-)
@uday_khare09
@uday_khare09 8 ай бұрын
What happened to your game videos
@_buffer
@_buffer 8 ай бұрын
Most of the game development stuff has been moved over to the Discord server where we discuss things :-)
@programmerlp
@programmerlp 11 ай бұрын
Ok, its very simple :D
@_buffer
@_buffer 11 ай бұрын
Super simple! :-)
@dettohu
@dettohu 11 ай бұрын
let's goo
@_buffer
@_buffer 11 ай бұрын
Woooo! 🎉
@Baboi62182
@Baboi62182 11 ай бұрын
Yay
@_buffer
@_buffer 11 ай бұрын
Woho! 🎉
@nocompson
@nocompson 10 ай бұрын
Hey man Im trying to make a login UI for a competition, do you have discord? Im trying to use visual studio 2022 to make it and I want to make it more modern so if you can help Ill appreciate it ❤
@nocompson
@nocompson 10 ай бұрын
Also what app were you using in this video 😭
How To Use PowerShell and WPF To Create Advanced GUIs
17:06
ITPro Today
Рет қаралды 2,6 М.
WPF INotifyPropertyChanged and Databinding
14:30
Payload
Рет қаралды 42 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Empowering WPF Developers - WPF in .NET 9
28:33
dotnet
Рет қаралды 3 М.
WPF C# MVVM Sample Application
13:16
MpCodes
Рет қаралды 20 М.
How to Switch Themes in a WPF App at Runtime
24:11
Tactic Devs
Рет қаралды 17 М.
Make your own GUI apps in C++ (with ImGui and Vulkan)
17:48
The Cherno
Рет қаралды 191 М.
What I Learned From Building a Framework
7:45
Awesome
Рет қаралды 23 М.
I built a REAL Desktop App with both Tauri and Electron
12:22
Bufferhead
Рет қаралды 116 М.
This UI component library is mind-blowing
8:23
Beyond Fireship
Рет қаралды 746 М.
Refactoring a React component - Design Patterns
15:19
Cosden Solutions
Рет қаралды 102 М.