Листбокс и контент во всю ширину

Listbox Datatemplate that fills full width
https://social.msdn.microsoft.com/Forums/windowsapps/en-US/974fe937-c257-48b9-9a78-3196d964110d/listbox-datatemplate-that-fills-full-width?forum=wpdevelop

<ListBox x:Name="ListBox">  
    <ListBox.ItemContainerStyle> 
        <Style TargetType="ListBoxItem"> 
            <Setter Property="HorizontalContentAlignment" Value="Stretch"/> 
        </Style> 
    </ListBox.ItemContainerStyle> 
 
... 
 
</ListBox>

VS: Allow unsafe code

Чтобы использовать небезопасный код в C#, надо первым делом указать проекту, что он будет работать с небезопасным кодом. Для этого надо установить в настройках проекта соответствующий флаг — в меню Project (Проект) найти Свойства проекта. Затем в меню Build установить флажок Allow unsafe code (Разрешить небезопасный код):

https://metanit.com/sharp/tutorial/8.3.php

Ссылки WPF, для проекта

How to make HTTP POST web request
https://stackoverflow.com/questions/4015324/how-to-make-http-post-web-request

Asynchronous programming with async and await (C#)
https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/

Async Programming : Patterns for Asynchronous MVVM Applications: Commands
https://msdn.microsoft.com/en-us/magazine/dn630647.aspx

Giving a listitem in a listbox a hidden value and a display text in wpf
https://social.msdn.microsoft.com/Forums/vstudio/en-US/047b4f3b-cf08-4b3c-bbde-222d29792b5f/giving-a-listitem-in-a-listbox-a-hidden-value-and-a-display-text-in-wpf?forum=wpf

ListView, data binding and ItemTemplate
https://www.wpf-tutorial.com/listview-control/listview-data-binding-item-template/

WPF — Custom Controls
https://www.tutorialspoint.com/wpf/wpf_custom_controls.htm

How to create user define (new) event for user control in WPF
https://stackoverflow.com/questions/13447940/how-to-create-user-define-new-event-for-user-control-in-wpf-one-small-example/13450584

5 Steps to Getting Started with Material Design In XAML
https://intellitect.com/getting-started-material-design-in-xaml/

Material Design In XAML Toolkit Wiki
https://github.com/MaterialDesignInXAML/MaterialDesignInXamlToolkit/wiki

WPF Tab Control: Setting Tab Color?
https://stackoverflow.com/questions/2086728/wpf-tab-control-setting-tab-color

Using a tabbed interface with MVVM
https://catelproject.atlassian.net/wiki/spaces/CTL/pages/61669389/Using+a+tabbed+interface+with+MVVM

Reflection — get attribute name and value on property
https://stackoverflow.com/questions/6637679/reflection-get-attribute-name-and-value-on-property

Use UI automation to test your code
https://docs.microsoft.com/en-us/visualstudio/test/use-ui-automation-to-test-your-code?view=vs-2017

Visual Studio 2017 error: Unable to start program, An operation is not legal in the current state

https://stackoverflow.com/questions/42692472/visual-studio-2017-error-unable-to-start-program-an-operation-is-not-legal-in

For me, the solution (workaround) is to turn off JavaScript debugging on Chrome, which I believe is a new feature introduced in VS 2017.

Go to Tools > Options > Debugging > General and turn off the setting for Enable JavaScript Debugging for ASP.NET (Chrome and IE).

jsdebug

Пара статей по MVC 5

Ссылки висят во вкладках, но пока есть много другого на поизучать, а так сайт вроде интересный

https://www.learnaspnetmvc.in/blog/2017/03/08/creating-your-first-aspnet-mvc-5-application/

https://www.learnaspnetmvc.in/blog/2017/03/08/important-csharp-topics-to-know-before-learning-aspnet-mvc/

The Rules Design Pattern

http://www.michael-whelan.net/rules-design-pattern/

Michael Whelan

Lately, I’ve been having to support some legacy code that has a lot of conditional logic and duplication. It can be quite hard to integrate new rules as the code can be difficult to understand and to digest what is going on. This sort of code often has comments explaining what the different pieces of conditional logic are doing. The problems only gets worse as you have to add more conditions over time.
Continue Reading →