Browse by Tags

Tagged Content List
  • Wiki Page: WPF: Tips - Too Much Measuring Up Is Bad

    Table of Contents Layout Flows The Short Story Measure Arrange Rows x Columns = Lots = Bad This article tries to explain plainly why and how you can over work your processor with auto sizing. The usual explanation of Measure Arrange is a bit mind numbing. The point can easily be lost amongst the...
  • Wiki Page: Silverlight: No Need to BringIntoView

    Table of Contents Demonstration Markup Code Behind Results A change introduced in Silverlight 5 is that a ListBox ( or any itemscontrol ) will now scroll a selected item into view if it's off screen. The rest of this article is about demonstrating that. Demonstration Create a new...
  • Wiki Page: WPF: Property List Editing

    Table of Contents Introduction The Usual WPF Approach A List of Them Show Me the Code MainWindow EditRow Dictionary1 Conclusion Other Alternatives Introduction A very common User Interface layout for editing data is a list of labelled fields/properties. The label describes what the field is...
  • Wiki Page: WPF: Tips

    Table of Contents Introduction Work in Progress - please do not edit Beginning WPF Binding Advanced Binding Formatting Efficiency Designer XAML Introduction This article is the parent to a series of articles presenting a variety of wpf development tips. This groups the series together allowing...
  • Wiki Page: WPF: Tips - Lookless Controls

    One of the things which is very difficult to grasp for developers new to WPF is that controls are completely lookless. A new developer can be told this any number of times and it just doesn't take. This definitely applied to the author. There are several reasons this is particularly...
  • Wiki Page: WPF: Tips - Only One Parent

    Table of Contents What's a Visual? What Happens? Experiment One Experiment Two MarkUp Code Behind Left Column Right Column Implications The life of a Visuals must be very sad since they can only have one parent. This means you can get an error or unexpected behaviour if you somehow try...
  • Wiki Page: WPF: Tips - Designer Detection

    Occasionally you will have a piece of code which runs fine when you f5 but when you open it's Window or Usercontrol you get a spurious error. Another use of this tip is when you want to mock some data for your View but it doesn't suit designer data for whatever reason. Avoiding Errors...
  • Wiki Page: WPF: Tips - Binding Text to Numeric Resource

    Occasionally you want some value type like a string or number to be available application wide. A variable as a resource is one obvious approach - as it turns out this can be a bit tricky though. A Value Type The first thing to cover is how you actually get a value type in the first place....
  • Wiki Page: WPF: Tips - Newline in Text

    Table of Contents Sub Objects Resource Formatted Text String Occasionally you need a TextBlock which has multiple lines of text. This is WPF so there are is of course more that one way to accomplish this. This tip explains some options. Sub Objects If you've only ever used a ...
  • Wiki Page: WPF: Tips - Bind to Current item of Collection

    Table of Contents Introduction Work in Progress - please do not edit Explanation What About That Slash? Why Use This? Property List Editing Introduction An underused aspect of Binding is the ability to bind to the "current" item in a collection. This uses the "/" Binding...
  • Wiki Page: WPF: Dynamic XAML

    Table of Contents Introduction Loading a Flat File as a Resource Dictionary Introduction to XamlReader Linq to XML Exploring XML Changing the Unchangeable Flexible Composition Awkward Bindings/Data Finally The purpose of this article is to highlight some of the many uses for building XAML dynamically...
  • Wiki Page: DotNet: Reporting Options

    Table of Contents Introduction SAP Crystal Reports Microsoft Reports MS Access Transforms - XSLT / XSL Jquery T4 Template Word Mail merge Open Source ReportingCloud My-FyiReporting Paid Third Party Telerik Reporting DevExpress Universal Reporting DevExpress Snap Windward Autotag Banded Reports ...
  • Wiki Page: MSDN Forums: Asking Questions

    Table of Contents How an Answerer Uses This Research First Correct Forum One Question Make Your Question Attractive Include Just Enough Code Enough Explanation Not the Wall of Code Helpful Development Techniques Debugging Iterative Development Marking Answers Be Fair Recognition Points Plagiarism Fallibility...
  • Wiki Page: Communicating Between Classes

    Table of Contents Common Use Cases Include The Inelegant solutions The Elegant solution - Messaging Sending and Receiving Messages Sample Solution Explanation of Code ViewModel to Code Behind Example ViewModel Requiring user input A very common question on the MSDN forums is where someone has one...
  • Wiki Page: WPF: CollectionView Tips

    Table of Contents Introduction Audience Broad Functionality Particular Advantages Usage Usage Introduction First obtain your CollectionView Sorting Filtering Simple Filtering Slightly more Complicated Complicated Filtering Performance and Repository Programmatic Selection of Record The Good The not so...
  • Wiki Page: WPF: Keeping your MVVM Views DRY

    Table of Contents Introduction Sample Requirements A Solution Templating a ContentControl Explaining the Sample In the Window MainWindowViewModel The Template BindingErrorEventArgsConverter ConversionErrorCommand RoutedEventTrigger ErrorToolTip Alternative Solutions Code Behind Base Window Inheriting...
  • Wiki Page: WPF: Entity Framework MVVM Walk Through 1

    Table of Contents Introduction Requirements Set Up Tables Creating an Entity Data Model Model - Step by step Outline UI Requirement Explanation of Implementation What gets a ViewModel? Ribbon/Toolbar/What? Navigation Edit Commands GetData - Intial read and refresh command Deletion User Messages Error...
  • Wiki Page: Visual Studio: Snippetty Tip

    Table of Contents Introduction Audience What's a Code Snippet? What and where are they? A Simple Change From Editor Advanced Snippets Further Reading Introduction Lots of developers use Intellisense Code Snippets but relatively few design their own or even alter existing snippets. Most...
  • Wiki Page: SQL Server: Pragmatic Denormalisation

    Table of Contents Introduction What is Denormalisation? Default Value Adding Logic Performance Minimising Joins Avoiding Correlated Subqueries Pre Aggregation Reducing Skill Threshold Data Redundancy vs. Denormalisation Data Warehouse/Mart Caching Business Server Cache Local Cache Many courses...
  • Wiki Page: How Active Directory Recycle Bin works: Enable AD Recycle Bin

    Active Directory Recycle Bin, introduced with Windows Server 2008 R2, helps minimize directory service downtime by enhancing your ability to preserve and restore accidentally deleted Active Directory objects without restoring Active Directory data from backups, restarting AD DS, or rebooting domain...
  • Wiki Page: Service Locator pattern in SharePoint

    When we develop a class ,the code will depend on other classes for providing functionality. The result of this being a tight coupling between the consumer class and the dependency class. Following are the issues with the above dependencies As the code base becomes more complex, it can be difficult...
  • Wiki Page: char Combinations

    After my previous submission ( Maths Revision V1.0 ) in the TechNet competition last month, here's a preview of what V2.0 will contain: Download: char Combinations.zip When answering a forum question on how to calculate the shortest path from form left to right, intersecting 4 ellipses...
Page 1 of 1 (22 items)
Can't find it? Write it!