I would like a simple description of how to implement a virtualizingstackpanel for an ItemsControl that is databound to an observable collection in my MVVM.
I have an ItemsControl instance for each tab in a tab control, and switching tabs becomes VERY slow when the ItemsControl grows larger.
What can I do to speed up the app?
I open...
If the ToolTip is binded to the data operations takes a long time, the UI thread is blocked.
Is it possible to solve this problem? The ToolTip should be shown optimal on idle and asynchronous.
You can see the effect in the following example.
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:io="clr-namespac...
I want to click on a model in a Viewport3D and find the 3D coordinates of a model. I want the transformed coordinates.
Suppose you have this in a Viewport3D:
<ModelVisual3D x:Name="yellowTriangle">
<ModelVisual3D.Content>
<GeometryModel3D>
<GeometryModel3D.Geometry>
<MeshGeometry3D Positions="-1,0,0 0,1,0 1,0,0" TriangleIndic...
I'm porting an app (which someone else wrote) from WPF to Silverlight. I have a class which inherits from ItemsControl. In part of the code I access the ItemsControl.Items property (of type ItemCollection). However, some of the methods/properties which exist in WPF are missing in Silverlight:
MoveCurrentToFirst()
CurrentItem
CurrentPos...
Currently in my XAML editor view I am experiencing frequent seizing episodes of around 3 seconds each. I've been able to narrow down the reason for it to custom namespaces.
By default, my page has the 2 default XMLNS declarations:
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.m...
Hi ,
i'm developing a form to insert data in the Database (SQlServer 2005) i use Linq to Sql in WPF;
I have this database :
Column Name Data Type Allow Null
CODE ID Int(autoIncr) No
BoatName Nvarchar(100) No
BoatType Nvarchar(50) yes
Numbe...
Can some one suggest good and stylish toolkits for WPF which you like more.
I have found the WPFToolkit in CodePlex.
Exciting Kits so far
Telerik
Blacklight
FluidKit
...
I know WPF has a "CenterScreen" value for centering a window on the desktop.
However, on dual monitor, that is not very pleasant.
How do I center on primary monitor? Do i need to go through the song and dance of detecting the primary desktop, get its geometry, etc, or is there a better way?
...
I'm new to WPF and MVVM. I am working with a team on LoB application. We would like to have a dynamic menu control, which creates the menu based on the logged in user profile. In previous development scenarios (namely ASP.NET) we use to iterate through data which describes collection and generate MenuItem dynamically. In MVVM how would I...
Hi All,
I have some wcf services and whcih are using some certificates for security reasons.
I have installed the services on my machine but when i am trying to run these services an error is occurring that KeySet does not exist.
I searched on internet but couldn't find a solution.
Can anyone please give me an idea what is missing or h...
How can I get runnig path of my application from app.xaml.cs itself?
...
Hi!
I'm printing a WPF grid. As long as the data fits on one page, everything works fine. But sometimes the grid contains more data. Therefore I need to split the grid into multiple pages. Can anybody help me?
My code looks like this (visual is the grid).
var printCapabilities = printDialog.PrintQueue.GetPrintCapabilities(printDialog....
Hi,
I'm asking myself how to apply MVVM in the following scenario correctly:
Let's assume I have simple Master-Detail data, like a person with 0-n addresses.
The addresses should be displayed in a ListBox and the user should be able to trigger certian actions for each address.
So what I did is to create a VM which returns the person mo...
Is it possible to disable individual list box items in WPF? It should appear greyed out and the user should not be possible to select it.
...
Hi,
I have 1 client where a call to Application.GetResourceStream returns a StreamResourceInfo object where the ContentType property is empty.
All other clients return a StreamResourceInfo object with ContentType = "image/png".
Does anyone have any idea, why this 1 client does not populate the ContentType property?
The Stream property...
Hi friends. I wonder if it is possible to bind a structure element like BorderThickness.Top to TemplatedParent's corresponding property. I have tried
<Border Margin="0" Padding="{TemplateBinding Padding}" BorderBrush="{TemplateBinding BorderBrush}">
<Border.BorderThickness>
<Thickness Left="0" Right="0" Top="{TemplateBinding...
Does anyone know if there is an option to hide a GridViewColumn somehow like this:
<ListView.View>
<GridView>
<GridViewColumn Header="Test" IsVisible="{Binding Path=ColumnIsVisible}" />
</GridView>
<ListView.View>
Thanks a lot!
Edit: For clarity
Unfortunately, there is no "IsVisible" Property. I'm looking for a way t...
I am trying to center a WPF Window on the current position of the mouse cursor. Getting the mouse coordinates is no problem, but I need to determine the width and height of the window in order to calculate the offset for setting the 'Left' and 'Top' properties.
Is there a way to determine the width and height of a window before showing...
Hello
I'm having problems with RotateTransform behavior.
I have a user control inside a grid and it's rotated -135º, but when I move that shape to the limits of the grid, it starts to disappear, acting like it has no rotation.
Anyone with the same problem?
Many thanks,Paulo
...
In my presenter I have this property:
public List<string> PropertyNames { get; set; }
And I want to list out the names with a ItemsControl/DataTemplate like this:
<ItemsControl ItemsSource="{Binding PropertyNames}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding Value}"/>
</DataTe...