Questions tagged [wpf-4.0]

Version 4.0 of the Windows Presentation Foundation (WPF).

New and enhanced features in WPF 4:

  • New Controls
  • Visual State Manager
  • Touch and Manipulation
  • Graphics and Animations
  • Text Binding
  • XAML Browser Applications
  • WPF and Windows
  • WPF and Silverlight Designer
423 questions
0
votes
0 answers

Communication between multiple view-models using MVVM & Prism 4.0

I am trying to identify the best appraoch for multiple view-models communication mechanism (eg: View-Model A & View Model B are loosely coupled one. Now I want to pass one value to my View Model B from A. I don't want to use EvenAggregator and the…
AProgrammer
  • 158
  • 3
  • 13
0
votes
1 answer

Border Styling applied to all the child elements recursively

I am new to WPF and need your help in resolving my styling issue. I have applied border styling to GRID as below
Jasti
  • 927
  • 5
  • 14
0
votes
1 answer

DataGrid with dynamic columns and rows

I have requirement where I have to show a tree view with list of tables and if user selects any table then it should show a grid with list of columns & rows should have a DataGridCheckboxColumns, and user can edit the checkboxcolumns. Currently I am…
user1095239
  • 183
  • 1
  • 3
  • 8
0
votes
3 answers

Two way binding exception for dynamic columns on the WPF DataGrid when trying to edit

hi I have the following code to generate dynamic columns.
WPFKK
  • 1,419
  • 3
  • 20
  • 42
0
votes
1 answer

storing connection string information for Multiple SQL Server Database in WPF

I have a wpf application backed up by Entity Framework code first. The application allows user to create new databases and work on them using wpf screens. The creation of a new database is pretty straight forward in Entity Framework code first and…
Jatin
  • 4,023
  • 10
  • 60
  • 107
0
votes
1 answer

Unable to add two UserControls in the same view

I have a List View in which there are two Child Views. One is the Display View and another is Edit View. Here is how I have defined the List (Parent) view. Note that I want the two child UserControl's to occupy different space in the…
Jatin
  • 4,023
  • 10
  • 60
  • 107
0
votes
1 answer

wpf datagrid - Datagrid not getting refreshed when items are removed from ObservableCollection

I have an ObservableCollection defined as follows private ObservableCollection _relayConfigs; public ObservableCollection RelayConfigs { get {return _relayConfigs;} set { _relayConfigs = value; } } This is bound…
Jatin
  • 4,023
  • 10
  • 60
  • 107
0
votes
1 answer

How to draw an animated chart in WPF

In my WPF application, I need to draw a line chart which draws a line with an animation. The best solution I've found yet, is to use Devexpress tool which provide all what I need and much more but it's quite expensive and I guess it won't fit my…
Bruno
  • 21
  • 1
  • 6
0
votes
2 answers

WPF Nullable and class binding

I have a int? and string properties in my model and this cannot be changed (I cannot split this properties into pairs of two separate properties, for instance). I want to bind these properties to Checkbox and TextBox. So if CheckBox is not checked…
adontz
  • 1,428
  • 16
  • 36
0
votes
0 answers

DataGrid horizontal scrollbar disabled

I have WPF DataGrid with ItemsSource bound to ICollectionView implementation. Collection is full of items before DataGrid is even instantiated. All columns within DataGrid are of DataGridTemplateColumn type. All columns have explicitly specified…
adontz
  • 1,428
  • 16
  • 36
0
votes
1 answer

Global style in a separate assembly

For my application themes, I created a separate class library MyApp.Themes.dll. In the root folder of this library I have Standard.xaml:
synergetic
  • 7,756
  • 8
  • 65
  • 106
0
votes
1 answer

In WPF 4.0: How to render to a (PNG) bitmap as good as to the window?

I'm exporting my WPF (4.0) visuals (vector diagrams) to some image formats in the next way... public void ExportImageTo(BitmapEncoder Encoder, Stream ExportStream, Visual SourceVisual, int Width, int Height) { var Result = new…
Néstor Sánchez A.
  • 3,848
  • 10
  • 44
  • 68
0
votes
1 answer

How to highlight edited cell in a datagrid

How can I highlight a cell in DataGrid that has been edited? XAML solution through some style using triggers is preferable. But if not possible, then a code behind approach would be good enough. I am not posting any code as I did not have any break…
Shakti Prakash Singh
  • 2,414
  • 5
  • 35
  • 59
0
votes
1 answer

WPF ProgressBar not updating its progress status

I am using a wpf UserControl to replace text in files in selected drawing files of AutoCAD. The wpf control is to display a status (ProgressBar) indicating the number of files processed at any given time. So I put up the following code, but the…
Jatin
  • 4,023
  • 10
  • 60
  • 107
0
votes
1 answer

Cascading two comboboxes - Child Combobox not selecting current value

Issue Summary When using 2 cascading comboboxes, the child combobox does not select the current item, instead an empty item (I don't know where it comes from!) gets selected. Issue Details I have two comboboxes declared in xaml as given below. The…
Jatin
  • 4,023
  • 10
  • 60
  • 107