Tagged Content List
  • Wiki Page: Customizing The Creation And Initialization Of Content In The Modern UI For WPF

    Table of Contents Introduction NuGet ModernWindow Dependency Injection Introduction This post is about how you could customize the creation and initialization of the content of a ModernWindow in the Modern UI for WPF library by creating a custom class that implements the FirstFloor.ModernUI.Windows...
  • Wiki Page: ASP.NET WebAPI - Enable Cors

    Table of Contents Introduction STEP 1 - Create ASP.NET WebAPI 2 Application STEP 2 - Install Nuget STEP 3 - Enable CORS on solution STEP 4 - Make call from client Resources Introduction This article walks you through configuration of CORS on webapi. Browser security prevents a web page from...
  • Wiki Page: ASP.NET WebAPI - Basic Redis

    Table of Contents Introduction STEP 1 - Create ASP.NET WebAPI 2 Application STEP 2 - Install Nuget STEP 3 - Start Redis STEP 4 - Create basic Redis class STEP 5 - Test application Resources Introduction This article walks you through configuring Redis and making basic operations using .net C# client...
  • Wiki Page: Currency Formatting in C#

    The code queries the cultures using linq to find a culture matching the given currency code it then uses passes the culture into string.Format and asks it to format as currency (”C”). public static string FormatCurrency( this decimal amount, string currencyCode) { var culture...
  • Wiki Page: Contact List using MVC5, AngularJS and Redis: Part 2 - Install and Configure AutoFac

    Table of Contents Introduction STEP 1 - Install Nuget STEP 2 - Configure Startup file Resources More articles in this series Introduction This article walks you through the steps to configure AutoFac (dependency injection) on a MVC + WebApi project. STEP 1 - Install Nuget The first...
  • Wiki Page: Playing With Timer - C# (WinStore, WinPhone)

    This article will help you to add timer in your Windows Store or Phone app using C#. Step # 1: Load/Open App project in Visual Studio. Step # 2: Open MainPage.xaml (from solution explorer) and Add Following Elements to Grid: <Grid> <Button x:Name="start" Content...
  • Wiki Page: Small Basic: Graduate to C#

    This article considers how to Graduate a Small Basic program to C#. Table of Contents Motivations Prerequisites ILSpy Visual Studio Community Conversion Create a Small Basic exe Convert to VS project Inside Visual Studio Initial setup The source code Running the Program Other Languages Motivations...
  • Wiki Page: WPF: Implementing Global Hot Keys

    Table of Contents Introduction P/Invoke RegisterHotKey Return Value Other Applications Sample Code See Also Introduction If you want your WPF application to be able to detect and handle key presses even when it is not currently activated or focused on the screen you could implement what is known...
  • Wiki Page: C#: Tipos

    Para quem está começando a estudar C# consulte o Guia de Sobrevivência C# . C# é uma linguagem fortemente tipada, o que significa que as variáveis e constantes pertencem a algum tipo. Esses tipos definem espaço gasto na memória para alocar um dado deste tipo ou as operações que podem ser feitas...
  • Wiki Page: SharePoint: How to embed image of article page in email body

    I had a requirement to share/email an article for specified users after content owner approval and publish. To get this functionality, added a workflow to the article pages to send out email to the specified users of the published article. In workflow, wrote code to retrieve the page content and rollup...
  • Wiki Page: WPF: Disabling or Hiding the Minimize, Maximize or Close Button Of a Window

    Table of Contents Introduction ResizeMode P/Invoke Sample code See also Introduction There may be situations when you want to hide or disable the minimize, maximize, or close button of a window without having to modify the style of the window in any other way. In WPF you can indeed set the WindowStyle...
  • Wiki Page: String Interpolation - C# 6.0

    Table of Contents Introdução String Interpolation Links O objetivo deste artigo é apresentar o recurso conhecido como String Interpolation, uma das novas funcionalidades que integram a versão 6.0 da linguagem C#. * Este post foi elaborado com base em um material publicado através do grupo...
  • Wiki Page: Exception Filters - C# 6.0

    Table of Contents Introdução Exception Filters Links O objetivo deste artigo é apresentar o recurso conhecido como Exception Filters, uma das novas funcionalidades que integram a versão 6.0 da linguagem C#. * Este post foi elaborado com base em um material publicado através do grupo de usuários...
Page 53 of 71 (1,775 items) «5152535455»