Hello
I have a grid in which I show the data contained in my ViewModel. The validation is done with the IDataErrorInfo on each single row.
So every time that a row is added/updated the validation is called on that row.
I would like to validate all the data contained on the grid when a single row is updated because the rows are interdep...
Hi,
Recently our WPF/Entity Framework 4.0 application has become unstable after we began using backgroundworkers in order to load data from the entity. We were doing so in order to have a 'Please Wait'-spinner graphic running while the BG worker retrieved data from the database, but we began experiencing numerous EF-related connection i...
I've been given the task of coming up to speed, at least at a basic level, with WPF. I'm going through the WPF 4 Unleashed book. The first part of the book is going through XAML.
My questions are these:
Do people really design their forms using pure XAML (manually creating XAML code)? The only thing I can think of that might be more ...
I have a dockpanel that I dynamically fill using an ItemsControl to populate the panel. The dockpanel needs the last child from the itemscontrol list to fill the rest of the panel, but it doesn't seem to happen if I populate it in this fashion... what can I do to get that last item to expand?
snippet of how I have it set up: (note I se...
Im running a console app that loads a dll and calls a method from that dll that creates a WPF form. So I'm just calling to Program.Execute() method and it does all the creation of the form. All reflection business goes well, but the form does not appear.
I've been told that this is because a console app does not have a windows message ...
i have a memory card game where i want on clicking on a button to bind the prorty button background to
this is what i am doing:
<Button
Name="btn"
Click="Button_Click"
DataContext="{Binding}"
Height="65" Width="79"
Background="Black"/>
<DataTemplate.Triggers>
<Trigger SourceName="btn" Property="IsMouseCaptured" Value="Tru...
Lets consider following example, I have "Document" object which contains collection of "Person" objects and each "Person" object has collection of "Address" objects. When one of the "Address" object changes I need to call server-side method to calculate optimal path between all addresses of a person(whose "Address" was changed) and updat...
Hello,
Im making a touch screen application, however, it should move to the touch-enabled screen as soon as it starts up, even when it is the secondary screen, instead of the regular primary screen. This needs to be dynamic, so it shows up on the primary screen on a computer that has that as the touch screen.
I have searched everywhere,...
I have ListBox. ItemsSource of this control is binded to ObservableCollection. I want to measure time which starts when I changed ObservableCollection and ends when user saw updated content in the ListBox.
The main problem here is how to determine this moment when control is rendered. I need to do it in the code to write measured time i...
Hello there... I have wandered into a WPF application project and have made some good progress, but one thing I am finding is that the code-behind page is now getting longer and longer... since there is only one XAML page to the whole application, the code-behind page that really just takes care of the event handlers and programmatically...
I have created a test project to test my WPF project.
One of my methods needs to read from a file, which is copied into the bin folder
C:\..\ProjectName\Bin\Debug\
when compiling. The method works fine, but when running the unitTest it searches for the file in
C:\..\ProjectName\TestResult\UserName_computerName-Date\Out\
How can I ...
I've been having some trouble getting a listbox to correctly bind to a collection.
I'll give the framework code, then explain what I want it to do.
XAML Markup:
<ListBox DataContext="{Binding Foos, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
ItemsSource="{Binding}" IsSynchronizedWithCurrentItem="True"
...
I have the following xaml inside a text box element that is part of a combo box item template. The combobox's items source is set to a list of objects that have a boolean property AcceptsInput everything works great but I can't get this trigger to fire do I have to do something else.
<TextBox.Style>
<Style TargetType="TextBox">
...
Hello! I am developing an application using VS 2010 and WPF...
I need to put a simple 2 line 2D line chart...
However the other developer used WPF toolkit but it didnt work at clients machine...
The grid of the chart was badly disorted (not straight lines!) in windows XP! but running other versions of windows was ok.
I am wondering what...
I inserted InkCanvas in my WPF Window. When I start to erase with eraser on my pen, inkCanvas automatically changes editing mode to EraseByStroke. But when I use select with pen (button on the side) he can not figure that out and remains on Ink mode. Can I do this by my self (switching mode between Ink and Select) with some Event or some...
I am trying to implement my first WPF application using an MVVM design pattern.
I created an application that is databinding to an ObservableCollection<>. The application renders fine, but I expect the datagrid to re-sort the rows when I click on the column headers.
I've researched posts that said:
The data source has to implement IEn...
Hi,
I am following wpf/mvvm method. I need to have a tab control...with multiple rows..i mean parent/child rows. When user click on a tab, all child tabs under that should be displayed...but only the page under one child tab should be loaded.
Can anyone help me regarding this please?
...
Hi there, can anyone please help to shed me some light on my question in above Title field?
Basically, I am using the MenuItem controltemplate sample code from MSDN and want to customize its layout to achieve my application need. However, since I used the controltemplates, the default separator is overwritten by the new separator style....
I have added a usercontrol to my project like this:
Public Sub clickAutoDrillLeft(ByVal sender as Object, ByVal e as System.Windows.RoutedEventArgs)
Dim LSliderItem as New TriplexAmpsControl
me.LeftSlider.Items.Add(LSliderItem)
End sub
The "LSliderIn" object is an items control, and the "TriplexAmpsControl" is a userc...
I know there is Row.Items.Refresh() which I assume will refresh the whole DataGrid. Is there a method to refresh a specific row only?
...