I'm really hoping someone can help me out here. I have a DataGrid in my program that has a checkbox column. The ItemsSource for the DataGrid is a DataSet loaded programmatically. When I select a couple of items in the DataGrid and then scroll it, I get some very odd behavior. For example, when I check two of the CheckBoxes, it tells me t...
I'm building an application that displays a hierarchy of Node objects. Each node has a collection of Field objects, plus a Children property of type ObservableCollection<Node>.
I've created a user control to display the Node objects. This control is a HeaderedItemsControl whose header lays out all of the Field objects, and whose Items...
I've Got a Window with this basic layout:
<Window
MinHeight="72" MaxHeight="400" Height="Auto"
MinWidth="460" MaxWidth="460">
<DockPanel>
<!-- Footer -->
<StackPanel DockPanel.Dock="Bottom">
...
</StackPanel>
<Grid>
<Grid.RowDefinitions>
<RowDefinition ...
Hello,
I have a WPF app that I just did some major refactoring on and was wondering if there was a way to make it show me all the Resources that can't be resolved when the app is running ?
I'm trying to find all the missing references but am having a hard time.
Thanks,
Raul
...
I have a style for a ComboBox that I've been using for awhile, but I wanted to tweak the color of the drop down arrow. To do this, I just took the default template for the comboBox and pasted it into my style, and changed the arrow color fill.
It looks perfect - until I hit the drop down! Nothing happens. If I cut the template from the ...
I have been playing with the new Microsoft Ribbon for WPF and looking at the tutorials published in the WPF Team Blog. The tutorial for extended tool tips shows this screen shot:
Unfortunately, the tutorial doesn't show the markup to create that tool tip.
I've got a couple of questions about the screen shot that I am hoping someone c...
I was wondeirng if its possible to turn off the treeview's scrollviewer easily. I have a user controil with a grid and one of the cells has a few treeviews inside of a stackpanel. the height of the control sizes automatically depending on the height of the treeviews, so there is no need for a scrollbar. The problem is i have a bunch of...
I saw this Silverlight application that works inside the browser but if you clicked Install it will be downloaded on your machine and runs as Desktop Application how this can be done !!
http://os75.com/apps/Translator.html
...
Am using the below code to create polygon. i just want to fill this polygon surface with black dots, how i can do that, then i want to convert this polygon to bitmap or in memory stream, how to do this??
// Create a blue and a black Brush
SolidColorBrush yellowBrush = new SolidColorBrush();
yellowBrush.Color = Colors.Tr...
Hi,
As far as I know, XAML is only used in WPF and Silverlight, isn't it?
Thanks.
...
Hi all,
I have a viewmodel which implement INotifyPropertyChanged. On this viewModel is a property called SubGroupingView. This property is bound to the selected item of a combo box. When i change the combo box, the source property is being updated fine, but when i change the source property or when the control is initialized, the combob...
how to use orientation in scroll viewer like scrollbar
...
The control template is for a custom control.
I have seen this question:
http://stackoverflow.com/questions/619798/why-does-a-wpf-popup-close-when-its-background-area-is-clicked
However I could not figure out how to bind a command to an event in the control template. I tried this:
<Popup
Name="Popup"
...
Hi,
I want to use hyperlink in wpf xaml. Whenever mouse comes over the hyperlink, it should show image related to that hyperlink and when mouse gets away the image should disappear. How to go about this using bindings. I am using mvvm light.
Kindly Suggest.
Thanks
...
Hello,
I have a DrawingGroup with nested children created from SVG files and want to render/convert this a corresponding nested DrawingVisual/Visual.
A simple rendering process as follows...
DrawingGroup group; // assuming root group of diagrams
DrawingVisual visual = new DrawingVisual();
visual.DrawDrawing(group);
will correctly ren...
I tried to use ILMerge on my WPF-based project (VS2010, Net4.0) but I couldn't make the merged executable to run. So I created two very simply projects
just a console application which prints out hello world
wpf application which shows window with hello world label
After compiling each project I get single executable file (so merging...
This is my main table structure:
The expertise column is a many to many relationship with another table that has a list of available languages. I wanted to have a flattened structure to display all the languages that a person expertise's, so I wrote a stored procedure that stringifies those multiple expertises to fit for each user.
...
I am using CollectionViewSource to filter the records displayed in a ListBox. The xaml follows.
<Window x:Class="WPFStarter.ListBoxItemsFilter.ListBoxFilterUsingCollectionViewSource"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Name=...
I need to get the exact DataGridColumn that is associated with the DataGridColumnHeader. So, basically: fill in the gaps in the following code: :)
DataGridColumnHeader myHeader; // this is a given value
DataGridColumn myColumn = SomeCoolMethod(myHeader);
public DataGridColumn SomeCoolMethod(DataGridColumnHeader header)
{
// ???
}
...
The question is pretty much self-explanatory.
...