Type: Posts; User:
April 15th, 2010
For the first time this year, the Seattle Code Camp (April 17-18) is providing live video for many of its sessions within a virtual event. C#, .NET & Silverlight, database, architecture, and other...
I'm not sure if a scrollviewer is the way to go or not... but in general you will want to look into WPF controls that provide virtualization features by default (ListBox and ListView). As you already...
I may not fully understand the question, but here is one method to display an image dynamically (in code):
I assume that you have an Image control defined somewhere where you want to display the...
Maybe, I don't know for sure. I'm running VS 2008 Development Edition version 9.0.30729.1 for what it's worth.
NumericUpDown Custom Control in an External Library Sample
Some more ideas:
Create a user control that is composed of a TextBox and two buttons. You'll have to do some extra work to get just...
To scroll a Canvas, stick it in a ScrollViewer:
Search for MediaElement. Also look for WPF media players on codeplex and codeproject there are quite a few that show how to use MediaElement.
I think that you can set the ContentPresenter's ContentTemplate like so:
I don't think I am following you very well. I assumed from your original post that you were trying to take some existing Windows Forms code and port it over to WPF. Are we both talking WPF here or...
Look into using the ItemTemplate for the ListView. This defines what controls will be rendered for each item. Check out MSDN for more details. If your new to WPF and templating in general, definitely...
Is the data provider hooked up to anything in XAML at all or is it just used in your code? If it is just used in your code, the data may not be loaded as you would expect. Try setting IsAsynchronous...
I assume that you are talking about working in the XAML Design view? One way to switch tabs is to set the SelectedIndex of the TabControl in the Properties window.
1) Put all the combo boxes within some sort of container, like a StackPanel
2) Assign the Companies business object to the DataContext for the StackPanel
Companies combo box:
Here is one possibility:
1) Create a handler for the DataGrid.AutoGeneratingColumn event
2) In the DataGrid.AutoGeneratingColumn event, examine the column header values looking for the one you...
This my provide the answer you seek:
You're right when you say that the company you work for can have everything to do with what database-related chores are available for you to work on. Some small companies (or just small projects...
You need to set the IsTabStop property on the individual DataGridCell items, which you can do by setting the DataGridTextColumn.CellStyle. Something like the following should work:
It's a fairly involved process, but check out this MSDN magazine article:
Windows Messages: Add Keyboard Support to Compact Framework Apps
Also check out the Excel Automation Tasks how-to links on MSDN.
I think that most modern mobile phones (I think that is what you are referring to by mobile device) can handle encryption and decryption of data just fine from a resource perspective. We would...
When iterating the Items collection, cast each item to the data type that is bound to your ComboBox and access the desired property. For example:
foreach (var item in this.comboBox.Items)
For your scenario I would check out the section titled "Remove an animation from an individual property" in this MSDN whitepaper:
Try contact.Display(false) instead. When you pass true, you are saying that you want the window to be modal.
March 27th, 2009
I just learned that the format of VB colors is BBGGRR rather than .NETs AARRGGBB, so something like the following may help get all your color bits lined up:
Color ColorFromVB(int VBcolor)
Click Here to Expand Forum to Full Width