Hello. This function has many applications. I have a TextBox control. How to display keys that the user pressed. For example pressed CTRL and z in the TextBox control should appear "Ctrl + Z"? It's WPF application. Thanks.
Now i'm trying like this:
private void txtHotKey_PreviewKeyUp(object sender, KeyEventArgs e)
{
...
Is there any straightforward way of telling the whole WPF application to react to Escape key presses by attempting to close the currently focused widow? It is not a great bother to manually setup the command- and input bindings but I wonder if repeating this XAML in all windows is the most elegant approach?
<Window.CommandBindings>
...
I would like to generate a small Preview Image of the fist page of a FlowDocument (imagine a Thumbnail View of a collection of FlowDocuments). Can anyone recommend a good approach for doing this?
...
Hello,
What sort of diagram would create for a CustomControl to show how it works?
I have to show my boss a theoretical sample.
...
Hello
in my MVVM application I have a list of element implementing IDataErrorInfo and INotifyPropertyChanged
the view validate the VM objects when a propertychanged event is raised.
the problem is that the validation result depends not only by the internal state of the object but also by the "enviroment" that is the other objects belo...
Hello,
I have implemented grouping on a list box, where I need to show a summary row for each group. For summary row, I called a converter to give count variables to show. Code is working fine with a issue. Converter is calling for each item instead of one time for each group.
Is there any way to call the converter only once for each g...
how can i change a button template dinamiclly
i have a combobox where by changing his selected value i want to change a button template
this is what i have been trying to do :
<Grid x:Name="LayoutRoot">
...
I dont find any way to do it
Someone can help me here ?
...
I am developing an application and I must do it in WPF and use .NET 3.5. The problem is that I can't use MSCharts for 3.5 because that would require XP installations to install SP3, something that they don't want.
The WPF toolkit was buggy on their machines, so is there any other solution or I should start just drawing lines?
...
I am trying to implement a simple WPF data analysis application using the MVVM design pattern, in which one can use several different methods to analyse some data (loaded from files).
In the first screen, the user should be able to choose the method he likes to employ. After he has done that, and loaded the data, the area previously occ...
I had a few questions on WPF & silverlight?
When to use WPF? Some examples on
real time projects where WPF is used
When to use silverlight? some examples of real time projects where silverlight is used
What is the difference between
them?
Can WPF and Silverlight be used together?
How do WPF and silverlight differ from traditional...
I have some data I need to present to a user in a very specific format and I want something that looks like this:
+- Window 1 --------------------------+ +- Window 2 ----------+
| This is some text that is being | | Yet more stuff |
| output for the user. | | |
| ...
Can I count on the Common File Dialogs eg. OpenFileDialog, SaveFileDialog and their properties eg. Filter, CheckFileExists, CheckPathExists to give me a valid file? Or must I check again?
I guess if I were to check again, I will use System.IO.Path.GetExtension? I wonder what happens if an invalid file is provided (eg. rename a .txt to ....
What would be the application development process for WPF applications and silverlight application?
Like how many tiers the application is divided into and how they communicate with each other. And what steps are followed during development like design , then business logic layer.
How the data base is accessed can Linq be used or data s...
I have two grids with three rows each. The first and last row of each grid has a fixed height while the middle rows have auto height and share their height using SharedSizeGroup.
First, the content of the right grid determines the height of the size group. When the content of the right grid shrinks so that the content of the left grid d...
Hi
Is there any way to retrive starting point and endpoing point of pathfigure ??
I was trying to use this method
GetPointAtFractionLength
but sometimes (I don't know why) this method throws an exception
...
I am trying to upload images to ImageShack using the API. I think they require the form to be multipart/form-data. I tried to do the below ...
var wc = new WebClient();
wc.Headers.Add("Content-Type", "multipart/form-data");
...
var fs = new FileStream(@"filepath", FileMode.Open, FileAccess.Read);
byte[] bytes = new byte[fs.Length];
fs.R...
To my disappointment I found out that one of the applications I'm working on renders rather poorly on certain computers. The UI static graphics and text suffer from a severe case of tearing without doing any kind of animations. This makes text unreadable and of course, the graphics look poor.
I've noticed this problem on different comp...
Hi Experts,
I am trying to set focus on my user control using attached property that is exposing a dependency property "IsFocus" in my user control and binding it to a property in my Window. Although this works fine for all controls in the window and the first tab, i am not able to set focus on controls which is on other tabs. I even go...
Is there a command in WFF to close the application from context menu. e.g. the same context menu which you get by right clicking on the title bar on any window.
There all loads of standard commands, but I am struggling to find exit command.
...