Hi
I am new to wpf and am having a problem which may or may not be trivial. I have defined a custom control as follows in the resource dictionary:
<ResourceDictionary
x:Class="SyringeSlider.Themes.Generic"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml...
Hello,
I am using the .NET 4.0 client profile for my app and I run a dual core with 4 GB Ram and a fast hard disk.
nothing big is done at the start just showing a generic List in a wpf listview.
How can I make the cold start faster of my assembly ?
I have done now again a cold start and run the windowsapplication.exe in my \obj\x86\D...
Just wondering if anyone has any idea on how to do this. I want to let the user select multiple items by clicking and dragging the mouse (without letting the click go). Say the user clicks on item 1, then drags down to item 10; item 1 through 10 should get selected as if he clicked item 1, then shift + clicked on item 10.
Let me know th...
I'm using WPF Toolkit DataGrid and DataGridComboBoxColumn. Everything works well, except that when selection change happens on the combobox, the selectedvaluebinding source is not updated immediately. This happens only when the combobox loses focus. Has anyone run into this issue and any suggestions solutions ?
Here's the xaml for the ...
I'm trying to get my head around the whole MVVM thing and binding. I have a ViewModel class which has a property that is another class. I want to bind to a (string) property of that class to the text of a textblock.
I set the ViewModel as my data context for my window\page. And then do this:
<TextBlock Text="{Binding ElementName=myAd...
I have a combo box that I have bound to a list that exists in my viewmodel. Now when a users makes a selection in that combo box I want a second combo box to update its content.
So, for example, combobox1 is States and combobox2 should contain only the Zipcodes of that state.
But in my case I don't have a predefined lists before hand ...
Back in January 2009, Dino Esposito published an article on MSDN titled "Managing Dynamic Content Delivery In Silverlight". We are considering using an approach like this for an upcoming project and were wondering if anyone had any advice on whether this is a good approach. Are there any traps or pitfalls we should look out for? We curre...
What is a good alternative to OuterGlowBitmapEffect?
Preferably one that can be used in a theme/style and one that can be used without BitmapEffects.
...
I was working with a WPF application and I decided that the controls and graphics I wanted to display on the grid might look better if it was a silverlight component.
I thought this way because of all the cool silverlight controls that look very flash-like.
But now that I have gottem my Visual Studio 2010 set up with SIlverlight, it ...
With MVVM, I think of a view-model as a class that provides all the data and commands that a view needs to bind to.
But what happens when I have a database entity object, say a Customer, and I want to build a class that shapes or flattens the Customer class for use in a data grid. For example, maybe this special Customer object would ha...
Hello. I have next enumeration
Enum rcCategory
{
Incoming,
Internal,
Outgoing
}
and I have property "categories" in my class which has rcCategory[] type.
I would like to bind this property to the listBox. I use next code for this
MyListBox.SetBinding (ListBox.ItemsSource, new Binding {Source= myClass.categories});
But this ...
I am using a WPF tab control to present separate repeated instances of a user control. i.e. Tab1 for Item1 settings, Tab2 for Item2 settings, and so on.
It appears that the radio button group names are being shared between tabs. What is going on?
Simple example:
A window contains tabs. Each tab contains a user control.
<Window x:Clas...
I've just started learning WPF and like the power of databinding it presents; that is ignoring the complexity and confusion for a noob.
My concern is how do you safely refactor your models/viewmodels without breaking the views that use them?
Take the following snippet of a view for example:
<Grid>
<ListView ItemsSource="{Binding C...
I'd like to create a dropdown panel in WPF the acts like a ComboBox/Expander hybrid. I'm currently using an Expander but it pushes the the controls underneath it down when it expands.
I simply want it to act like a ComboBox and overlay it's dropdown. I've looked at using Popups but they don't move with the underlying window when it's mo...
Hi,
I'm creating a wpf user control which is in mvvm pattern.
So we have : view(with no code in codebehind file), viewmodel,model,dataaccess files.
I have MainWindow.xaml as a view file, which I need to bind with MainWindowModel.cs.
Usually, in a a wpf application we can do this with onStartUp event in App.xaml file. But in user contr...
Hi
dispite some posts on this forum and others i cannot find something that tells me how to set the focus on a text box.
I have a userControl with many labels and textBoxes.When the form is loaded I want the a particular textBox to have the focus.
I have set the tabIndex but that didnt seem to work.
Any suggestions
...
Hi,
I have following playlist:
Playlist playList = new Playlist();
I am adding the playList ietms to my playList as below:
if (strmediaExtension == "wmv" || strmediaExtension == "mp4" || strmediaExtension == "mp3" || strmediaExtension == "mpg")
{
PlaylistItem playListItem = new PlaylistItem();
...
Hi,
I have a scatterview with some items in it which I place with Orientation und Center.
Now I want to have the possibility to reset the positions of the scatterviewitems after scaling, rotating and moving them, while the program is running.
At the moment I do it this way:
private void Reset_ContactTapGesture(object sender, Microsof...
Hi
Any idea how to calculate the height of auto generated child controls in fixed-page... When using ActualHeight it give 0.0....
I need to to calculate height of the dynamic content in the fixed page.
Thanks and Regards
...
I have Button control and I have to set the IsEanbled property based on the bool variable.
bool IsBoolVariable
I want if IsBoolVariable property is true then I want to set the IsEnabled property to false AND when IsBoolVariable property is false then I want to set the IsEnabled property to true.
Is it possible to apply not(!) operato...