I have an abstract UserControl that I want to show a ToolTip on. This ToolTip should be different based on the Type of the DataContext which is defined in the derived UserControls.
Is there a way to define a different ToolTip for each type in the base class? If not, how can I set this ToolTip in the derived UserControl?
Here is how I ...
I have to make speech recogintion application that should work on MAC and PC, i have a idea about SAPI but it will for only for PC not for MAC.
Is there any other API or frame work i can use to achieve this, programing language not bar for me.
...
I'm very new to MVVM and even WPF to some degree so bear with me...
I've got a MVVM application that has a main window, containing a viewmodel instance of different types depending on application state. One of these viewmodels is an options screen which contains a button to restart the application and log into the database as a differe...
I was looking through Josh Smith's MVVM Example and I noticed he defines a basic view model called CommandViewModel, and looking through his demo app, I just can't see the point of it.
...
I'm trying to display basic syntax highlighting in a WPF RichTextBox. It mostly works, but the rendering performance is awful.
First I naively tried:
/// <summary>
/// Main event handler for syntax highlighting.
/// </summary>
private void XmlChanged(object sender, TextChangedEventArgs e)
{
VM.Dirty = true;
if (VM.Pretty)
...
I would like to enable text wrapping on all column headers of my DataGrid, without disabling the other default header functionality, such as column resizing, sort direction indicator, etc. Is there a way to do this?
...
I'm learning binding in WPF. I can get binding to work when 1) the text of one control goes directly to the text field of another and 2) when I manually configure binding in the code-behind file.
In the first scenario, I use purely XAML to configure the binding. Is it possible to access the source variable from XAML in the code-behi...
hi there
i am developing a wpf app. i have a database like this.
i have three columns(id,name,profession).listbox shows name column.
When the user clicks the item in listbox, i wanna show his/her profession
in textblock.
listbox works well. i have bounded it to a dataview. but how can i show his/her profession in textblock?
private ...
Hi,
I've got a method that transforms a number of cylinders. If I run the method a second time it transforms the cylinders from their original position rather than their new position.
Is there anyway of 'applying' the transformation so that it changes the underlying values of the cylinders so that I can re-transform from the new val...
I wanted to know if it was possible to create a control from another control and which this new control could process certain events.
For example, lets say we have a Button that once it is clicked on will create a ComboBox. Could this new ComboBox be capable of processing a certain event such as a SelectionChanged event?
...
I have 3 listviews in a wpf grid column, one each for customers, products, and vendors. They each get data from LINQs to separate SS2005 queries in the same db. The lists are populated when a user enters text in a textbox. The LINQ query code uses as startswith() function that reads the user entry and returns a smaller list to the listvi...
Hi,
I want to handle hotkeys in my application. Writing a keybinding requires a command, which is fine, but it's not clear to me what is the minimum amount of work needed to implement that command. All the examples I seem to find are over-engineered, unclear or assume I'm using the MVVM pattern which I am not.
So what are the basics t...
Duplicate:
Is it possible to achieve the “Aero Glass” look on XP?
If I use Winforms and I write a win32 application with it, I can see the Aero glass effects in Vista but not in XP.
How could I achieve the same look across different platforms? I am using WPF.
As a side question, did Microsoft write the Aero glass effects using ...
Hello,
I like to develop many tiny WPF applications. Usually I use the WPF Futures' themes, but they're far from perfect (by example, may of them doesn't implement styles for the tabs). Each time I have to spend a lot of time on the the colors, gradients, tiny details (being inspired by others WPF apps)... in order to make the general a...
I'm working with the Adorner model with drag and drop, and I'm instantiating a DataTemplate through a ContentPresenter and adding it to the Adorner layer of my control/window. The problem I have is I need to register mouse events on the root visual element of the instantiated DataTemplate so I can change state and detect the drop in my B...
WPF XAML, I have a custom control I have written that wraps lookups.
In typical government fashion, they have a lookup table for all possible lookups.
My custom control will throw a popup overlay asking them to select from the items in the list.
My problems relate specifically to databinding from my calling form to my control property to...
Hey guys
I have an observable collection of items, where each item has a name and a "group name" (both strings).
The tricky part is, in XAML, I need to style this collection such that all items with the same group name are listed next to each other, and the group name is shown at the top.
I have designed user controls for the layout o...
Is there a way in WPF when two shape objects overlap each other that the overlapping portions of the object get painted in a different brush?
Thank you,
Adam
...
I'm trying to write a WPF application for displaying images from a selection.
I want to display all of the available images in a banner along the top of the window, and display the main selected image in the main window for further processing.
If I wanted the list on the Left of the window, displaying the images vertically, I can do thi...
I need advice and clarification please. I'm currently working on a monitor app that needs to show the contents of a database in a datagrid (I'm using the WPFToolkit grid btw). The grid binds to a table in my ADO.NET DataSet and it works fine. If I modify the DataSet through a button in my UI the grid updates and everyone is happy (bindin...