Windows Presentation Foundation (WPF),289
Recent update: 2008-3-21

WinFX For Visual Studio RTM

194 byte By DotNetFireball at 2008-3-7
I have readed about the Visual Studio 2005 RTM is planned to be released today on msdn, is planned to be released also a recompiled version of WinFX runtimes and SDK for RTM soon? Sebastian

WindowsFormsIntegration x64

93 byte By andokai at 2008-3-6
Anyone know if or when this dll will be available for the x64 platform? Thanks, Andrew

Vector Image Format for WPF?

679 byte By TylerBrown at 2008-3-5
How can I go about creating vector images for use in WPF. I've heard of different XAML export capabilities, but this simply translates the image into XAML markup, which is not a vector image format. Will there be an image format which will be used for vector images in WPF?The reason I ask is ...

Custom logic for dependency properties

1928 byte By jedediah at 2008-3-3
The Avalon documentation is kind of sparse on this topic. There is a section called "Dependency Property Callbacks and Value Method Override" but it is blank! I need to know exactly what happens when you get/set a DP or when other things happen to it like animation and such. I need to know how ...

Binding to Window property

1005 byte By FlorianKrüsch at 2008-3-1
I'm trying to trigger an animation based on a change of a value of a window's property. Basically what I have is a class 'VisibleItem', which implements INotifyPropertyChanged and is exposed by my Window1 as a property also named VisibleItem. Like this: public partial class Window1 : Window ...

how to bind items in a group?

134 byte By leed at 2008-2-28
I managed to create groups. I wanted to get list of items in a particular group and bind them to a control. how do I do that Thanks

CustomControl woes

1108 byte By inthefields at 2008-2-27
I spent all day trying to get a very simple CustomControl working. All I wanted it to do was to display a Button. To do so, I followed the Case Study by Kevin Moore ( ...

Serialization of Bindings

161 byte By RonDeSerranno-MOBIFORM at 2008-2-26
Bindings added programmatically to objects do not appear to be serialized using the xaml parser. Is there any mechanism to do this? Thanks Ron @ Mobiform

How to use XPSViewer in Win32 based applications

660 byte By beam at 2008-2-25
hi:I have a few qeutions to ask :a)Our company's software(win32 based application) would spport xps file format, viewing and wirting the xps file. Could the XPSViewer be embeded in own software to view the xps file?if can do, how to do? If can't, how to support to view the xps format ...

Best way to implement this interface?

626 byte By JohannMacDonagh at 2008-2-24
I want to try to develop a small application using WPF. Here's what I invision my inerface looking like:At the top a set of large buttons that represent the different areas of the program. Clicking each one will load the respective page.Now, I figured what I could do was to use a ...

How to asynchronously display an image

430 byte By makutaku at 2008-2-23
If in my window xaml I have something like: ... <Image Source=" http://www.slowserver/image.jpg" Width="20" Height="20" /> The window will be loaded and suddendly the application will freeze while the image is downloaded. After the image is displayed the application becomes responsive once ...

ANN: Amazon product links - Avalon version

462 byte By viliescu at 2008-2-22
http://www.valil.com/winfx/ads.html A small example of a WBA running in an IFrame - Amazon product links implemented in Avalon. See my blog: http://spaces.msn.com/members/viliescu/ Thank you, Valentin Iliescu ...

Positioning elements generated by a data template on a Grid or Canvas

1704 byte By JavierBlazquez at 2008-2-22
I'm trying to use an XML data source and a data template to generate some TextBlock elements from this data and present them using an ItemsControl. The TextBlocks are generated correctly, but I can't figure out how to position them on a Grid or Canvas panel. It seems the attached properties ...

Error - hyperlink in a WBA in an IFrame

920 byte By viliescu at 2008-2-21
I have a hyperlink in a WBA which is hosted in an IFrame. The hyperlink is pointing to an HTML page. When I click on it, an error is raised right before the WBA exists and the browser is redirected to the HTML page. The error is here: http://www.valil.com/AmazonBookInfo/error.jpg I have created ...

Serializing x:Key

581 byte By RonDeSerranno-MOBIFORM at 2008-2-20
I have a Button and a button style in a xaml file<Style x:Key="GelButton" TargetType="{x:Type Button}">From C# I set the style on the button to be the GelButton style. This works well, the button is now a gel button.When I serialize using the Parser the style property on the button does ...

SuspendLayout in WinFX like Winforms?

256 byte By RonDeSerranno-MOBIFORM at 2008-2-19
Is there an equivalent SuspendLayout in WinFX like Winforms? I haven't run accross anything.... Thanks Ron @ Mobiform Aurora XAML Designer <a target="_blank" title=" http://www.mobiform.com" href=" http://www.mobiform.com/">www.mobiform.com</a>

Returning a value of a DataBound ComboBox

1558 byte By Tom2505 at 2008-2-18
Hi,I have manage to DataBind the contents of ComboBox. The following code fills the comboBox with a list of Bed numbers:<Page.Resources><DataTemplate x:Key="BedNo" ><ComboBoxItem Content="{Binding Path=BedNo}"/></< FONT>DataTemplate></</Page.Resources><Com...

HTML&ASPX&XAML

470 byte By Americo at 2008-2-18
Like you can see here (firewall liberated, please) we can have HTML, ASPX(thin client) and XAML(fat client) in the same web page (framed). http://www.dmu.com/avalonex/aspxaml.htmlWoud be good to have an easy explanation (tutorial) about how they can "talk" to eachother. ...

Binding two properties of the same element

602 byte By jedediah at 2008-2-17
I would like to do this in order to e.g. bind Width to Height so the element stays square. The element is in a horizontal StackPanel so the Height is intrinsic. Neither of these worked:: <Button Width="{Binding Path=Height, Mode=OneWay}" /> <Button Name="myButton" Width="{Binding ...

Returning a value of a DataBound ComboBox

1627 byte By Tom2505 at 2008-2-17
Hi,I have manage to DataBind the contents of ComboBox. The following code fills the comboBox with a list of Bed numbers:<Page.Resources><DataTemplate x:Key="BedNo" ><ComboBoxItem Content="{Binding Path=BedNo}"/></< FONT>DataTemplate></</Page.Resources><Com...

save canvas to image?

677 byte By bigshiny90 at 2008-2-16
Hi all, question... does anyone know if it is possible to save the visual state of a canvas (or some other such visual object) as an image? (then save to harddrive). I'm basically creating a very simple photoshop-like program (with Canvas as the place where a composition of images and shapes ...

Binding Transform doesn't work?

1141 byte By FlorianKrüsch at 2008-2-15
I'm trying to bind a transform DP to another transform's DP. Isn't that workin? <Canvas> <Rectangle Fill="#FF8800" Name="r1" Width="80" Height="{Binding Path=Width,ElementName=r1}"> <Rectangle.RenderTransform> <TranslateTransform Y="10"/> ...

What happened to CheckBox IsCheckedChange-event?

176 byte By henningskoglund at 2008-2-15
Hi! I need to hook up to the IsCheckedChange-event, but it is not there? Is there another similar event I can hook up to? I am running Avalon CTP September. Henning Skoglund

Replacement for AdornerDecorator.GetAdornerLayer(Canvas)?

57 byte By andokai at 2008-2-15
Anyone know what has replaced this in the September CTP?

ANN: 2D games creation tutorials

1069 byte By Americo at 2008-2-15
Our tutorials serie at: http://www.dmu.com/avalon3Dis about the creation of 3D games using Avalon. But, like there are many 2D games creator's "aficcionados" we wrote 3 lessons/demos about. ...

Avalon Web Application fails to publish

2649 byte By makutaku at 2008-2-15
I'm running september build of WinFX runtime + SDK. VisualStudio is Beta2. Using WinXP+SP2. Steps to reproduce: 1) Create an Avalon Web Application from project template; 2) Build solution; 3) Go to project settings, "publish" tab; 4) Without changing anything push "Publish Now" button; ...

