At present I have two WPF listboxes imitating the following functionality
I am using 2 ObservableCollections to allow users to select whatever items they require (flexibility is the key here). The main issue is that I have thousands of items that are grouped in both listboxes. All in all the design works really well (with a few dozen ...
Hello,
Is there a way to change the order of the controls inside a StackPanel at runtime?
Many thanks,
Paulo
...
How to disable selection in a ListBox?
...
I have a TabControl in a WPF app, and I want to add a 'new tab' command to the tab strip (like tabbed web browsers have).
I've had a look at the template in Blend for the TabControl, but I can't figure out how best to add my new button to the right of the last tab. What's the best way of doing this?
...
ListBox's behavior is that the first item is selected automatically, how can I avoid that??
Note: I want to do this with pure xaml, if you have any code-behind ideas then please don't bother yourself.
...
This our method for animating a selected ModelVisual3D in the viewport.
We try to animate this specific model when clicking button2, but when we do, nothing happens.
Any hints or suggestions on what we should do?
private void button2_Click(object sender, RoutedEventArgs e)
{
//Create a storyboard for the animations.
Sto...
In XAML, how do you define a context menu for treeviewitems that are distinguished by different attributes?
...
I create a global hot key to show a window by PInvoking RegisterHotKey(). But to do this I need that window's HWND, which doesn't exist until the window is loaded, that means shown for the first time. But I don't want to show the window before I can set the hot key. Is there a way to create a HWND for that window that is invisible to the...
And also i want to color the background of headers.
Please help.
Thanks
...
I have a 'File' MenuItem were I would like to display a list of recently opened files.
Here is the xaml I have now:
<MenuItem Header="File}">
<MenuItem Header="Preferences..." Command="{Binding ShowOptionsViewCommand}" />
<Separator />
<ItemsControl ItemsSource="{Binding RecentFiles}">
<ItemsControl.ItemTemplate>
<DataT...
I am using an ObjectDataProvider declared in the XAML as follows:
<UserControl.Resources>
<ObjectDataProvider x:Key="odpTheList"
ObjectType="{x:Type library:StaticClass}"
MethodName="GetListOfItems" />
</UserControl.Resources>
Basically it calls StaticClass.GetListOfItems() to get t...
I am using the Managed Extensibility Framework for a WPF application. I've defined interfaces for so-called extension points which provide new features to the application.
Some of these features might be to display data using certain data templates, which is something which you will probably want to specify in a xaml resources file.
If...
I have a collection of custom "PlanarMember" objects exposing Boundary and Openings properties. The Boundary property is a custom "Polygon" class exposing vertices and segments, etc. The Openings is an IEnumerable basically describing openings in the larger polygon. I can guarantee that the openings do not overlap/intersect, the outer ...
I would like to add excel spreadsheet functionality to the WPF toolkit datagrid, can this be done?
I am building a wpf client-server application and I want client tohave wpf toolkit datagrid cells which would behave like excel spreadsheet cells would behave... Meaning they would have formulas and such... just like the spreadsheet woul...
I have a parent view that defines a child view in Xaml. The child view has a dependency property that is bound to the parent view's ViewModel. However, that value is also needed by the child view's ViewModel.
<custom:Parent>
<custom:Child ChildId="{Binding ParentFooId}" ... />
</custom:Parent>
ChildId is implemented as a dependenc...
I'm trying to write a UserControl to display a list of items where each of these items is a title and a group of checkboxes. This whole will represent a form of data where the person filling it in is answering a list of questions with a 1 to 4 value. This all works and binds nicely to the window's ViewModel.
But I've currently got the a...
Scenario:
I have a NavigationWindow style like this:
<Style TargetType="NavigationWindow" x:Key="{x:Type NavigationWindow}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="NavigationWindow" >
...
</Style>
I start my app with loading a Page called Home.x...
Hi guys,
I have a collection of image objects that I add to a 3d viewport usnig viewport2dvisual3d objects.
I want to add these images more than once but get an error as they are already part of the visual tree.
Do i need to Clone these images and if so what is the best way of achieving this?
I am trying to achieve a reflection type ...
Is there any way I can force WPF rendering tiers mentioned here?
http://msdn.microsoft.com/en-us/library/ms742196.aspx
For example I am on tier 2, but I want to simulate the application in tier 1 or 0 scenario.
...
This is XAML with a button and 3 progress bars
TestBtn
this is the thread to update the 3 progress bars..
Thread thread = new Thread(
new ThreadStart(
delegate()
{
...