Hello, how can I implement a MouseDown event in this object? I already have an object called NamedGridViewColumn that inherits from GridViewColumn and implements a Name attribute, so I want to add a MouseDown event there to. Any idea how? (Preferably in C#)
Thank you.
...
I've dynamically placed a user control on a Canvas as the VisualTree root in a Thumb control. I can move the thumb control correctly, but can only correctly re-size the control while resizing from the east, southeast, and south rectangles defined in the user control.
//Instantiate a new Thumb control to be placed on the canvas.
var myTh...
How to create a custom control which takes a list of UIElements and renders them according to some logic?
Because it will handle a list of UIElements, the best way of adding controls will be the same as for, i.e. ListBox or ComboBox.
<local:SomeControl>
<Button Content="First"/>
<Label Content="Something other"/>
</local:SomeCo...
Our latest project is using WPF for a rich client and we need a graphing tool that makes the best looking graphs that also has the ability to do the following with the graph:
Line Graphs with the ability to
add data points
Hot spots on the graph that allows for interaction
Ability to add new data on the fly
and have the graph auto ref...
Adding item to tab control in VS 2008 WPF app
I am bit of a newbie to WPF. I am using VS 2008 and working with a WPF app.
With the design editor I add a Tab control and then add a new tab. I drop an item like a button onto the the tab control. But instead of actually being in the individual tab the item is almost modal on top of the c...
This is basically implementing search/find in a WPF window or User control.
Let's say you have a WPF window with dynamic readonly text some on textblock, some in a listbox, some in treeview, some in textblocks etc.
The user should be able to type in a search term in a textbox on the top and be able to see it highlighted wherever and in ...
I am looking for a way to populate a single grid using data bindings.
The way I do this at the moment is by using an ItemsControl where each item is represented as a Grid with the columns that I need. The main reason I want a single grid is to make the widths of all columns line up.
Is there way for the Grid panel to be used with It...
I'm currently looking around for control library for some WPF development and the "Telerik RadControls for WPF" certainly look the part although they are very expensive at $999 for a full developer license with support.
My question is, has anyone out there used them in anger on a real project and what has their experience been like? If ...
Am I missing something or is there no documentation of WPF controls?
When I look at MSDN, it says to reference System.Windows.Controls
(http://msdn.microsoft.com/en-us/library/ms752069.aspx), but this is for winforms?
Where can I find the WPF object model?
...
I have a very big problem, with WPF popup control, I can't make it full screen, when I set the height to max size the control accept the value and the rendered height is 75% of the screen resolution
any body can help???
...
How can I different design the text within the TextBox-Element in XAML
Example: I need the first word normal fontweight and the second word bold...
...
I have a WPF application that includes a TreeView. The user adds content to the tree using right click and context menu.
This creates a new TreeViewItem that is added to the tree's ItemCollection.
The problem is that sometimes the new items are not shown, although they were added. If you minimize/maximize the window they suddenly appear...
im trying to recreate a very simple example of a C# project i WPF, its a simple image viewer.. from the sam's teach yourself C#, ive managed to get the open file dialog to open, but how do i set the image path to the image.source control in WPF?
private void SearchBtn_Click(object sender, RoutedEventArgs e)
{
Microsoft.Win32.OpenFi...
I have an control with a mouse down event where Id like to chnage the Image when the image is clicked. But I cant seem to alter ANY of the images properties in the event.
Event
private void Image_MouseDown(object sender, MouseButtonEventArgs e)
{
BitmapImage bitImg = new BitmapImage();
bitImg.BeginInit();
...
Another question related to this one.
I have a List that is the datacontext of my MainWindow. I use that list to populate a ListBox and a ComboBox. When I sort the items, both the ComboBox and the ListView get updated all right. But now I need the combobox to be sorted in a different way than the ListView. I. E. If the object were a Pe...
I would like style my ScrollViewer (background, arrows...)
What is the easiest way to do that?
Has someone a couple of good and simply examples for this?
(the article from sachabarber know it, but for my purposes too complex)
...
I have WPF ListView with GridView view and I want to remove any trace of row highlight.
This useful piece of code can be found in one answer on this site:
<ListView.ItemContainerStyle>
<Style TargetType="{x:Type ListViewItem}">
<Setter Property="Control.Focusable" Value="False"/>
<Style.Triggers>
...
I am now doing an application that shows the HDD usage in the system. For that I want to generate the grid and the controls (like progress bar and labels) dynamically to show the usage. Is there any XAML template available for this purpose?
...
My objective is to display html content in wpf application. I use brwoser control but this always goes on top of window. I search through the net and found a solution to convert the html into a flow document. But my question is how to use the conveted flowdocument in wpf application to show the html content
Please refer the below articl...
So, I'm using a third-part wpf grid control that is hard-coded to only accept certain keystrokes to perform short-cut reactions and one of those is Shift-Tab.
However, my user-base is used to hitting up arrow and down arrow and telling them 'no' isn't an option right now. So my only option I think is to intercept the preview key down an...