Hi everyone
I have a propably simple problem, that i just can't seem to figure out:
I've made an ItemsControl which has its datacontext set and shows the data as pairs of Checkboxes and TextBlocs:
<ItemsControl Name="listTaskTypes" Grid.Row="1" Grid.Column="2" Grid.RowSpan="2" ItemsSource="{Binding}" Margin="10,0,0,0" VerticalAlignmen...
Hi,
I'm extending the available WPF's TreeView control.
I wish to add to it CheckBox behavior like Josh Smith has suggested.
My goal is to encapsulate all checkbox behavior concerns from the end user (which is a different approach of what josh Smith has done).
I would like to use a style for the TreeViewItem in order to add some prope...
Hi guys,
This will probably be obvious but I can't find the best way.
I want to show the user's ToDo's in a listbox. These ToDo's are in the database and consist of an Id, UserId and Description.
The user logged in to the app.
How can I retrieve the ToDo's for that certain userId and set it up for binding to the listbox?
I was tryi...
I can't databind to properties I have added to subclasses of UIElement. Can anyone help?
An example: I am displaying a collection of items on a canvas using databinding. I want to include both UIElements and data items (which will have a datatemplate instantiated) in my canvas. The items have properties that determine their position ...
I am trying to set up a custom style for my newly made usercontrol, however i am getting the error : "Cannot convert the value in attribute 'Property' to object of type 'System.Windows.DependencyProperty'."
I thought i had set up Dependency properties but it seemed this was not the case, so i did some research and added:
public stat...
I'm trying to adapt a soltuion for the WPF toolkit's calendar from http://msdn.microsoft.com/en-us/magazine/dd882520.aspx but I'm having problems getting a binding on the usercontrol to work. I've tried using FindAncestor and ElementName, but I just get a binding error.
I think it might have something to do with the tooltip and it's Dat...
Hi
I need a way to combine multiple EllipseGeometry to make a union between them, but CombineGeometry class only can combine 2 Geometries.
The ideal way is to have a class similar CombineGeometry that accepts more than Geometry1 and Geometry2 shapes.
Anyone knows an object that makes such a behaviour??
Thanks in advanced
...
Hi
I'm new to the Hyperlink control. I wish to have a hyperlink in a regular WPF window which will navigate to a URL by opening the standard browser. I have added the hyperlink, but it does nothing. I guess it was a bit much to hope for.
Before I implement a handler to do the work myself, can anyone please confirm that the Hyperlink co...
I have a control that I want to show/hide, depending on the value of a boolean.
I have a NegatedBooleanConverter (switches true to false and vice versa) and I need to run this converter first.
I have a BooleanToVisibilityConverter and I need to run this converter after the NegatedBoolConverter.
How can I fix this problem? I want to do ...
How do I remove the margins of two sides of a stackpanel in an animation storyboard so it looks like the stackpanel has moved from the code behind? I need to do it in the code-behind because the number of stackpanels i use this animation on differs at runtime. Thanks :o)
...
I am creating a small custom scientific editor using RichTextBoxes. User can insert a 'formula' UserControl which itself contains one or more RichTextBoxes, allowing insert more 'formula' controls - this replicates minimal functionality of MathType.
When I insert the UserControl, it shows up alright but the RichTextBoxes are disabled wi...
I want to change the background color of our apps main window when a property changes. We have a business date that can be changed and I want to change the window background when it has changed from expected. I've set up a property to tell this. But can I set a style datatrigger on a window that changes itself? Or would I need to do ...
I'm trying to write a WPF control that has similar functionality to the Windows Sidebar.
The functionaly I would like to replicate is the drag and drop ordering. When dragging an item the other items move out of the way to show you where the item will end up when dropped.
Has anyone else had to implement this sort of functionality, if ...
Here is what happens:
I have a listbox with items. Listbox has focus. Some item (say, 5th) is selected (has a blue background), but has no 'border'.
When I press 'Down' key, the focus moves from ListBox to the first ListBoxItem.
(What I want is to make 6th item selected, regardless of the 'border')
When I navigate using 'Tab', the Lis...
Hi all,
I have this issue with ComboBox that uses IEnumerable<Brush> as ItemsSource; the problem lies when I (programmatically) try to set SelectedItem. Here is the code that describes the problem:
private readonly List<Brush> colors_;
private Brush white_;
ViewModelConstructor()
{
colors_ = (from p in brushes_type.GetProperties()...
I've using FluidKit in a WPF application and would like to speed up the animations.
SlideTransition slideTransition = Resources["SlideTransition"] as SlideTransition;
slideTransition.Direction = Direction.LeftToRight;
slideTransition.Duration = new Duration(new System.TimeSpan(1000)); //does not work
TransitionContainer.Transition = sli...
I have A Wpf window with a Public Sub function(Window1). I need to execute that function from another window. Something like this:
Private Sub Window2_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Window1.Loaded
Dim Window1 As New Window 1
Window1.function()
End Sub
I'm very new to wpf. Ple...
Using WinDbg and trying to debug a Silverlight application for memory leaks, I come across properties on my objects that are implemented as a DependencyProperty - and when I dump the object in the debugger (WinDbg) I can see the property - that is, I can see the actual static field.
How do I see the actual value of the property?
...
Hi
If I put a large text box which has has a data binding validation error into a ScrollViewer, the red border which is shown around the text box only includes its visible parts as if it would not be scrolled.
Example:
Window1.xaml:
<Window x:Class="ErrorTemplateApplication.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/...
Weird question, but one that puzzles me a bit. In the old days when we had Terminals and DOS, applications generally only had one "window", and that was a fullscreen one. When people switched functions, there was no concept of opening a new window, but instead the content of the main window was overwritten. So there was only one main win...