Hello, I am extending the ItemsControl (class EnhancedItemsControl : ItemsControl), because I want to add several dependecy properties to it - like AlternativeContent which will be displayed when there are no items in collection (think of 'enter a search terms and hit search' label in a itemscontrol for results of search).
I have subcla...
I have a style that overrides the ControlTemplate of the element (in this case, Label). So, I can use TemplateBinding to give the consumer control of certain things within the ControlTemplate. For example, I can set FontSize and Background explicitly in the Control and have access to these values within the ControlTemplate. However, th...
I'm trying to render a WPF based object as a PNG inside an ASP.NET image handler. We've created a designer in WPF that creates XAML based templates. Using the XAML serializer to store the templates on disk is simple. Pulling those same serialized XAML based objects and reconstituting them in an ASP.NET HTTP handler has proved difficul...
I hope this makes sense.
I have created several WPF User Controls. The lowest level item is 'PostItNote.xaml'. Next, I have a 'NotesGroup.xaml' file that has an ItemsControl bound to a List of PostItNotes. Above that, I have a 'ProgrammerControl.xaml' file. Each ProgrammerControl has a grid with four different NotesGroup user contro...
I'm pretty new to WPF (and completely new to animations), so I would imagine there's just something that I'm missing here. I'm in the process of creating a new layout Panel that lays the controls out in a particular way; the details aren't (or shouldn't be) especially important here. What I'd like to do is animate the movement of the ele...
I'm developing a form in WPF with the technique of Parallax Scrolling and I need to work out one last step. I wish recreate this nice effect of the mouse.
I'm trying to get the cool delayed easing when the mouse finishes moving. When the mouse finishes moving, the background slowly stops moving a bit later, which is easily achievable vi...
Hi all
I'm involved in a project which is able to connect to different hardware devices on the fly. We've been assigned to make a Touch Screen GUI so we have a MMI to the devices.
As any device (and any type of device) potentially can connect to our framework, we've decided to let 3rd party device developers make their own GUI plugin. ...
Hi,
I have a listview where I would like to display things horizontally. That works fine, but now I would need to have them display like in a Windows Explorer type.
For example :
A B C
D E F
G H I
or
A B
C D
E F
G H
I
Is it possible in a listview?
...
I was wondering, what is the best way to capture a mouse Event inside of a wpf grid?
I wanted to Capture an event when the mouse wheel is either scrolled up or down in the grid.
I tried to create a custom grid, but that kind of didn't work.
Any ideas?
...
Ok, I have a ResourceDictionary definition that I used for a WPF app below:
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style x:Key="fieldsPanel" TargetType="{x:Type StackPanel}">
<Style.Resources>
<Style TargetType="{x:Type CheckB...
I'm looking for a complete list of built-in WPF Commands.
The best list I've found so far is here, but it does not list all commands.
Some nice-to-have details would be:
Controls/components with support to the commands (for example, TextBox supports edit commands such as Paste, Copy, Cut, Redo, and Undo);
Default Key Gestures and UI ...
Question: Is it possible to create AdornerDecorator that takes only adorners I want to its adorner layer?
public class SimpleCircleBehavior : Behavior<TextBox>
{
private SimpleCircleAdorner sca;
protected override void OnAttached()
{
base.OnAttached();
AssociatedObject.Loaded += new RoutedEventHandler(Associa...
Hi,
I was wondering if in WPF you are able to get the actual instances of the datatemplate objects. For example in the following situation:
<UserControl>
<UserControl.Resources>
<DataTemplate x:Key="MyTemplate">
<CustomControl ></CustomControl>
</DataTemplate>
</UserControl.Resources>
<ListBox D...
I'm working on my first WPF project and would like to use one of the themes that I see in the Silverlight Tool Kit.
All the help I've found is for Expression 2 and they show a different version of the Asset Tab. Can someone advise me how to do this. It looks like it should be simple, but I'm not seeing it.
...
I may just be missing something obvious here, so I apologize if this is a really dumb question. I have a WrapPanel in a view that I need to bind to an ObservableCollection on the ViewModel. This ObservableCollection contains a different type of ViewModel that needs to be bound to another type of view when displayed in the WrapPanel. The ...
Hi Everyone,
How would one go about either using the 3D components of WPF or using a pseudo 3D effect to create a "Bowl" effect, where the user is looking down on a bowl and can drag around rectangles and have the rectangles perspective change so that it looks like they move up, down and around the bowl? I'm not after any gravity effect...
I have a custom user control that exposes two dependency properties, IsBusy and BusyText.
What I want is for the control to appear when IsBusy is set to true... Here's the xaml for the user control
<UserControl x:Class="MyNamespace.BusyDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.mi...
I want to display a important list of items using an ItemsControl.
The reason why I'm using an ItemsControl is that the DataTemplate is much more complex in the application I'm working on: The sample code provided only reflects the sizing problem I have.
I would like :
the ItemsControl to be virtualized because there is many items to...
Hi,
In WPF, when I enter some text in combobox, it will highlight the item starting with the text I entered. This highlighting will search the whole text i have entered in the combo box. But instead i want the text search to match only the first letter. How to do this?
Actually, I want to make TextSearch.Text to be always first characte...
Hi!
I have many ListViews with the same DataSource with IsSynchronizedWithCurrentItem="True"
and I'm dynamicaly adding items to this DataSource.
The problem ist when the scrolls appears, the added items are not visible unless I move the scrollbar. Should I use another Control for this purpose.. or how can bring the last added item into...