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
1 answer

Assigning individual View Models to Nested Views?

I have a MainView which has an associated MainViewModel in my WPF application, assigned via its contructor. App > start up uri > MainWindow.xaml public MainWindow() { InitializeComponent(); var viewModel = new…
IbrarMumtaz
  • 4,235
  • 7
  • 44
  • 63
0
votes
1 answer

Prism - strategy for removing newly added record from master view

I have a typical master-detail scenario. User can click "Add New" in the master view and enter the details in the detail view. So for example lets say I have list of ObservableCollection of Product. When the user clicks "Add New", I add a new…
Jatin
  • 4,023
  • 10
  • 60
  • 107
0
votes
1 answer

DataTrigger on DataGridTextColumn

I am trying to attach a datatrigger on one of my combobox element. The trigger should read the attached property of the DataGridTextColumn (combobox's ancestor) and take decision based on that. Now the problem is that the DataGridTextColumn isn't…
Jatin
  • 4,023
  • 10
  • 60
  • 107
0
votes
1 answer

Trigger on attached property of DataGridTextColumn

I am trying to define a custom attached property on DataGridTextColumn and writing a DataTrigger against it in my xaml file. Here is how the attached property (FilterDisplayStyle) is defined in my class. //Dependency Property whether Column Filter…
Jatin
  • 4,023
  • 10
  • 60
  • 107
-1
votes
1 answer

Create log messages in wpf

I want my WPF app to log unexpected errors to a text file that we can look at. Is there any way to do this on our own? an is there any opensource or third party tolls to use? if yes please let me know.
user2408987
  • 79
  • 2
  • 11
-1
votes
1 answer

Using Prompts in Microsoft Ribbon Controls WPF

I'm writing a WPF application with uses the Microsoft ribbon from the System.Windows.Controls.Ribbon namespace. I'm trying to follow Microsoft's guidelines as closely as possible, but I noticed a few features they mention which I can't seem to find.…
Keith Stein
  • 6,235
  • 4
  • 17
  • 36
-1
votes
2 answers

Disadvantages of using .Net 4.0 past its end of support date (12/01/2016)?

As a bit of background I work on a C# WPF .Net 4.0 application which is deployed to several hundred machines running POSReady 2009. POSReady 2009 is still in support until April 2019 but the highest framework version it supports is 4.0 which will be…
user1069816
  • 2,763
  • 2
  • 26
  • 43
-1
votes
1 answer

Get event args in view model of a wpf program

I have a program where I need to access the characters typed from the keyboard into the view model. I can easily obtain the KeyEventArgs in the code behind using KeyUp method, but how do I access that in the ViewModel? Please help.
nan
  • 585
  • 2
  • 9
  • 22
-1
votes
1 answer

Binding a generic list to listview in wpf

Lets say I have the following classes. My intention is to bind the List to list view. This is just a sample code. Please help. Class Data { public string name {get;set;} public DateTime date{get;set;} } Class Items { //Code to get items from…
user2779848
  • 39
  • 2
  • 9
-1
votes
1 answer

WPF Multiline TextBox : find and highlight the content in the textbox

How to find and highlight the search result in the WPF multiline text box?
user2956667
  • 61
  • 2
  • 7
-1
votes
1 answer

Kill a process using a handle Win32

Hi I have a simple requirement to kill a process or get a process using the Handle. I tried getting the process using handle but i don't see any good API that does that. Alternately I tried getting all active processes by Process.GetProcesses()…
WPFKK
  • 1,419
  • 3
  • 20
  • 42
-1
votes
1 answer

Scintilla : Copying from scintilla and pasting in notepad loses new line

I am using Scintilla control in my WPF application. When i open the application and type something in the Scintilla control, then copy some text from the control (without saving it in an object), and paste it in Notepad, it is working fine. Eg: I…
-1
votes
1 answer

DependencyProperty to ViewModel

I have two DependencyProperties TBLocation & TBBroadcastLocation in MyUserControl. For TBLocation I get information from another element called MyTextBox. When TBLocation gets set, I set TBBroadcastLocation with TBLocation's Point information. And…
John
  • 693
  • 1
  • 12
  • 37
-2
votes
1 answer

Is there any change in the way databinding is implemented in WPF 4.0?

I have used data binding in my project in earlier version of WPF. I have used DataGrid from wpf toolkit and used DataGridTextColumn and DataGridTemplateColumn with DatePicker and ComboBox inside it to update particular cell's value. I have bound it…
viky
  • 17,275
  • 13
  • 71
  • 90
-2
votes
1 answer

How to trigger one button's MouseOver depending on another button's MouseEnter?

I am working in wpf. I have a problem for triggering mouse over. I have two buttons Button A and Button B. I need to trigger the Button B's MouseOver while i entered the mouse on Button B. The solution is either C# or XAML. I didnt have any idea…
Karthik
  • 31
  • 1
  • 1
  • 7
1 2 3
28
29