I'm making my first WPF application, and its purpose is to generate 6 images from some data. Ideally I'd like to display them in the window, with little "forward" and "back" buttons, and a text indicator for where we are in the image-stack. Kind of like a "mini Windows Photo Gallery."
I think the way to do this might be some kind of cus...
My current setup binds the Text property of my TextBox to a certain Uri object. I'd love to use WPF's inbuilt validation to detect invalid URIs, and proceed from there. But this doesn't seem to be working?
I would imagine that it would throw an exception if I entered, e.g., "aaaa" as a URI. Thus, triggering my current setup, which is su...
Here's what I am trying to do:
Select text from a webpage I pulled up using my web browser control.
After clicking a button while this text is still selected I would like a message box
to pop-up displaying the text that was highlighted by the user.
I do I get this functionality to work in my wpf application?
I think I'm on the right tra...
I don't understand...
BitmapImage img = new BitmapImage(myUri);
Console.WriteLine("Width: {0}, Height: {1}", img.Width, img.Height);
Output: "Width: 1, Height: 1".
I've tried PixelWidth/PixelHeight, I've tried manually creating it with BeginInit/EndInit and also setting PreservePixelFormat... nothing works.
(Except, even wierder: th...
I have an XML that needs to be databound to a WPF TreeView. Here the XML can have different structure. The TreeView should be databound generic enough to load any permutation of hierarchy. However an XAttribute on the nodes (called Title) should be databound to the TreeViewItem's header text and not the nodename.
XML to be bound:
<Wiza...
I think the options screen in Office 2007 is much preferrable to the "traditional" fixed-size options dialog with multiple tabbed pages. What would be the best way to create a similar options screen for my own .NET application? Is there an existing control I can buy (or use for free) to do this? Would it be easier to do this in WPF?
...
I would to change the menuitems in the default context menu provided in the Web Browser Control. I have already tried: webbrowser.contextmenu = mycontextmenu.
Nothing changed. Is there a way to do this?
...
I cannot seem to programmatcally scroll in WPF
in a normal Windows Form I would use the code below
but that property does not exist in WPF.
HtmlDocument doc = this.webBrowser1.Document;
doc.Body.ScrollTop = 800;
return;
Is there an alternative to doing this?
...
Hi,
My company is just starting to look at using WPF for migrating all of our 10 year old business applications. These applications will most of the time be running on computers that have limited/old hardware. We are now a little worried that the hardware might be too limited for using WPF.
We have installed Family.Show (http://www.ve...
I am using the syndicated client experience (SCE) SDK. Has anyone had success with creating custom datafeeds for this. I wnat to be able to host the masterfeed and other feeds at a URL instead of compiling as embedded resources like the example. for instance, the client application would gather its feeds from http://somesite/masterfee...
We currently do a fair amount or dynamic image generation of png's in ASP.NET using the GDI+ classes in .Net with a no major issues. I had hoped to take advantage of many of the new drawing, FormattedText, RenderTargetBitmap, optimization algorithms, etc. in WPF in our ASP.NET application, but apparently this is not supported and came to...
I want my WPF ComboBox's ItemsSource property to be bound to MyListObject's MyList property. The problem is that when I update the MyList property in code, the WPF ComboBox is not reflecting the update. I am raising the PropertyChanged event after I perform the update, and I thought WPF was supposed to automatically respond by updating...
I have a scenario where I would like to animate a WPF control right before it is removed from the visual/logical trees. The control is custom, and the control style, including animations would be supplied by a designer (i.e. I don't know the details of what they will be at the time of writing the control code). I would like to provide ...
I'm trying to use the Grid from WPFToolkit, but I'm getting the error:
DisplayDataMapping.xaml (9,89):
errorMC1000: Unknown build error,
'Could not load type 'System.Windows.Controls.Primitives.MultiSelector' from assembly
'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Line 9 Po...
I am using a WPF user control (tab control) to add tab items dynamically in the simplified code below:
....
foreach (string id in ids)
{
TabControl.Items.Add(CreateTabItem(id));
}
private TabItem CreateTabItem(string name)
{
StackPanel txtBlock = new TextBlock();
txtblock.Text = name;
txtBlock.HorizontalAlignment = Hori...
How do you pass "this" to the constructor for ObjectDataProvider in XAML.
Lets say my presenter class is:
public class ApplicationPresenter(IView view){}
and that my UserControl implements IView.
What do I pass to the ConstructorParameters in the code below so that the UserControl can create the ApplicationPresenter using the defaul...
Did Microsoft abandon support for Windows Presentation Foundation (WPF) on Visual Studio 2005?
There was the a Community Technology Preview (CTP) for the WPF and WCF, but it's no longer available for download. There are released extensions for Windows Workflow Foundation (WF) for Visual Studio 2005.
But as far as i can tell Microsoft a...
I'm trying to create a WPF Shape (PolyLine) editor, which is a control that I want to use to, edit shapes in a canvas.
What the editor needs to do is to be able to display the points and lines of the shape and to move those around.
Can anyone provide me with a idea of how I can accomplish this, or a starting point? I haven't found anyt...
Hi,
Are there any WPF sample applications that showoff the 'coolness' of WPF?
I'm hoping to see some examples of the UI capabilities etc., and general structure and best practices.
(oh, and the install shouldn't be too elaborate hehe)
...
I'm using a the TreeView control and it scrolls automatically to left-align TreeViewItem when one of them is clicked. I've gone looking at my Styles and ControlTemplates, but I haven't found anything. Is there a default ControlTemplate that causes this? I want to disable it.
...