Browse by Tags

Tagged Content List
  • Wiki Page: How to Build, Manage and Navigate the User Interface of a WPF Application

    Table of Contents Introduction Download Navigate Pages or Dashboard NavigationWindow 1. Hyperlink 2. Frame 3. NavigationService Dashboard Applications Side-note about the power of templates 4. Adding UserControls to XAML 5. Parent Cast 6. Inversion of Control / Dependancy Injection (kind of) 7. Application...
  • Wiki Page: Visual C# Resources on the TechNet Wiki

    Introduction This page contains links to all the Visual C# resources that are available on the TechNet Wiki. This page focuses on Technet Wiki articles only and contains the most prominent articles per category. The articles are grouped based on the common Wiki Article tag for Visual C#. ...
  • Wiki Page: Dynamic Method Invocation with Generics

    So I decided to test a theory of mine. The theory was could I stream line method invocation to function the same for methods that contain generic type parameters as invocation for non-generic method. I know if the method is defined "statically", a dynamic object will call it, but...
  • Wiki Page: Use of “Enumerable.Cast” and “Enumerable.OfType” in C#

    There are situations where you have a collection that doesn’t support LINQ and you want to run some LINQ query against a particular object or set of objects inside your collection. Enumerable.Cast<TResult> and Enumerable.OfType<TResult> methods are real life savers in those kind of...
  • Wiki Page: WPF/MVVM: Binding the IsChecked Property of a CheckBox to Several Other CheckBoxes

    Table of Contents Introduction Grouping in XAML Data Templating Defining a GroupStyle The binding Selecting all CheckBoxes Introduction This article provides an example on how you can use a three-state Checkbox control to set the IsChecked property of several other related CheckBoxes in a data...
  • Wiki Page: Interoperable WCF Service by Flattening our WSDL

    When creating web services that are to be interoperable (easily accessbile across various platforms) the wsdl cannot have any xsd:import elements. In order to achieve this we need to flatten the wsdl. We do this by creating our own ServiceHostFactory. First we create a class that defines the new...
  • Wiki Page: How to Inspect WCF Message Headers Using IClientMessageInspector

    Reading the SOAP message headers for any set of messages can be useful when diagnosing problems. This code allows you to do just that. To run: Copy and paste the code into Visual Studio 2010. Add a reference to: System.ServiceModel.dll System.Runtime.Serialization.dll. Original...
  • Wiki Page: Optimize your delegate usage

    Kudos to David Fowler for spotting this! We had a chat on JabbR and David pointed out something quite odd about delegates which he had discovered while optimizing some code. Let’s assume that we have the following code that declares a delegate and a method that uses it: public delegate...
  • Wiki Page: Easy MVVM examples (in extreme detail)

    This article discusses the various methods and tricks used in MVVM, to enable a developer to completely separate the user interface from the code. It demonstrates all the basics with easy examples to follow, in a downloadable project. Table of Contents Introduction About the Sample Project Classic...
  • Wiki Page: WPF: TreeView SelectedItem TwoWay MVVM (plus expand to selected and close all others)

    Table of Contents Introduction Building the Sample Description Introduction This sample shows how to two-way-bind to the SelectedItem property of a WPF or Silverlight TreeView . It also shows how to expand nodes down to the selected item, and collapse all other nodes (to keep it tidy)....
  • Wiki Page: SharePoint: Querying Active Directory using C#.Net

    Table of Contents Introduction Simple Example Webpart Example One Webpart Example Two Other Examples Get the PrincipalContext Get a Group Get a User Check if a User is a Member of a Group Get a List of all the Users in a Group Add or Remove a User from a Group See Also Introduction If you...
  • Wiki Page: WPF: How To Manage Available/Selected Lists using MVVM Or Code Behind

    Table of Contents Introduction Download Description MVVM Code Behind Introduction This example shows how to handle two lists for selecting items. One showing selected items, the other showing remaining options available (minus the selected options). As you select items from the ComboBox...
  • Wiki Page: WCF: Streaming Large Data Files Using WebHttpBinding

    This example code streams large data files using Windows Communication Foundation (WCF) and the WebHttpBinding . [The original code comes from this forum post: http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/fb9efac5-8b57-417e-9f71-35d48d421eb4 ] For more information about streaming...
  • Wiki Page: Visual C#: Thread.Sleep vs. Task.Delay

    We can use both Thread.Sleep() and Task.Delay() to suspend the execution of a program for some given time. But are we actually suspending the execution? What is the difference between these two? How do you abort from a sleeping thread or from a delaying task? Those are some of the questions I believe...
  • Wiki Page: C# : Action, Func<TResult> and Predicate<T> Delegate

    Table of Contents Introduction Action Func < TResult > Predicate<T> Func Vs. Predicate<T> Download sample Introduction I am pretty sure you all must have seen these delegates when writing code. IntelliSense shows methods that accept Actions, Func<TResult> and some accept...
  • Wiki Page: Using Entity Framework 4.1 Code First with WCF Data Services

    The Entity Framework 4.1 release introduced a feature named Code First, which enables you to define an Entity Framework data model using only code. For more information, see Getting Started with the Entity Framework 4.1 . This article shows you how to create a Code First implementation of Northwind...
  • Wiki Page: How to Communicate with a Microcontroller or Other Serial Device in VB.Net

    Table of Contents Introduction Microcontrollers (MCUs) Serial Port Pitfalls Using the SerialPort Component "SerialDevice" Code Sample Code Description Usage Example Summary See Also Introduction With today's low-cost electronics and micro-manufacturing techniques the average electronics...
  • Wiki Page: C#: Compiling Code at Runtime from Windows Forms Application

    Table of Contents Introduction Function Arguments Introduction In this article I have shared a piece of code which will compile a block of C# code passed as an argument (source) to the function and generate a DLL or EXE at runtime from an C# Application. If any compilation error occurs, the error...
  • Wiki Page: SharePoint 2010: Comment Copier une Liste dans la Même Collection de Sites en C# (fr-FR)

    Note : Cet article est une traduction. Table of Contents Introduction Exemple de code C# Voir aussi Autres langues Introduction Récemment, quelqu'un a exprimé le besoin de copier des listes SharePoint au sein de la même collection de sites. C'est pourquoi afin d'automatiser...
  • Wiki Page: WPF: The Myth of BindingGroup

    Do you use BindingGroup often? I bet 90% of WPF Developers would answer this with "nope" but one guy gave it a try. A user asked this month a very interesting question about BindingGroups in WPF. He wanted to know why was his BindingGroup not working as expected. BindingGroups are not used...
  • Wiki Page: Wiki: Format XML Markup using Notepad++

    Table of Contents Introduction Downloading Notepad++ Installing the XML Tools Plugin Formatting Example See Also Introduction This article demonstrates how to achieve good XML formatting in a wiki article using Notepad++ (a free Notepad editor) with the XML Tools add-in. ...
  • Wiki Page: Getting Started with Test Driven Development in C#

    Table of Contents Introduction Taking Flight Code Sample Introduction Test Driven Development (TDD) is highly recommended approach to software development. In TDD, we first write unit tests, generate skeleton code so that the solution builds. Obviously all tests will fail initially since we have...
  • Wiki Page: Wiki: Development Portal

    TechNet Wiki includes and welcomes development-related articles. Software development is writing and maintaining source code, and the process may include research, code modification, scripting, reuse, re-engineering, test, or maintenance. The following articles links are to articles...
  • Wiki Page: Entwickler Portal (de-DE)

    Softwareentwicklung beinhaltet das Schreiben und die Wartung von Quellcode. Dieser Prozess beinhaltet Nachforschungen, Codeänderungen, Skripterstellung, Wiederverwendung, Re-Engineering, Test oder Wartung. Die folgenden Links verweisen nur auf Links aus dem TechNet Wiki. Table of Contents Allgemeine...
  • Wiki Page: Wiki: 開発ポータル (ja-JP)

    TechNet Wiki では、開発に関連する記事も歓迎します。 ソフトウェア開発はソースコードを記述しメンテナンスすることであり、そのプロセスには、調査や、コードの変更、スクリプティング、再利用、リエンジニアリング、テスト、メンテナンスを含みます。以下の記事のリンクは、TechNet Wiki 内のリンクに限ります。利用可能になった記事のリンクをどんどん追加していってください。 Table of Contents 一般的な記事 .NET Framework AppFabric ASP.NET SharePoint SQL Azure SQL Server NoSQL Windows...
Page 1 of 3 (59 items) 123
Can't find it? Write it!