Daniel Schroeder

Sharing my tips and tricks to help other developers be more productive
posts - 19, comments - 11, trackbacks - 0

My Links

News

Twitter












Archives

April 2011 Entries

TFS GoToWorkItem VS command and keyboard shortcut
Normal 0 false false false EN-CA X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";} The button to jump directly to a work item by specifying...

Posted On Friday, April 29, 2011 3:24 PM | Feedback (0) |

Friendly visual studio solution names for working with multiple branches
Normal 0 false false false EN-CA X-NONE X-NONE MicrosoftInternetExplorer4 /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.000... mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";} If you have the latest version of the Visual Studio 2010...

Posted On Friday, April 29, 2011 3:06 PM | Feedback (3) |

Solution won't build on TFS Build Server
So if you are able to build (compile) the solution on your local machine, but it won't build on the TFS build server and you are getting an error message similar to: 1 error(s), 1 warning(s) $/TeamProject/Dev/RQ4/FBs/4... - 1 error(s), 1 warning(s), View Log File Integration\frmGetIntegrati... (1138): The type or namespace name 'BillingFields' could not be found (are you missing a using directive or an assembly reference?) C:\Windows\Microsoft.NET\Fr...

Posted On Sunday, April 17, 2011 8:46 PM | Feedback (1) |

Adding ValueChanged events to Dependency Objects in WPF
You may be wondering which is the best way to hookup a DependencyProperty's Callback event handler to handle Value Changed events. The two methods to consider are: Method 1 - Use static event hanlders, like so: public virtual int SelectedID { get { return (int)GetValue(SelectedIDPro... } set { SetValue(SelectedIDProperty, value); } } public static readonly DependencyProperty SelectedIDProperty = DependencyProperty.Register... typeof(int), typeof(SelectorBase), Normal 0 false false...

Posted On Sunday, April 17, 2011 8:41 PM | Feedback (0) |

My WPF Binding won't work. WTF!
At one point or another I'm sure we've all been confused as to why our binding won't work. Here's a couple things to keep in mind: - have you set the DataContext to be the class containing the property you are binding to? This can be done in XAML or in the code-behind. For example, put "this.DataContext = this" in the code-behind file's constructor. - is the property you're binding to public? Also, it must be a property (with get; set; accessors), not a field (i.e. class variable). - if you are using...

Posted On Sunday, April 17, 2011 8:35 PM | Feedback (0) |

Some Visual Studio 2010 Shortcuts and C# 4.0 Cool Stuff
A list of some shortcus and new features to VS 2010 and C# 4.0: Default values for parameters Can access parameters by name (i.e. SomeFunction(name: "Dan", age: 26); Can now put Labels on breakpoints and filter the breakpoints, as well as import and export breakpoints. Window => New Window to open up same file in two separate tabs, or can drag the splitter at the top-right corner of the edit window. Edit => Outlining => Hide Selection to collapse any region of code Alt + Mouse Left Drag...

Posted On Sunday, April 17, 2011 8:21 PM | Feedback (0) |

Setting focus to an element in WPF
So if you are trying to set focus to a WPF element, but are unable to. Here is a quick checklist to go through: - is the control you are trying to set focus to Enabled, Visible, Loaded, and Focusable. If any of these properties are false, you cannot set focus to the element. If you are using Binding to set these properties, make sure the binding is firing before you are trying to set the focus. - does the control that already has focus allow focus to be taken away? If the control that currently has...

Posted On Sunday, April 17, 2011 8:15 PM | Feedback (0) |

Powered by: