Sometimes you need to affect or change a property of one control based on the input of another control at runtime. A very simple example would be something like changing the Content property of a button by typing text into a Textbox. This is achieved by using a markup extension to bind the two controls […]
The good news is that, if you understand how margins work in CSS, you’re a lot closer to understanding how they work in XAML than the rest of the designers/developers. First, we’ll look at how it’s used, and then we’ll look at the differences between XAML margins and CSS (which is not that much, really). […]
Are you new to XAML and Silverlight or WPF, but you’ve used either ASP.Net or Winforms before? Are you freaked out that controls you put in the window get bigger when you resize the window?
Everyone knows how great tooltips are. In fact you wouldn’t even think of not creating a Windows app without them, most likely. Now, with the wonderful StackPanel, you can have not only text, but images too.
Many (or most) of us, coming from the ASP.Net world might be looking for something like the TextMode Property, in a TextBox, so that we could use the ‘Password’ enumeration item. However, in WPF, since 3.0, it’s been much more direct. There’s actually a ‘PasswordBox’ control to use. All you really need to do to […]
In ASP.Net, for DropDownLists, we had the DataSource or DataSourceID, the DataTextField, for the text that is acthally seen in the DropDownlist, and the DataValueField, for the unseen value of each item. For a ComboBox, the terminolgy changes a little. We have the ItemSource, the DisplayMemberPath, and the SelectedValuePath (which, IMHO, seems very odd use […]
For those of us who came from the ASP.Net world, and used the ‘BorderWidth’ property on many controls, alas, there is no such property in WPF. However, there is a property in it’s place – – just make sure you use the correct terminology – ‘BorderThickness’
All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF