April 2011 Entries
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...
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...
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...
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...
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...
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...
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...