How would you implement a GUI similar to the "My Computer" view in Windows Explorer?
In particular the "Icons" view mode. Including the grouping of different item types (as Files Stored on This Computer/Hard Disk Drives/Devices with Removable Storage groups in Windows Explorer)
In WinForms I would use a ListView for this thing but in W...
I just want to enable or disable the button inside a ControlTemplate for a WPF Editor that I'm using.
...
In XAML I can declare a DataTemplate so that the template is used whenever a specific type is displayed. For example, this DataTemplate will use a TextBlock to display the name of a customer:
<DataTemplate DataType="{x:Type my:Customer}">
<TextBlock Text="{Binding Name}" />
</DataTemplate>
I'm wondering if it's possible to define ...
I have a ListBox with a bunch of images in it (done through a datatemplate). The images are created by setting the items source:
<Image x:Name="ItemImage" Source="{Binding ImageUrl}"/>
and then they are cleared by using the listbox's Items.Clear() method. New Images are added by using the Items.Add method of the listbox.
However, ...
We can use Bitmapsource object as the content of a Image control, However if I only have Bitmap object, can I use it directly, if I convert Bitmap to Bitmapsouce using the following method:
Bitmap bitmap = imageObjToBeConvert;
IntPtr HBitmap = bitmap.GetHbitmap();
result = Imaging.CreateBitmapSourceFromHBitmap
...
I use ListBox to show Images.
However I found if the Listbox contain more than 1000 Image Items, It is really slow if I want to zoom the thumbnails.
I asked the qestion in
http://stackoverflow.com/questions/181845/in-a-wpf-listbox-with-more-than-1000-image-items-the-zoom-images-become-slow
And tried lots of method, however I can't solve ...
The following is a Simple Style for ListBoxItem, ListBoxItem has a son Border. Border has a Padding property with value of 8, I want to change the value to 0, when the item is selected. How can I write the trigger?
<??Style TargetType="{x:Type ListBoxItem}">
<Setter Property="Background" Value="Transparent" />
<Sette...
I would like to use databinding when displaying data in a TextBox. I'm basically doing like:
public void ShowRandomObject(IRandomObject randomObject) {
Binding binding = new Binding {Source = randomObject, Path = new PropertyPath("Name")};
txtName.SetBinding(TextBox.TextProperty, binding);
}
I can't seem to find a...
It seems the ObservableCollection only support add, remove, clear operation from the UI thread, It throw Not Support Exception if it is operated by a NO UI thread. I tried to override methods of ObservableCollection, unfortunatly, I met lots of problems.
Any one can provide me a ObservableCollection sample which can be operated by multi-...
I cannot add workflow item to my WPF project.
I create a new WPF project and want to add a sequential workflow. When I do "Add new item" there is no item template to select.
Any hints?
...
What are some recommendations for finding Expression Blend/WPF Designers to perform contract work? I think a (local) freelance designer might be the most reasonably priced, but I don't even know where to start.
As additional background, I am located in the Midwest region of the US, where designers are not as prevalent.
...
I am attempting to rewrite my ForestPad application utilizing WPF for the presentation layer. In WinForms, I am populating each node programmatically but I would like to take advantage of the databinding capabilities of WPF, if possible.
In general, what is the best way to two-way databind the WPF TreeView to an Xml document?
A generi...
If I had a Canvas with n number of Visual objects of any shape or size, how would I highlight/outline a Visual object programmatically?
Is there something built into WPF to help me?
...
List out the Tools and Utilities to develop Rich Interactive Application on Microsoft platform
The recommendations should have some sort of direct relationship with either XAML or Silverlight/WPF and not the common .NET utilities.
Expression Blend - XAML Development
Expression Design - Graphic asset creation
KaXaml, A cool and handy X...
I am trying to create a Tab Control in WPF that has the tabs arranged down the right side of the control, with the text rotated 90 degrees The look is similar to those plastic tabs you can buy and use in a notebook. I have tried changing the TabStripPlacement to Right, but it just stacks the tabs up on the top right side of the control -...
I want to use data binding with an XML document to populate a simple form that shows details about a list of people. I've got it all set up and working like so right now:
<Window x:Class="DataBindingSample.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Ti...
Problem is described and demonstrated on the following links:
Paul Stovell WPF: Blurry Text Rendering
www.gamedev.net forum
Microsoft Connect: WPF text renderer produces badly blurred text on small font sizes
Explanation: Text Clarity in WPF. This link has font comparison.
I would like to collect all possible solutions for this p...
Hello,
I've got a very simple WPF UserControl that looks like this:
namespace MyUserControl
{
/// <summary>
/// Interaction logic for UserControl1.xaml
/// </summary>
public partial class UserControl1 : UserControl
{
public UserControl1()
{
InitializeComponent();
}
protected override void OnRender(Drawi...
I'm looking for a way to create an "it will look cool" effect for a full screen WPF application I'm working on - a "screen glint" effect that animates or moves across the whole screen to give off a shiny display experience. I'm thinking of creating a large rectangle with a highlighted-gradient and transparent background, which could be a...
I have a question about how to deploy WPF application into a PC without Framework 3.5.
If a PC just installs Windows XP and sp3, Is it possible to design a setup package that can install WPF Application directly on this PC?
The situation is like this:
I designed a simple WPF Application. And I want to get its setup package.
When the cus...