Windows Presentation Foundation, or WPF, is a subsystem for rendering user interfaces in Windows-based applications.
0
votes
0answers
6 views
Would a single resource file referenced in a window and at the app level have only one instance?
I have loose form of MVVM where I have a C# class containing the resource data that my XAML is bound to. The file is referenced in two places, the MainWindow.xaml file and at the application level in ...
0
votes
1answer
12 views
Event handler based on absolute screen mouse position after dragging a window and releasing mouse button in WPF
The goal is to have an event fire based on the mouse position when I finish dragging the window. The event in question is a function that "docks" the window to the appropriate edge of the screen it ...
0
votes
1answer
29 views
Restore value in NumericUpDown
I have a NumericUpDown. When the user changes its value, I show a MessageBox to confirm. If the user selected Yes, all is well. If the user selected No, I want to restore the original value.
I have ...
0
votes
0answers
16 views
How To Display Multiple Rows in XamGrid
I am Using ListBox Control to Show Items And When I double Cilck The Item means Thier particular item fields will Display in xamgrid and the problem is when i Selected item means its showing but I ...
-1
votes
1answer
45 views
how can i set length of entered text in a combobox
I have a very simple question - how can I set comboBox's entered text length? That it would not be longer, then 20, for example.
Thanx
0
votes
0answers
17 views
how does a custom control in a usercontrol find the parent of the usercontrol in WPF?
I have a custom control that is used in a usercontrol, and this usercontrol is hosted in a MainUsercontrol.
now, when an event occurs in the custom control, the selected tab in the MainUsercontrol ...
0
votes
0answers
15 views
IApplicationService in WPF
I'm new to WPF and I'm actually migrating a project from Silverlight to WPF 4.0 and my problem is that I can't find the equivalence for IApplicationService and IApplicationLifetimeAware.
The library ...
0
votes
0answers
43 views
How to add a right click context menu to the tray icon
I have a C# WPF application that has an icon in the system tray. I am currently using WPF NotifyIcon,The problem is that .NET 4.5 does not allow a WPF ContextMenu object to appear over the top of the ...
0
votes
1answer
22 views
Multiple level bindings with DataTemplate based on type
I'm trying to make a complicated template for ListBox item, but some bindings not working or "Two-way binding requires Path or XPath." exception occurred.
I have a ListBox binding on ...
0
votes
2answers
58 views
ShowDialog in WPF
When I make two calls for ShowDialog in WPF the first window open normally, after closing it the second one doesn't appear.
<Application
x:Class="Test.App"
...
0
votes
1answer
39 views
Access to ListView Grid Cell Value
I've a simple listview with a gridview and I'm trying to get values of certain column.
My XAML
<ListView SelectionMode="Single" Margin="10,10,0,0" x:Name="activos" Height="211" ...
2
votes
0answers
26 views
IE10 - how to prevent “Your current security settings do not allow this file to be downloaded” popup from appearing?
I’m using wpf WebBrowser control (System.Windows.Controls) and I need to prevent users from performing various actions like downloading files or printing pages. I have disabled file download option ...
0
votes
2answers
13 views
Issue: Activating other window on closed event
I have some window, which can have many instances opened in single application.
I track all of them in a static dictionary.
The window must be closed when escape pressed if the window is active. And ...
0
votes
0answers
27 views
TabControl - Making a TabItem appear on top of the Content
I have a custom style for a TabControl. As part of the style I want the selected TabItem to appear on top of the Content. Currently the TabPanel has no ZIndex set so it appears underneath the ...
0
votes
1answer
38 views
Get current Text of editable ComboBox in .NET 4
in .NET 3.5 I had a implementation which gets the current edited Text of a comboBox like this:
dependencyObject.GetValue(ComboBox.TextProperty);
everything worked fine and the value was the edited ...