wpf-controls

WPF Dockable Windows Like iGoogle

I'm looking for a dockable windows/panel control in the style of iGoogle. All of the ones I have found so far all have a fixed length on the height of your window/panel but I want to be able to have windows of varying length like iGoogle. The best I have found so far has been a control libarary called BlackLight which does not have the ...

WPF - Listview Databound Column Width Problem.

Given below xaml using .Net3.5 - <ListView Name="RawData" AlternationCount="2" ItemsSource="{Binding}" ScrollViewer.VerticalScrollBarVisibility="Visible" Grid.Row="1" Grid.ColumnSpan="4" IsSynchronizedWithCurrentItem="True" sorter...

How to have image and button coloum in ListView in WPF

I have to add two columns in Listview , One columns show different images and another columns is used to show button. It will be great help if anybody provide the any link or example source code. Thanks in advance. ...

Exapander in WPF

I want to create an Expanders that will display different configurations.. like color settings , Mail settings. Let's say there are three expanders ...allign vertically. I want when expander collapse or expand it will shift the next expander. When expander collapse the lower expander will allign next to the uppermost expander.. Like ex...

Office 2010 Look and Feel?

I am getting started on a WPF app whose UI will be modeled rather loosely on Outlook. I would like to emulate the Blue color scheme in the Outlook 2010 beta. Has anyone seen any tutorials or recipes that describe how to style WPF buttons so that they look like Outlook 2010's Task buttons? Those are the ones in the lower-left corner of th...

WPF Custom Control: TemplateBinding to Image

I am creating a WPF custom control, a button with an image and text. I have added two dependency properties to the control, ImagePath and Text, and the control template (in Themes\Generic.xaml) is a simple stack panel that arranges the image and text horizontally. The Text property works fine. But for some reason, the sample image in my...

WPF VisualStudio's WatchList-like control

Hi all! I am implementig a simple interpreter and I am looking for a control to represent my variables in a watch list, just like in Visual Studio (tree structure + table): Do you know any controls for this purpose? If no, give some ideas how it can be implemented. Regards, Lerax ...

WPF: Issue with OverFlow Panel on Toolbar control

Hi pals, I'm having an issue working with the Toolbar control for WPF in Blend 3: I have a Toolbar control that is binded to a collection so that it displays both icons and labels for each one of the actions that users can perform on this application. The issue I'm having is that when I run the application the buttons are displayed ins...

WPF Control Puzzle

I am new to WPF and am wondering how to best achieve a master detail grid as shown below. The user will be able to press the right/left arrow keys to open/close Parents or click on the icon to achieve the same result. The data structure will be a parent/child 1 level deep. How would I go about this? -------------------------------...

How to convert WPF Application to WPF UserControl?

I am converting a WPF application to a similar WPF User Control. And the user control is hosted on WinForm using ElementHost. public partial class UserControl1:UserControl // public partial class Window1 : Window { private void UserControl_Loaded(object sender, RoutedEventArgs e) // Window_Loaded(object sender, RoutedEventArgs e) ...

How do I do this in xaml?

I want to do this in xaml with a trigger, how do I do it? If ListBox1.SelectedIndex > -1 Then Border1.Visibility = Windows.Visibility.Visible Else Border1.Visibility = Windows.Visibility.Hidden End If This XAML code does NOT work. 'SelectedIndex' member is not valid because it does not have a qualifying typ...

Set property category for WPF custom control?

In WinForms, I could add a [Category] attribute to a custom control property to specify which property category should contain the property. How do I do that in WPF? Thanks ...

WPF relative path problem

I have created a custom TaskButton control that takes an image and text. The properties are set like this: <custom:TaskButton Text="Calendar" ImagePath="Images/calendar.png" ... /> My custom control class implements Text and ImagePath properties, and the control template for the custom control (in Themes\Generic.xaml) sets its content...

WPF ListView Data Binding?

I have a collection of objects that I wish to bind to a ListView control. In some of the objects, the value of a property that will be displayed in a column in the ListView is an empty string (""). I want to replace the empty string ("") with "n/a" automatically using binding. How can I accomplish this? ...

Popup disappears when combobox popup gets opened

I added a ComboBox inside my popup window. On expanding the combobox, the popup window disappears even with the StaysOpen property set to true. Any idea how to prevent this? ...

How do I get ListBox, Canvas and Thumb to work together?

How do I get ListBox, Canvas and Thumb to work together? I am attempting to reuse the selection logic of ListBox together with a Canvas that contains draggable Thumbs. Unfortunately the Thumb appears to handle the mouse events so that clicking on the Thumb doesn't make the item selected. I was hoping these elements could be made to wo...

WPF Circle Packing Algorithm / Layout Control

Hi, I am looking for help on Circle Packing in WPF. Similar to the following: http://www.cricketschirping.com/weblog/2007/06/18/processing-sketch-circle-packing/ Does anyone known of a circle packing algorithm for WPF? My ideal scenario is to be able to create something similar to the IBM Many Eyes Bubble Visualization. Any help o...

Wpf Custom Control problem

I have strange problem with WPF custom control that I have made. When I drag and drop WPF custom control from toolbox to design surface I only see one border without any controls in it... I have another same WPF custom control project with same custom control and same code and when I reference that project everything works fine. I have ...

Tool for automated testing of WPF Application

I am looking for an automated testing tool for our WPF application. I've tried QTP and am not interested in its price. I am looking for a lower priced solution with some good reviews. Thanks. ...

Align items in a stack panel?

I was wondering if I can have 2 controls in a horizontal-oriented StackPanel so that the right item should be docked to the right side of the StackPanel. I tried the following but it didn't work: <StackPanel Orientation="Horizontal"> <TextBlock>Left</TextBlock> <Button Width="30" HorizontalAlignment="Right">Right<Button> </Stac...