Reordering triggers breaks something

3738 byte By jedediah at 2008-2-14
The following works fine: <Window x:Class="AvalonApplication5.Window1" xmlns=" http://schemas.microsoft.com/winfx/avalon/2005" xmlns:x=" http://schemas.microsoft.com/winfx/xaml/2005" Title="AvalonApplication5" > <Window.Resources> <Style TargetType="{x:Type Button}"> ...

How do I attach event handlers to elements within an ItemsTemplate?

870 byte By John at 2008-2-14
In my Resource Dictionary:<Style TargetType="{x:Type local:MyControl}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type local:MyControl}"> <Border> <Grid> <ItemsControl> <ItemsControl.ItemTemplate> <DataTemplat...

how do we resize controls in the window?

40 byte By leed at 2008-2-14
have to write custom adorners? Thanks

WinFX Gui Designer

87 byte By DotNetFireball at 2008-2-13
Microsoft can plan to release a gui designer for xaml on winfx for Visual Studio 2005?

use second monitor with wpf?

377 byte By bigshiny90 at 2008-2-13
Hi all, i'm relatively new to C# and WPF altogether. It looks great so far. I'm wondering if anyone can tell me how to assign a Window or Canvas to the second monitor on a multi-monitor PC? I basically want to mirror what is happening on a Canvas on primary monitor, on a canvas on the ...

WPF apps slow for some reason

