ToskersCorner
ToskersCorner
  • 69
  • 1 191 932
WPF Dependency Injecting W/ Ninject
In this video we cover dependency injection in WPF, as well as utilizing Ninject to setup dependencies in a Mvvm friendly fashion. In the beginning we first get an understanding of what it going on, and then I provide alternative ways we may wish to implement these features in a WPF application.
Article on DI and IoC - blog.agilistic.nl/a-step-by-step-guide-to-using-ninject-for-dependancy-injection-in-c-sharp/
Ninject GitHub & Documentation - github.com/ninject/Ninject
Project in Video - github.com/Tosker/WpfNinjectProject
RelayCommand - ua-cam.com/video/HDSRG7GvPbo/v-deo.html
ObservableObject - ua-cam.com/video/LEKngPq342s/v-deo.html
** Tip Jar **
Paypal: toskerscorner@outlook.com
BTC: 3DkvwvcQ8Vt2U84jdtEhNBx2Ueai3Xttmu
ETH: 0xFf79A145e1ED6F538607Ec374968e605cbea758b
BCH: qqpgrnzuhc5hav4e79m8nfhmugs46jtl0ujxcu0tj5
LTC: MHXQmJA3hkwTPeArB9QPNkcLiHQx723yMb
Переглядів: 13 802

Відео

