Hi, I have implemented my own usercontrol based on listboxes. It has a dependency property with type of a collection. It works fine when I have only one instance of the usercontrol in a window, but if I have multiple instances I get problem that they share the collection dependency property. Below is a sample illustrating this.
My user ...
Can someone please help me out with this? I have the following template setup in WPF:
<Style TargetType="{x:Type Label}" x:Key="NavLink">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate x:Name="NavLinkControlTemplate" TargetType="{x:Type Label}">
<Border x:Name="Na...
Greetings folks!
I'm running into a problem with WPF databinding that I hope you can help out with. I'm new to WPF but an expereienced developer (VB 3.0-6.0, C#).
Here's the scenario:
I have a C# project called MasterPartsData which contains a number of classes which reprsent different types of parts (capacitor, diode, etc). They inhe...
I've been using WPF for a while now and I've gotten pretty used to many of the (rather daunting to the uninitiated) features: XAML, Binding, Templates, Triggers, etc. But I just can't seem to fully grasp the event system. Something that has gotten on my nerves from the very beginning is that events that are called 'changed' events (ie ...
By default the AutoToolTip only shows up when the users click the thumb, but I want to be able to show it as soon as the mouse is over the thumb (without clicking). Is this possible?
...
I have a user control which used to display data using a number of text blocks on a canvas. My intention is to be able to take all of the underlying properties from each text block (IE the top and left corners, height, width...) so I can draw them to a bitmap for printing. What would be the best approach for this? I was thinking of try...
Hi, I'm very new to WPF. I'm used from windows forms, that I create a panel, place controls inside it and give them DockStyle.Fill to max out their size to the surrounding panel.
In WPF I want to the same. I have a tab-Control and I want its size to fill as much of the form as possible.
I have a ribbon control (RibbonControlsLibrary) an...
Yet another wpf question.
I have two DataGridTextColumn's that take decimal values. for some reason when I am adding a new row (the initial value of the columns is zero) I have to enter my value twice in either of these two columns. The first time I type a value in it and tab out, the value returns to zero. After I enter the value the s...
I am trying to use an IsDirty flag to control CanExecute and Navigational controls during an object edit.
The problem is that in order for this to work I think I have to use onPropertyChanged for my IsDirty method so that my controls get change notification.(I want some controls to be disabled when my object IsDirty) Unfortunately I ge...
I would like to synchronize two object headers with pointers.
For example: I know I can't do this with the current syntax, but I would like something like:
Node node = new Node();
node.Label = "header1";
TabItem tabItem = new TabItem;
*(tabItem.Header) = &(node.Label);
So whenever I change node.Label, tabItem.Header changes as well...
Hi,
I am currently working on this application(C#,WPF,LINQ2XML,.NET 4.0) that displays details for 'Animals'. An example of this would be the application displaying the types of Animals such as 'Birds','Mammals','Reptiles'. For each type of Animal, I will have sub-entries such as for 'Birds' I will have sub-entries like 'Sparrow','Hawk'...
I have an ObservableCollection of ChildViewModels with somewhat complex behaviour.
When I go to edit a row - the DataGrid goes into 'edit-mode' - this effectively disables UI-notifications outside the current cell until the row is committed - is this intended behaviour and more importantly can it be changed?
Example:
public class View...
Here's what I am trying to do:
Build a custom control that essentially is a scrolling tree view. Later on, it will have to monitor and interact with its items in a certain way. (e.g. it will have to find the element corresponding to a sort of path of names). Since all items will have the same size, this is a prime case for virtualizatio...
Hi everybody!
I 'm running currently into a situation for which i cannot find a solution:
In a WPF application i 'm opening several user controls in a tabcontrol. So every tabitem has different things loaded(e.g. customer,supplier, article, warehouse,...).
In the customer tabitem i want to delete the selected customer, so i want a pop...
This is my ComboBox:
<ComboBox Name="ApplicationList" MinWidth="200" Margin="4" >
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding ApplicationName}"/>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox...
how can i assing static or dynaimc resource to animation. Eg how can i assign a brush resource to From or To property of ColorAnimation.
...
How can I sure that WPF is compatible in XP or an older OS. Is the only thing is Framework version or that could be any other things that must be installed?
...
A quick question on binding to a command in WPF. I've got a command that expects a Boolean as the parameter to execute, but I don't know how to specify the type in the xaml, anyone give me any pointers?
Command Code
public override void Execute(object parameter)
{
Boolean saveAs = (Boolean)parameter;
}
Xaml Code
<MenuItem Header=...
Hello,
I have a plugin system in my app and I would like to prevent those plugins from playing sounds. It doesn't have to be a perfect solution that cannot be overriden by a plugin.
EDIT: Sounds will be played via MediaElement in plugins
Thanks for an answer!
...
Hi!
I'd like develop an application with a complex GUI (combobox with animation, charts with spline, transparent layers, ...). I've good experience with C# 2.0 and I'm studying WPF, but unfortunately I read that there is no plan to port WPF on Mono.
I was thinking about creating my custom GUI control using OpenGL (with OpenTK)... But I...