-
- Help, just installed Beta 2, nothing compiles
by Heather_Jordan
- 2 Replies
- Last post
by berogon
- Hello. I am on an x86 processor, trying to get at least the most basic thing to compile. having some issues. I keep getting the error
[code]1>------ Build started: Project: test2, Configuration: Release Win32 ------ 1>Compiling... 1>Project : error PRJ0003 : Error spawning 'cl.exe'. 1>Build log was saved at "file://c:\Users\Bryan\Documents\Visual Studio 2008\Projects\test2\tes
-
- DependencyProperty DataBinding and Thread
by archimed01
- 6 Replies
- Last post
by archimed01
- Hi, I have started a little image browser with wpf. An ObservableCollection is binded to a Listview This ObservableCollection (of a personalized class) have 2 DependencyProperty (PathProperty as Uri, and ImgProperty as Bitmapimage). I create a thread who browse the ObservableCollection and, for each item, create a bitmapImage with PathProperty , and set the ImgProperty with this bitmapimage.
-
- How to get, change, and save values from an entitiy using Entity Framework and LINQ?
by b4st
- 0 Replies
- Last post
by b4st
- Hi all, for a project I have, my team decided to try working with Entity Framework and use LINQ to query the entities. To make my question more visible, I've also embedded a simplified code of our project which you can see below. We're using 3-Layer architecure (Presentation, Business, Data). The Main class below represented the Presentation Layer, and both getParticipant(...) and saveParticipant(
-
- ItemsPanelTemplate in custom control
by Jan Kučera
- 4 Replies
- Last post
by Jan Ku?era
- Hello,
how can I make use of ItemsPanel template in custom control I would like to use panel in my custom items control, but I'd like it to be changeable by template. What's the right XAML to accomplish this
Thanks, Jan
-
- ClipToBounds property on Ellipse, Rectangle and Path
by vdh_ant
- 8 Replies
- Last post
by SerialSeb
- Hi all
I am hoping that someone can help me out. I am wondering if WPF has the capability of successfully applying ClipToBounds (or a property that achieves the same affect) to anything else besides form elements or Panels.
This is because I need to apply this same property to objects like Ellipse, Rectangle (when the RadiusX and RadiusY have set values other than 0) and/or any o
-
- Access a CollectionViewSource in another XAML file??
by PlaTyPuS8
- 5 Replies
- Last post
by PlaTyPuS8
- Hi! I've a CollectionViewSource in a first class :
Code Snippet
<Window
......
<CollectionViewSource x:Key="cvsCat" Source="{Binding Path=Categories}" /> .... And I want to point to this collectionviewsource from another xaml file! Something like : ItemsSource="{Binding Source={ MyFirstClass cvsCat}}" I
-
- Checking for a named pipe endpoint without throwing EndpointNotFoundException
by AlexVallat
- 5 Replies
- Last post
by Allan-Nielsen
- Hello, Is it possible to check for an endpoint being available without throwing and catching an EndpointNotFoundException I'm using code from here to do a Single Instance application, but it is very irritating to have an exception thrown at every normal startup. Exceptions should be used for exceptional conditions, not the normal operation of code. The code in question is:
public static b
-
- 2d Mouse Coordinates to 3d
by Matthew Lebo28574
- 14 Replies
- Last post
by Matthew Lebo
- I have a canvas control which can have an adjustable width and height. I then add points to this canvas based on mouse x and y coordinates . I'd like to take these x and y points and convert them from the 2d canvas and make them points in a Viewport3D control. (I don't care about z as I'm simply setting it to 1). I have a camera setup in my Viewport3D with a specific LookDirection, Position, and F
-
- How to bind Background to RadialGradientBrush.Color?
by RostaB
- 8 Replies
- Last post
by RostaB
- Hello,
I defined style for button. Its template contains rectangle filled with RadialGradientBrush and I want to bind Color property of brush to Background property of button. I know, Brush and Color are different types, but how to bind it correctly
< Window x:Class = " WPFForm.Window2 "
xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation &quo
-
- MenuItem.Command - multiple binding
by h1
- 1 Replies
- Last post
by Yi-Lun Luo - MSFT
- Hello,
Setup:
In my app, I have a MenuItem (mi) and I¡¯ve hooked up a Command (cmd) to it.
My app has a main window (win). The window has a frame (frm) that I use to navigate to page (pg1).
In win.ctro I add a commandbinding for cmd. When I go to menu item and select the mi, the cmd fires.
In pg1.ctor I have another commandbinding for cmd.
Problem:
When frm navigates to p
-
- Save an ImageSource/BitmapSource/BitmapImage to file
by Jonathan.Peppers
- 2 Replies
- Last post
by Jonathan.Peppers
- How can I save a ImageSource, BitmapSource, or BitmapImage to a file.
I have an Image in which the source originally came from another file that contained serialized GDI+ System.Drawing.Bitmaps.
Now I need to save the image to a ".bmp", ".png" or some other format.
How can I do this with performance in mind I can obviously convert it back to a System.Drawi
-
- Frame Control/Window AllowsTransparency?
by simsod
- 2 Replies
- Last post
by SerialSeb
- Hej allihopa!.. I¡¯ve come across something very strange..
-
- g.i.cs-Files in WPF-Projects in Visual Studio 2008
by Thomas Claudius Huber
- 2 Replies
- Last post
by Rafael Ruiz
- In Visual Studio 2008 Beta 2 I saw in a standard WPF Application, that there are not only the generated Files App.g.cs and Window1.g.cs, there are also App.g.i.cs and Window1.g.i.cs.
Are the g.i.cs only for the Intellisense-Support in Codebehind-Files without the need to rebuild the solution
What stands the "i" for
I've found no documentation about this, and im just int
-
- TabControl with built-in scrolling
by rastro
- 6 Replies
- Last post
by Ramanujam Sampath
- I¡¯m trying to build a WPF TabControl with built-in scrolling to create an effect similar to Microsoft Excel. I started with a TabControl style and added ScrollBars. I then changed ContentPresenter to ScrollContentPresenter (presumably to get the IScrollInfo interface). What I don¡¯t understand is how to bind the ScrollBar properties to the changing SelectedContent. Please see highlighted areas i
-
- ListViewColumnHeader
by Andree1
- 5 Replies
- Last post
by lee d
- Hello, I have a quetion. have ListView with GridViewColumns and I need to make filters in each header(column), I want to have there TextBox where you can enter the text and Column will be filtred according this text. I tried to do that via templates but there is a problem because Name o TextBox is needed in C# code for filtering, I don't know how to make template "dinamic"(only one temp
-
- error trying to run app
by skreamz
- 1 Replies
- Last post
by DeRookie
- the application has failed to start because its side-by-side configuration is incorrect. please see the application event log for more detail. when debuging the app i get, the same msg again, but it also states, "read the manifest file for errors" my app is a graphics app using irrlicht which runs ok, but when included (crazy eddies gui as a static lib) thats when i get the error. any
-
- Disassembly view in Debugger (Visual Studio Orcas)
by Akeran
- 3 Replies
- Last post
by Akeran
- How do I switch to assembly code view in VS Debugger for native project I can't find that menu item. Do I need to install processor packs (if any) to get it Same question for "CPU Registers" windows
-
- IsTypeOf in msl's EntityTypeMapping?
by Henrik Dahl
- 2 Replies
- Last post
by cobain81
- Hello!
Let's assume EntityType C inherits from EntityType B which inherits from EntityType A.
As far as I understand, the TypeName attribute in the EntityTypeMapping element should be specified with IsTypeOf and for C it should be specified without IsTypeOf, but what about the TypeName attribute in the EntityTypeMapping element for EntityType B, should it be specified with or without IsT
-
- Custom Control RoutedCommand
by Tony.alex
- 3 Replies
- Last post
by Drew Marsh
- Hi,
I got a sample code from net ,for the 3-D objects and animation,i had customized that code,but i am not able to use the custom command object for the Button.
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using Sys
-
- Return large result sets using WCF with wsHttpBinding
by daniel_assis
- 1 Replies
- Last post
by Brian McNamara - MSFT
- Hi,
We are developing a new financial solution using WCF as communication programming model, in order to be accomplished with new customer requirements: SOA and interoperability.
We have some WCF services (.svc) published in an Win2003/IIS6 server providing corporative services for some client applications. Since these client applications functionalities are built using composition of corp
-
- Running WPF applications in application domains
by eustace8
- 6 Replies
- Last post
by Kayakyakr
- I want to run WPF applications in different application domains. My problem is that they start very slowly (and maybe run slowly too, but I haven't gotten that far yet).
I created a new WPF Windows Application project in Visual Studio called WPFProgram. I have not modified anything in it, it displays the standard 300 by 300 white window.
For running several instances of this WPF app, I creat
-
- Wrapping a DependencyProperty with a static property
by Ed Noepel
- 16 Replies
- Last post
by Ed Noepel
- Lets say I have a WPF Control named "FooViewer" which has a static property named "FooList". This property is static because anywhere I make a FooViewer in my app, I want it to share the FooList. I want to bind my FooList to a ListBox and have it update in realtime. So, I create a dependency property and point my wrapper property to this dependency property. public static
-
- Garbage Collection. With TreeView, ListBox, etc
by Fedz
- 9 Replies
- Last post
by Dr. WPF
- I am building an application that uses Tree Views and List Boxes extensively.
The problem is that I need to load data dynamically from a data source, and I use the Clear() function often in order to delete all the children of a node (when its a Tree View) or all the items in the List Box.
My problem is that the application starts eating more and more memory with time. The items are neve
-
- HostVisual and VisualTarget
by JamesChambers-rvng
- 4 Replies
- Last post
by JamesChambers-rvng
- Hello all,
We've been working away at getting HostVisual and VisualTarget working, and I'm hoping someone out there can give us a little more insight.
At this point we are inheriting from FrameworkElement and using DrawingVisual and HostVisual to host a MediaPlayer. The next step, rigging up VisualTarget and getting a secondary thread on the go, is where we're at a loss.
Below is the co
-
- Problem with Visual Brush
by Jeremy Chaney
- 18 Replies
- Last post
by Jeremy Chaney
- I am trying to use a visual brush to create a mirror effect, but I'm getting a binding error: System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=frontPanelBorder'. BindingExpression no path); DataItem=null; target element is 'VisualBrush' (HashCode=54814357); target property is 'Visual' (type 'Visual') The interesting bit is that the element "frontPanelB