Browse by Tags

Tagged Content List
  • Wiki Page: WPF: Uneventful MVVM

    There’s an inevitable question crops up whilst coaching someone from a winforms or vb6 background: “How do I do my events then?” Read this before that grouchy team lead coaches you. The rumours are true. Table of Contents Work in Progress, Please do not edit Audience No Event Handlers Why...
  • Wiki Page: Silverlight: Trouble Shooting Installs

    This page is intended to help end consumers as well as the occasional professional developer who might have a problem with a Silverlight install. Table of Contents Troubleshooting Is Silverlight Working? Is Your Setup Compatible? Paused/doesn't Play Video on Mac Fixing a Broken Install Permission...
  • 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: WPF: Tips - RadioButton Alignment

    Table of Contents Symptoms Simple Fix A More Complicated Fix Wait a Minute See Also The spot in a RadioButton or box in a CheckBox is vertically aligned in a rather strange way. The UI design perfectionist might even suggest this is a sub optimal way. You might never notice this if you...
  • Wiki Page: WPF: Tips - Designer Detection

    Table of Contents Avoiding Errors Mocking Occasionally you will have a piece of code which runs fine when you f5 but when you open the Window or Usercontrol you get a spurious error. This tip offers a simple way to make that error go away. Another use of this tip is when you want to mock...
  • 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 Visual must be very sad since they can only have one parent. This means you will get an error or unexpected behaviour if you somehow try...
  • 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 proves that. Demonstration Create a new Silverlight project...
  • 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: WPF: Tips

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

    Table of Contents Introduction Explanation What About That Slash? Why Use This? Property List Editing Introduction A little known and hence under-used aspect of WPF Binding is the ability to bind to the " current " item in a collection's view. Broadly speaking, this substitutes...
  • 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: 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 cover...
  • 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: 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: 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: 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: 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: 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: 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 naturally there's several ways to accomplish this. This tip explains some options. Sub Objects If you've only ever used a TextBlock...
  • 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 these can be tricksy rascals 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 - 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 - 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: 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: 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...
Page 1 of 2 (26 items) 12
Can't find it? Write it!