Browse by Tags

Tagged Content List
  • Wiki Page: WebView - Dynamic Html Page with Images (MVVM)

    This article provides support for WebView in Windows 8 to display local html file or html page created dynamically. Oftentimes developers are looking to display local html file but due to the WebView restrictions (for security reasons) are not able to achieve it. This also caters to following Code...
  • Wiki Page: C#: Ensure User only Runs One Copy of a Program

    Using a mutex, you can ensure that multiple users can run a program, but each one can run only one copy of the program. This can come in handy when users are logging into a Citrix server or other shared server, and you don't want to limit the application to running only once. The following...
  • Wiki Page: C# vs CLR Datatype

    Source reference Content below is a transcript of the following discussion http://stackoverflow.com/questions/7074/whats-the-difference-between-string-and-string All the content contributed to Stack Overflow, Stack Overflow Meta, Server Fault, and Super User is cc-wiki (aka cc-by-sa )...
  • Wiki Page: C# Calcolare numero di files presenti in un dato percorso (it-IT)

    Il seguente snippet di codice permette di eseguire – dato un percorso iniziale ed un pattern file da considerare – un rapido conteggio dei files presenti nell'intera gerarchia della directory indicata, ovvero nella cartella stessa ed in tutte le sottodirectory ad essa relative. La funzione qui...
  • Wiki Page: Named Pipes IO for Inter-process Communication

    Introduction Use the .NET 3.5 Named Pipes IO for Inter-process communication by implementing a pipe listener on a separate thread. The first sample is a WPF project. It can also be done just as easily in Windows forms. Description The sample demonstrates how to pass string data from clients...
  • Wiki Page: La classe Multibinding in Wpf e C# (it-IT)

    In questo semplice esempio vedremo come utilizzare la Classe Multibinding . La classe MultiBinding consente di associare una proprietà di destinazione dell'associazione a un elenco di proprietà di origine e di applicare quindi una logica per produrre un valore con gli input specificati. In questo...
  • Wiki Page: C# Convert an .Ico File to a .Bmp

    In this example, using the Bitmap class included in the System.Drawing namespace, an .ico file is converted to a .bmp file to display it in a PictureBox. This is necessary because the .ico format is not supported by the PictureBox control. using System.Drawing; using System.Windows.Forms; namespace...
  • Wiki Page: C# Visualizzare Risultati Query in DatagridView (it-IT)

    L'esempio seguente è finalizzato a mostrare come eseguire il popolamento di una DatagridView, a partire dalla connessione verso un database SQL Server, e dalla successiva esecuzione di una query. Supponendo di lavorare su un ipotetico Form di nome Form1, di aver predisposto in esso una DatagridView...
  • Wiki Page: Binding an item inside ItemsControl's DataTemplate to the property on Page DataContext

    Typically in all scenarios we bind the ItemControl's ItemsSource to the collection of Data Model item. Then we configure our DataTemplate Binding to the properties inside Data Model item. However, in this particular scenario MSDN questioner wanted to bind the one UIElement inside DataTemplate to...
  • Wiki Page: Where IN and NOT IN Queries with WCF Data Services

    It's a common requirement to want to select a list of items where the selection criteria matches any value in another list. The following article shows why it's not easy to do this with WCF Data Services out of the box and how to create extension methods to provide this functionality. If...
  • Wiki Page: Effective C# Coding

    Make your C# code efficient The following set of effective C# articles contains various ways to improve your C# code. Item 1 - Prefer the Length property when checking string size [ Performance] String comparison involves unnecessary overhead. If all you need is to check whether the...
  • Wiki Page: Criando e Consumindo Web API - Parte 5

    Olá pessoal, hoje eu gostaria de falar e mostrar como customizar as pesquisas no Web API, ou seja, saindo um pouco da rotina já criada pela ferramenta Visual Studio da Microsoft, vamos criar outros métodos dentro do Web API para pesquisas. É importante entender que além do trivial que são os métodos...
  • Wiki Page: Small Basic: Graduate to C#

    Table of Contents Motivations Prerequisites ILSpy Visual Studio Express Conversion Create a Small Basic exe Convert to VS project Inside Visual Studio Initial setup The source code Running the Program This article considers how to Graduate a Small Basic program to C#. Motivations There are...
  • Wiki Page: Buscando lista de grupo do AD de acordo com nome da Rede

    Olá leitor(a), hoje eu vou falar um pouco sobre como desenvolver no seu aplicativo Web a busca todos os grupos da rede para um determinado usuário. Esse código funciona também no Windows Forms. Vou tentar explicar o meu exemplo antes de mostrar o código, não irei me alongar muito no artigo. O meu...
  • Wiki Page: Introduction of New Features in C# 5.0

    Introduction of New Features in C# 5.0 1. C# Evolution Matrix Microsoft just published a new version of C# : 5.0 beta with CLR version 4.5 (Visual Studio 11 beta). In order to get a big picture of the whole evolution of C# language, I summarized all the key features into a C# Evolution...
  • Wiki Page: Consuming OData Based Rest Service in C#

    Nowadays comunication between applications is an active topic with daily usage and a large amount of pratical appliances. While developing an app in witch I had to consume an OData I found out that combining Linq with my code made this operation pretty easy. The algorithm to consume OData starts with...
  • Wiki Page: Cascading ComboBoxes in WPF using MVVM

    When a user is selecting an item from a cascading ComboBox, another ComboBox gets automatically populated with items based on the selection in the first one. This article is about how you can implement this behaviour in a WPF application using the MVVM (Model-View-ViewModel) pattern. Assume that...
  • Wiki Page: Memory access pattern matters even in managed programming

    At BUILD 2013 there was a talk on Native Code Performance and Memory: The Elephant in the CPU , even though I didn’t attend BUILD this year I watched it on Channel9 and I’d like to recap something from it that I find interesting. In many cases I think that we ignore the fact that we need to handle...
  • Wiki Page: Multithreading Dictionary<>

    The sample project highlights differences between Dictionary<>, ConcurrentDictionary<> and using Dictionary<> in combination with a lock. Issues arise with these data structures in a multithreaded scenario when care is not taken when adding and updating entries. Namely, unpredictable...
  • Wiki Page: Criando e Consumindo Web API - Parte 4

    Olá leitor(a), dando continuidade a série de artigos sobre criar e consumir Web API, hoje eu vou falar e mostrar como fazer o PUT ou seja, como fazer “update” no banco de dados usando Web API e o método PUT criado em artigos anteriores. A criação do Web API está descrito todo na primeira parte. ...
  • Wiki Page: Observer Pattern with Delegates

    Dive into Observer Pattern with Delegates: Targeted Audience: .NET Architects .NET Application Designers .NET Application Developers Prerequisites: .Net technologies. Basic understanding of design patterns and event handling. Delegates. Problem Statement: In Object Oriented Programming...
  • Wiki Page: Vinculando seu código e fazendo build automático no Azure

    Hoje quando um desenvolvedor pensa em desenvolver software e publicar na Internet, ele precisa pensar na infra-estrutura, código, banco de dados, hospedagem do aplicativo ou site, controle de versão e escalabilidade para o sistema não sair do ar. Temos uma ferramenta muito boa disponibilizada pela...
  • Wiki Page: Creating a Simple Plugin Mechanism

    Table of Contents Introduction Creating a simple plugin mechanism from scratch Creating the plugin interface Implementing the plugin interface Implementing the plugin framework Integrate the plugin mechanism in the main application Creating a simple plugin mechanism with MEF Implementing the plugin interface...
  • Wiki Page: Criando e Consumindo Web API - Parte 2 (pt-BR)

    Olá pessoal, hoje eu vou falar de Web API parte 2 da forma bem simples e fácil. No artigo anterior criamos a parte do banco de dados e exportamos os dados em forma de XML ou Json. Agora vamos consumir esse Web API usando a linguagem C# .NET. Antes de começar a falar da parte 2, peço para que leia...
  • Wiki Page: Criando e Consumindo Web API – Parte 3 (pt-BR)

    Olá Leitor(a), hoje eu vou dar continuidade à série de artigo falando sobre a tecnologia Web API. Lembro a você da necessidade de leitura dos outros artigos anteriores citados abaixo, para um melhor entendimento e aprendizagem. Vou continuar com o mesmo seguimento, explicando e mostrando o código fonte...
Page 3 of 7 (162 items) 12345»
Can't find it? Write it!