wpf

How can I make WPFToolkit DatePicker highlight only the selected date?

I am using the DatePicker from WPFToolkit, but since the current date and the last/first day of the month is highlighted as well, it is confusing which date is actually selected. How can I make it so nothing is highlighted in the calendar except the selected date? ...

Align / scoll issues in XAML Listbox

Apologies for the ambiguous title. I want the items of my listbox to display similar to a photo gallery - imagine Thumbnail view on Windows File Explorer. I have a listbox defined as so <ListBox ItemsSource="{Binding RUFView}" x:Name="RUFs" Margin="228,34,12,12" Background="Transparent" BorderBrush="#007F9DB9"> <ListBox.ItemsPanel...

Treeview in viewbox wpf

Just wondering if it is possible to display treeview in a viewbox. Thanks ...

Resrouce consumption in WPF

Hello, I'm looking at WPF to develop the front-end of a proposed application where I work and really I'm here just looking for other peoples experiences of how memory intensive WPF applications are in general? I've tried a few openly avaliable applications and to me they seem pretty memory intensive, so what are your experiences, with ...

Where can I find System.Windows.Controls.dll and System.Windows.Controls.Data.dll

I'm using WPF, VS2010 and VS2008 Are these libraries available with Silverlight only? Is PresentationFramework.dll == System.Windows.Controls.dll? ...

do you recommend wpf for POS

is wpf (technology) based interface is good for Point of Sale application? my fears are wpf is immature, slow, eat memory too much, processor clocks in short required good machines which i think POS terminal doesn't has... plus point i believe are cool and powerful interface, good for win 7 and touch screen based but i dont' know how...

wpf textblock autosize/layout in stackpanel

I have the following stack panel <StackPanel> <TextBlock Text="{Binding AddressLine1}" /> <TextBlock Text="{Binding AddressLine2}" /> <TextBlock Text="{Binding AddressLine3}" /> <TextBlock Text="{Binding AddressLine4}" /> </StackPanel> and my AddressLine2 string is null on the bound object. My stack pane...

WPF App hosting/executing Ruby code via IronRuby

Hey folks, hoping you can help me get started with IronRuby. I have several Ruby scripts that I want to execute from my WPF Application (due to the use of several RMagick methods I can't get natively) and I can't find any good info on what references I need in the project. I've installed IronRuby and tried adding Microsoft.Scripting an...

How can I get my ScrollViewer to scroll the view area?

I have a Grid inside a ScrollViewer inside a Border inside a StackPanel inside a Window. The ScrollViewer puts a scrollbar on the right, but it is not scrollable. How can I get the ScrollViewer to make its contents scrollable? <Window x:Class="TestScroll234343.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presenta...

WPF - Binding to an ItemsSource AND SelectedIndex throws exception?

This code give me an Argument out of Range exception. When I remove the binding to the SelectedIndex, the combobox is populated just fine and no exception is thrown. Any Idea what I am doing wrong? Is this (for some reason) not possible? public class RuleMap<T> : INotifyPropertyChanged { public ObservableCollection<string...

wpf-DragDrop in a listbox with groupstyle

I am using the control library from http://code.google.com/p/gong-wpf-dragdrop/successfully for my listbox dragging operation.But there is an issue when i drop an item to a listbox with a group style.I have traced that in the DropInfo class the line UiElement item=itemscontrol.GetItemContainerAt(e.GetPosition(itemscontrol)); always r...

Prism/CAL and WIn7 Taskbar Grouped Thumbnails/Preview

So I'm using Prism v2 (CAL) in an app with four separate modules, loaded as tab controls. Works great so far. Quesiton(s): How do I have one grouped taskbar icon in Win7 for each tab, and how do I get 4 taskbar preview windows to display (one showing each tab control's contents, like in IE8)? If it helps, this is how I'm loading my tab ...

Viewport 3D WPF C#

Can you please show how to set and save the background color of the viewport3D. Whenever I save no background is visible only model, I tried the grid but that gets everything in the grid? Any help will do? ...

How can I get images in XAML to display as their actual size?

I have a 27 x 27 pixel image that I am displaying in WPF but it displays larger than the size of the window. How can I get it to display its actual size? XAML: <Window x:Class="TestImage23434.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" ...

binding element focus with an attached property?

Hi guys, I'm trying to bind focus for my control to a property on the view model, like this: public class Focus { public static readonly DependencyProperty HasFocusProperty = DependencyProperty.RegisterAttached("HasFocus", t...

XAML without the .xaml.cs code behind files.

I'm using WPF with the Model-View-ViewModel pattern. Thus, my code behind files (.xaml.cs) are all empty, except for the constructor with a call to InitializeComponent. Thus, for every .xaml file I have a matching, useless, .xaml.cs file. I swear I read somewhere that if the code behind file is empty except for the constructor, there ...

How can I make a hover info bubble appear on mouseover in WPF?

I want to make bubble of text appear when the mouse is over a TextBlock. The following code is the closest I can get but it just injects text into TextBox.Text itself and changes the color. I want to have a e.g. Border/StackPanel/TextBlock above the original textblock floating on a different layer during mouseover. How can I make a hov...

WPF textbox and doubleclick

I am displaying Mac Address in a WPF application. I want that mac address to be selectable to be copy/paste, so I am using ReadOnly TextBox When the user double click I want to select the whole MacAddress The default behavior by the WPF and Windows, is by double click select part of the number between colons so when the mac address is ...

How can I make a WPF ToolTip appear faster with ToolTipService.Duration?

How can I make the Tooltip in the following code display faster? using System.Windows; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; namespace TestHover29282 { public partial class Window1 : Window { public Window1() { InitializeComponent(); TextB...

How do I reject a change in an editable Xceed Wpf DataGrid cell?

I have an Xceed DataGridControl on a WPF Window with a few columns that are data bound to a DataTable. The UpdateSourceTrigger on the grid control is set to CellContentChanged so that the binding source updates as soon as a cell's content changes. <Window x:Class="Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/prese...