SimpleWPF - WPF Library, Navigation, templating, commanding.
Переглядів 4,9 тис.6 років тому
In this video I cover a small WPF library I made. This library is useful for setting up data templates, and utilizing basic features and implementations in WPF applications. Source code: github.com/Joben28/SimpleWPF Video on project templates: ua-cam.com/video/UNYC53m3Lw8/v-deo.html Tip Jar Paypal: toskerscorner@outlook.com BTC: 3DkvwvcQ8Vt2U84jdtEhNBx2Ueai3Xttmu ETH: 0xFf79A145e1ED6F538607Ec37...
WPF Custom Dialogs - Part 2 [Dialog Controls]
Переглядів 11 тис.6 років тому
In this video we already have completed our dialog service objects. Now want to build upon our implementations to create some simple dialogs in this case an Alert dialog and YesNo dialog. App.xaml - pastebin.com/NKEhT7AY MainWindowVM - pastebin.com/HWVSHtLQ YesNoVM- pastebin.com/dLASkUz7 YesNoView - pastebin.com/wVa6wHmQ AlertVM - pastebin.com/UryMRZdS AlertView - pastebin.com/Hfmpfdce Complete...
WPF Custom Dialogs - Part 1 [Dialog Service]
Переглядів 24 тис.6 років тому
In this video we will cover creating an MVVM friendly dialog service for our WPF application. There many more things we may want to do for specific application, and specific goals, so this video covers a general concept of tackling a dialog service in WPF. Since I don't often to dialogs in WPF (I normally just use the ugly windows dialogs) I did some searching on the internet to influence the d...
WPF Data Validation - Exception, IDataErrorInfo, ValidationRule, & Annotations
Переглядів 40 тис.6 років тому
In this video we cover creating dat validation in multiples of ways. 1) By throwing an exception, 2) By using the IDataErrorInfo interface, 3)By using custom ValidationRule base class, and 4) By using the System.ComponentModel.Annotations. I was going to break this video in to multiple parts, but decided to keep it as one video. I advise taking a break half way through if you have a short atten...
WPF Data Triggers W/ Data Templates
Переглядів 8 тис.6 років тому
In this video we cover how to use data template triggers in your application. This allows you to conditionally set specific property values when given a certain bound value. This is very similiar to the usage of IValueConverters, and in some circumstances could possibly be prefferential. IValueConverters - ua-cam.com/video/CnfwBoylaE4/v-deo.html DataTemplates (I cover them here, but it's not a ...
WPF Contact Book FINISH - [JsonDataService & Bugfix]
Переглядів 3,7 тис.6 років тому
In this video we are FINISHING our series with the implementation of our JsonContactDataService. We also fix a slight issue in our ContactsVieWModel. JsonContactDataService - pastebin.com/Nz6ME9Ua ContactsViewModel - pastebin.com/3uAC6Sxr Video for ContactBook Source Code - ua-cam.com/video/2Sgfuz4Es1g/v-deo.html Tip Jar Paypal: toskerscorner@outlook.com BTC: 3DkvwvcQ8Vt2U84jdtEhNBx2Ueai3Xttmu ...
WPF Contact Book Part 9 - [Dialog Service & More Commands]
Переглядів 2,6 тис.6 років тому
In this video we create our dialog service, implement a browse image feature to add contact images, and implement further action bindings in our MainWindow. IDialogService - pastebin.com/SwgfcccQ WindowsDialogService- pastebin.com/8ehARW3f AppViewModel - pastebin.com/ZU6E2wgj ContactsViewModel - pastebin.com/KM4cVufc BookViewModel - pastebin.com/eE1VKNpd DetailsView - pastebin.com/8DQ8wzwQ Main...
WPF Contact Book Part 8.1 - [Checkbox Style & Bug Fixes]
Переглядів 4,2 тис.6 років тому
In this video we intend to just make our custome style for our IsFavorite checkbox, but we happen to stumble across a couple bugs to fix. I am not sure if I am committed to the way we fix some problems, but for the sake of time and progress we have a decent temporary solution. ContactsViewModel - pastebin.com/cF4fz2NZ DetailsView - pastebin.com/xTCjew9E (This link also contains the TextBox Styl...
WPF Contact Book - Part 8 [EditMode & Converters]
Переглядів 1,3 тис.6 років тому
In this video we implement an EditMode for our application to modify existing contacts. We also implement converters for hiding and displaying elements within our views. Video on IValueConverters - ua-cam.com/video/Ms1EdRb1kM0/v-deo.html DetailsView - pastebin.com/ferPjbKR MainWindow - pastebin.com/imMeXmgg Converters - pastebin.com/HiC0vrXQ ContactsViewModel - pastebin.com/M9ZayE0u BookView - ...
WPF Contact Book - Part 7 [Details View & Styles]
Переглядів 3,4 тис.6 років тому
In this video we are writing a TON of XAML for our DetailsView and styles for controls within it. Since this video is almost entirely XAML I didn't wan't to skip over much, so feel free to watch at 1.25x or 1.5x speed on UA-cam (I recommend it). DetailsView - pastebin.com/XstF34q0 Styles - pastebin.com/ARS4ZfWr BookView - pastebin.com/manecG7v Tip Jar Paypal: toskerscorner@outlook.com BTC: 3Dkv...
WPF Contact Book - Part 6 [Item UserControl]
Переглядів 6 тис.6 років тому
In this video we setup the data template view for our contact list view, setup our main window bindings, and implement a default bit map image as an application resource. All code and references can be found in the links below. App.xaml - pastebin.com/sVAkMkUj MainWindow - pastebin.com/rTzxTSEZ BookView - pastebin.com/VpZzDPCq ContactItemView - pastebin.com/cG4KuWwS Tip Jar Paypal: toskerscorne...
WPF Contact Book - Part 5 [Data Service]
Переглядів 3,9 тис.6 років тому
In this video we setup our BookView and view model. All code and references can be found in the links below. BookView - pastebin.com/dxmW0ti7 BookViewModel - pastebin.com/4w5QEuwu IContactDataService - pastebin.com/8ftk1fK1 MockDataService - pastebin.com/4pFN4RSX Tip Jar Paypal: toskerscorner@outlook.com BTC: 3DkvwvcQ8Vt2U84jdtEhNBx2Ueai3Xttmu ETH: 0xFf79A145e1ED6F538607Ec374968e605cbea758b BCH...
WPF Contact Book - Part 4 [View Models]
Переглядів 4,3 тис.6 років тому
In this video we cover creating our view models, data interface, and implementing a mock data service. All code and references can be found in the links below. BookViewModel - pastebin.com/f74snVdp Contact Model - pastebin.com/PzP6DCz5 ContactsViewModel - pastebin.com/BjUeQHem Tip Jar Paypal: toskerscorner@outlook.com BTC: 3DkvwvcQ8Vt2U84jdtEhNBx2Ueai3Xttmu ETH: 0xFf79A145e1ED6F538607Ec374968e6...
WPF Contact Book - Part 3 [AppViewModel & Utilities]
Переглядів 6 тис.6 років тому
In this video we cover creating our Data Templates, designing our AppViewModel, and designing our MainWindow content. All code and references should be found in the links below. Video on ObservableObject - ua-cam.com/video/LEKngPq342s/v-deo.html Video on RelayCommand - ua-cam.com/video/8WfD2cFRymM/v-deo.html App.xaml - pastebin.com/KhU4KGar MainWindow - pastebin.com/Etx0cUA6 AppViewModel - past...
WPF Contact Book - Part 1 [Getting Started]
Переглядів 10 тис.6 років тому
WPF Contact Book - Part 1 [Getting Started]
WPF Contact Book - Part 2 [Main Window & Styles]
Переглядів 6 тис.6 років тому
WPF Contact Book - Part 2 [Main Window & Styles]
WPF Chat Client + Server Source Code
Переглядів 10 тис.6 років тому
WPF Chat Client Server Source Code
WPF Custom User Control + Dependency Properties
Переглядів 57 тис.6 років тому
WPF Custom User Control Dependency Properties
WPF Contact Book Source Code
Переглядів 2,2 тис.6 років тому
WPF Contact Book Source Code
Create a Project Template In Visual Studio
Переглядів 29 тис.6 років тому
Create a Project Template In Visual Studio
XAML WPF - Styles Part 3, Resource Dictionaries
Переглядів 24 тис.6 років тому
XAML WPF - Styles Part 3, Resource Dictionaries
XAML WPF - Watermark/Placeholder Textbox Part 2
Переглядів 12 тис.7 років тому
XAML WPF - Watermark/Placeholder Textbox Part 2
XAML WPF - Watermark/Placeholder Textbox Part 1
Переглядів 22 тис.7 років тому
XAML WPF - Watermark/Placeholder Textbox Part 1
C# WPF - IValueConverter Part 2
Переглядів 7 тис.7 років тому
C# WPF - IValueConverter Part 2
C# WPF - IValueConverter Part 1
Переглядів 15 тис.7 років тому
C# WPF - IValueConverter Part 1
Creating Barcodes in C# WPF - Part 5 Finish
Переглядів 9207 років тому
Creating Barcodes in C# WPF - Part 5 Finish
Creating Barcodes in C# WPF - Part 4 Word Document
Переглядів 1,3 тис.7 років тому
Creating Barcodes in C# WPF - Part 4 Word Document
Creating Barcodes in C# WPF - Part 1 Setup
Переглядів 5 тис.7 років тому
Creating Barcodes in C# WPF - Part 1 Setup
Creating Barcodes in C# WPF - Part 3 Binding & Events
Переглядів 1,4 тис.7 років тому
Creating Barcodes in C# WPF - Part 3 Binding & Events

КОМЕНТАРІ

  • @子皓张
    @子皓张 12 днів тому

    很棒

  • @gard2054
    @gard2054 22 дні тому

    7 years later, and this is still hands down the best explanation out there

  • @edpoitras420
    @edpoitras420 27 днів тому

    Can't get the Console.WriteLine to show up in the output screen- any suggestions?

  • @gard2054
    @gard2054 Місяць тому

    I thought binding was extremely hard, but you managed to explain it properly in just 25 minutes. I'm amazed. Thanksssss a lot!

  • @CopBlaster
    @CopBlaster Місяць тому

    I tried this but when using the template I get an error that a security issue has occurred.

  • @user-xy1lg5rr9p
    @user-xy1lg5rr9p Місяць тому

    Nothing understand , please simplyfy this tutorial.

  • @shvideo1
    @shvideo1 Місяць тому

    Great job on the video Tosker. Your approach is very intuitive and I learned a lot following your logic. Thanks.

  • @shvideo1
    @shvideo1 Місяць тому

    Great video thank you. if you put the following snipped above the <DataTemple> tag, the listview items effect becomes more pronounced: <!-- Stretch the listview items to the width of the listview --> <Style TargetType="ListViewItem"> <Setter Property="HorizontalContentAlignment" Value="Stretch"/> </Style>

  • @user-hs6jy8gm7v
    @user-hs6jy8gm7v Місяць тому

    Did a great job on the video. It's still very applicable today. Thank you for taking the time.

  • @kobayashilin3302
    @kobayashilin3302 Місяць тому

    Really good video, it helps a lot, thank you.

  • @MahmoudSaadawy
    @MahmoudSaadawy Місяць тому

    I hope u come back soon. Ur content is gold! ❤

  • @AZOHA
    @AZOHA 2 місяці тому

    Really nice and smooth tutorial

  • @shvideo1
    @shvideo1 2 місяці тому

    Great tutorial with a very practical example. Great job. Thank you.

  • @mindsetiseverything6362
    @mindsetiseverything6362 3 місяці тому

    Thank you.❤

  • @tiago58
    @tiago58 4 місяці тому

    The ellipse is not a circle, it's the other way around, the CIRCLE is a special case of an ELLIPSE, where the semi-major and semi-minor axis are equal and has eccentricity equal to ZERO.

  • @MikePL101
    @MikePL101 4 місяці тому

    The audio is terrible on this video, can't hear what you're saying unfortunately.

  • @matthewkeen6281
    @matthewkeen6281 5 місяців тому

    nice.

  • @James66662
    @James66662 5 місяців тому

    So simple This is helpful when you setup a project using clean arc and u have to create all from scratch on

  • @abme0900
    @abme0900 6 місяців тому

    Thank you! You have really such pedagogical ability to explain dsimply things

  • @Arkios366
    @Arkios366 6 місяців тому

    RelayCommand in tutorial not working at all

  • @Vulpiro
    @Vulpiro 8 місяців тому

    After 7 year i found this hidden gem

  • @johncross116
    @johncross116 9 місяців тому

    I found a similar way to do this and was wondering if there are pros or cons to this approach? I am new to wpf / xaml so am not sure. loginWindow.Visibility = Visibility.Visible; toolWindow1.Visibility = Visibility.Collapsed; toolWindow2.Visibility = Visibility.Collapsed;

  • @carito9659
    @carito9659 9 місяців тому

    I wish my teachers explained as good as you. <3

  • @johncross116
    @johncross116 9 місяців тому

    Excellent stuff! Thank you Toskers!👍

  • @carito9659
    @carito9659 9 місяців тому

    Loved it. Perfectly explained!

  • @fooballers7883
    @fooballers7883 11 місяців тому

    thanks...much appreciated.

  • @liamo6756
    @liamo6756 11 місяців тому

    First tutorial I've found that explains any of this in an intuitive way. So many others gloss over the datacontext, code-behind and namespace stuff wayyy too fast

  • @ishrarg
    @ishrarg 11 місяців тому

    Perfect explanation

  • @edouardpoitras810
    @edouardpoitras810 Рік тому

    Thanks for the great video- you did more in 15 mins than I did in all the reading(hours)

  • @jbx30001
    @jbx30001 Рік тому

    As a relatively new WPF user I've never used dock panels, nice explanation, thank you.

  • @senaustun4380
    @senaustun4380 Рік тому

    thanks for the course man there arent many videos specially focused on xaml so I really appriciate it ^-^ hope ur doing well

  • @edouardpoitras810
    @edouardpoitras810 Рік тому

    I have been researching WPF with books and videos and your video really uncover the cloak of DataContext- Thanks

  • @ElCidPhysics90
    @ElCidPhysics90 Рік тому

    Man, I really wish you were creating content with current WPF. Your tutorials are perfect.

  • @user-ku9ed7ex3e
    @user-ku9ed7ex3e Рік тому

    Thank you

  • @janwollny7586
    @janwollny7586 Рік тому

    OKCommand = new RelayCommand<IDialogWindow>(OK); ??? I can not find where you build this.

  • @Malcrom1967
    @Malcrom1967 Рік тому

    Your video was great help but it is more creating new views rather than switching between them. I'm part way there anyway :)

  • @Cemmet1995
    @Cemmet1995 Рік тому

    Now i need to know how many ComboBoxes you can fit inside a ComboBoxItem 😅

  • @nandinisingh6091
    @nandinisingh6091 Рік тому

    Hi, I tried the same code but the tool buttons are not loading the image when I execute the code, Please help

  • @shameerminhas9152
    @shameerminhas9152 Рік тому

    Genius

  • @matteoverardo8005
    @matteoverardo8005 Рік тому

    thank you so much.

  • @vorgeschichte713
    @vorgeschichte713 Рік тому

    Great tutorials. I can take a lot more from this than reading articles that often just skip setup etc.

  • @twinkle6460
    @twinkle6460 Рік тому

    пидарас

  • @hishoegypt1980
    @hishoegypt1980 Рік тому

    Enable UI Debugging Tools for XAML does not exist in options!!!!

  • @LesterMolinaCartuchoDesigns

    Awesome! Thanks!

  • @MartinPark-rn9hn
    @MartinPark-rn9hn Рік тому

    very helpful thank you!! I have a question about this, if i have a button in my red View and i want to change from there so the green view, is there a way to do it? or can i remove the data context from the red view ? Thanks a lot for your nice tutorial!

  • @ivandrofly
    @ivandrofly Рік тому

    10:09 I think binding the tooltip directly with the dictionary will throw an exception when there is no error on the property - you only show when there are errors. Ps: There is also another interface for validation INotifyOnDataErrroInfo which I think is also very powerful

  • @narendrahiraskar1798
    @narendrahiraskar1798 Рік тому

    How to change the background of the textbox based on the condition? Could you please suggest me.?

  • @janifer
    @janifer Рік тому

    Hi, just found this vid... the pastcode is no longer valid. Have you posted this on github?

  • @geekbait7019
    @geekbait7019 Рік тому

    are you a teacher by trade? by FAR, these are the best tutorials i've seen on any subject on youtube.

  • @olekristianrannekleiv762
    @olekristianrannekleiv762 Рік тому

    very good explanation, thank you