1159 byte By ReiMiyasaka at 2008-2-12
Everything is slow for some reason. I tried Max, and that ran decently (aside some weirdness I'll explain below), but I try running some of the sample code and other stuff I compile on Visual Studio, and it's unbelievably slow.I tried the samples here on XamlPad... I can click on a button at ...

Is VisualBrush the only way to display DrawingVisual?

114 byte By sands_of_time at 2008-2-11
<font color="#800080">Hi, Is VisualBrush the only way to display a DrawingVisual? Kind Regards, Rana</font>

Move Event for a FrameworkElement?

248 byte By RonDeSerranno-MOBIFORM at 2008-2-10
I'm trying to detetct a change in the position (ie Canvas.Left Canvas.Top) property of a few FW elements. UpdateLayout is usually tripped (not always) and the sender is null in the UpdateLayout event. Is there any other way? Thanks Ron

Running WBA in an IFrame

439 byte By viliescu at 2008-2-10
I want to embed a web browser application in an HTML page by running it in a IFrame. There are 2 issues: 1. How can I get rid of the navigation chrome in the WBA? It looks very bad in the IFrame. 2. If I have a <Hyperlink> in the WBA , how can I navigate the HTML top page to a new page by ...

Performance difference between Path and Line? And, Bug in Path?

1604 byte By sands_of_time at 2008-2-8
Hi all,I'm creating an app that draws a lot of single-pixel straight lines. Would a GeometryGroup of LineGeometry be a more efficient choice than a List of Line shapes? Or, is the performance difference negliable to really matter?Two considerations may affect the question. One, all lines may ...

Hyperlink within a TextBlock?

390 byte By ForHeFirstLovedMe at 2008-2-8
Hi again folks,It used to be you would use RepositionWithContent() -- that method went away with the PDC CTP.So, I'm feeling mighty dumb here (although the sparse documentation on this might be contributing to that feeling...) -- how on earth can I shove a hyperlink within a TextBlock now? ...

visualbrush and 3d

9792 byte By leed at 2008-2-7
I am trying to set the material brush to a visual brushcant seem to figure out,why I dont see anything <Window.Resources> <VisualBrush x:Key="qaz" Viewbox="0,0,100,100" Viewport="0 0 1 1" TileMode="None" ViewportUnits="RelativeToBoundingBox" ViewboxUnits="Absolute" > ...

DocumentViewer no longer supports FlowDocument in CTP release?

381 byte By ForHeFirstLovedMe at 2008-2-7
Hi all,I get a System.NotSupportedException exception thrown when I try to load a FlowDocument into a DocumentViewer using the PDC CTP release (the exception states I need to use a FixedDocument or a FixedDocumentSequence).Is this accurate? Did support really disappear, or am I just oblivious ...

A listbox that is bound to a dataset....trying to sort the listbox

3368 byte By ashlar64 at 2008-2-7
Hello,I am trying to figure out the best way to do this....I have a Listbox which is bound to a dataset. It displays a list of names from the Name field in the Site table I have.I also have text boxes that are bound to various other fields in that table. So basically when you click on a name in the...

Modify Window Chrome via templates?

1029 byte By JohannMacDonagh at 2008-2-7
I've been playing around with Avalon for quite some time. I love it and am really looking forward to what people can create with it.My only gripe is the fact that the Avalon application resides inside a regular window chrome. Now, I understand why this was done, but does anyone else see a need ...

In XAML, how reference a resource, BUT NOT using it as an attribute value?

1687 byte By ToolmakerSteve at 2008-2-7
First, consider two ellipses that are to be drawn in a stack. Hard-coding it (no use of resources or styles), it might be: <StackPanel> <Ellipse Fill="Red" Width="100" Height="50" /> <Ellipse Fill="Blue" Width="200" Height="100" /> </StackPanel> --I DO find examples of ...

System.Runtime.CompilerServices.RuntimeCompatibilityAttribute error

506 byte By FishyPete at 2008-2-6
I have installed the september CTP of VS 2005 and the WinFx SDK. If I load any Avalon project and run it I get the following exception .."Could not load type 'System.Runtime.CompilerServices.RuntimeCompatibilityAttribute' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, ...

How do I use the ScrollBar ?

743 byte By bitbonk at 2008-2-6
I am kind of having a hard time figuring out how to use the scrollbar. I have created my own Canvas that displays a document. So I have a viewport (wich shows a part of the document), and a document (wich is basically another Canvas). How do I calculate and set the parameters for the scrollbar ...

Spell Checking Style key?

312 byte By Osiris at 2008-2-5
So I enabled the automatic spellchecking on a textbox, and POW!, works great right out of the box, only problem, the popup looks like ***, I think they stole the dialogue template from Windows 3.1. Anyway, there must be a way to overwride it, anybody have any insight on the Style key? ...

Databinding - gets horizontally formatted combobox-items - need vertically?

1336 byte By henningskoglund at 2008-2-5
Hi! I am struggeling to get <Vakt>-items aligned vertically in the combobox and not horizontally (it is based on the BookData-sample code in winfx sdk documentation). What am I missing in the code?Henning<StackPanel xmlns=" http://schemas.microsoft.com/winfx/avalon/2005" ...

Presentation Host has encountered a problem and needs to close.

1978 byte By Rakheesh at 2008-2-4
Hi,I am creating a Avalon Express Application and I have one button which has the click event and I am writting the code in the respective page.cs file. <TextBlock DockPanel.Dock="Top" Margin="15,10,10,10" > <Button Width="60" Height="30" ...

Moving Canvas child around programatically.

630 byte By JohannMacDonagh at 2008-2-4
In my Window's constructor, I create a new instance of a custom Avalon control and add it to my Window's canvas:Window2 w;public Window1() { InitializeComponent(); w = new Window2(); mainCanvas.Children.Add(w);}Now, is it possible for me to change the Top and Left properties of w which ...

ResourceDictionary & Loose XAML

1725 byte By Donec at 2008-2-4
Getting a nasty exception trying to reference a ResourceDictionary within loose XAML, is this feature disabled or just bugged right now? Here's the code that goes caboom.(Obviously the same problem arised from using Merged RD's too) <Viewbox ...

Viewport's MouseLeftButtonDown-Event not firing

2041 byte By inthefields at 2008-2-4
I tried to handle the MouseLeftButtonDown Event of a viewport but the code never reaches the event-handler method: Here the Xaml part: <Viewport3D Name="myViewport" MouseLeftButtonDown="viewport_MouseDown" MouseMove="viewport_MouseMove"></Viewport3D> This is where I attach the ...

Visual Studio Orcas

Site Classified