-
- Access to objects defined in App.xaml.cs
by George F DArcy
- 2 Replies
- Last post
by John Liu
- hi, I have an object (MyObject) that I want access to in all XAML Windows (of which there are several) and User Controls. A Window will have multiple User Controls, each of which binds to certain properties of MyObject. Some UCs will bind to the same properties, so I want a single instance of MyObject. I figured the best way to do this was to declare the object (as public) in App.xaml.cs, then si
-
- Entity Framework, Querying On Navigation Properties
by Nicholas R
- 10 Replies
- Last post
by Nicholas R
- Hey There,
There are actually two difference scenarios I want to accomplish. They are easier to describe with an example so I will skip any formalities.
#1- I want to query a bunch of Order entities but at the same time filter them based off of a navigation property. For example, lets say I want all Orders that contain at least one OrderItem with a Price greater than $1.00. How could I acco
-
- Viewbox that stops scaling
by Tonko
- 1 Replies
- Last post
by Douglas Stockwell
- I want a Viewbox-like control that would stop scaling its content once it is displayed at its 'natural' size.
For ex. imagine a text at 24 point size that looks like a 8 point size text when Viewbox containing it is 'small'. As Viewbox becomes larger contained text will look larger and eventually look larger than 24 point sized text. Instead, I would like text scaling to stop there.
-
- XBap + Web service connection problem
by Alan Z
- 8 Replies
- Last post
by Anonymous
- I am very frustrated. I feel like I have asked the same question several times in several different ways and I can't find an answer to something that should be incredibly basic. Could someone please help out the community by blogging a walkthrough on how to call a webservice from an XBap Here is my problem, which I'm sure other developers have experienced, are experiencing, or will experience.
-
- Image Resource
by MacKenzieMi
- 2 Replies
- Last post
by MacKenzieMi
- Hey Everyone
I am wondering if I can put a Image reference into a resource. For example lets say that I have a button with an image in its context, and I want to set the source of the image to a reference in the ResourceDictionary.xaml, and then have that resolve the image. So that say I have a Folder icon and I have several controls that reference that image I can just change in the Resour
-
- NetDataContract, Strange serialization issue
by jchampagne
- 14 Replies
- Last post
by spetroku
- I'm trying to use the NetDataContract attribute as discussed here: http://pluralsight.com/blogs/aaron/archive/2006/04/21/22284.aspx .
I thought I had it working until I tried to introduce Impersonation using [OperationBehavior(Impersonation = ImpersionationOption.Required)] on my contract.
This causes my parameters on my service side to come in as "null", believe it or not. (I comm
-
- Read Directory using pack://application: syntax
by Raba Shani
- 3 Replies
- Last post
by Marco Zhou - MSFT
- Hi,
we all know the usage of pack://application:,,,/Image1.jpg
and we probably all use it to the BitmapImage something like this:
_bitmapImage.Uri = new Uri("pack://application../Image1.jpg");
But I want something a little bit different.
I watn to do it like this:
Directory.GetFiles(new Uri("pack://aplication:,,,/MyDir/"));
But it ain't work, why
-
- LINQ join with operators other than equals?
by Mark Stafford
- 5 Replies
- Last post
by Mark Stafford
- So this might be a dumb question (and in truth, I hope it is), but is it possible to join on a condition other than equals in LINQ The SQL equivalent of what I want is:
SELECT * FROM ZipCode zc1
JOIN ZipCode zc2
ON zc1.zipCode = zc2.zipCode
AND zc1.stateCode < zc2.stateCode
A friend pointed out that SQL will optimize the query for me if I put the not equals clause in
-
- Orcas March CTP
by Galin Iliev
- 0 Replies
- Last post
by Galin Iliev
- Hi guys,
I am downloading the latest CTP and I am going to install it but would you give some answers about:
Is this release of VS has more functionality that January CTP
Is there full support for old types of applcations (windows forms, web) beside LINQ goodies
I am asking this because in previous CTP there weren;t property pages for example.
Thank you
-
- Compiler Fails to Substitute SelectMany for Select on Translation of Query Expression in Orcas June 2007 CTP
by Roger Jennings
- 2 Replies
- Last post
by Roger Jennings
- This might be cockpit error on my part, but I'm encountering errors when running C# or VB query expressions that I understand the language compiler should translate to the SelectMany standard query operator. In the following code examples, the CustomerList source collection contains an Orders field of a List(Of Order) type (per the customers collection of the "Standard Query Operators" w
-
- WPF Application Creation Fault
by DaLi Software
- 1 Replies
- Last post
by ben2004uk
- Hello there,
as soon as I create a new project with the type WPF Application or WPF Browser Application, Visual Studio tells me that the project file cannot be opened and it is not supported by this installation.
Maybe this message appears because I have got a german Windows.
Thank you in advance for your help.
-
- LINQ support on deployment
by Begemot
- 4 Replies
- Last post
by ManishPPPP
- Hi to all.
I am a new in the LINQ.
So I have a basic question:
I downloaded the LINQ and installed it on my developer machine running VS2005.
Used some LINQ code in my application.
Now I need to deploy it on the production machine.
Do I need to install some LINQ support besides the .Net 2.0 framework
Thanks
-
- How do you disable Minimize, Maximize, Close buttons + remove app icon on a WPF window?
by Friedrich B
- 20 Replies
- Last post
by Friedrich B
- How do you disable Minimize, Maximize, Close buttons + remove app icon on a WPF window Any help doing this would be appreciated.
Friedrich Brunzema
-
- Update Service Reference fails when operation include receiving a Bitmap
by Mike Russo
- 3 Replies
- Last post
by MrBridge
- (.NET RT 3.0 RC1)
When I use "Update Service Reference" (.i.e, svcutil) for a service with an operation that returns a System.Drawing.Bitmap, it fails and doesn't finish generating the client proxy file - only one stub class appears. The output window does not show errors, just "Generating files..." and the proxy file name.
If I remove the Bitmap operation from the server
-
- Modification Mapping: Insert/Update/Delete All or Nothing?
by Julie Lerman
- 1 Replies
- Last post
by Tim Mallalieu - MSFT
- I was attempting to map in an UpdateCustomer stored procedure in an EDM and noticed that the schema checking wants me to add Insert and Delete functions as well.
So that's an all or nothing scenario
Also, if I do use EntityTypeMapping to encapsulate the functions, do I need to then move the scalarProperties INSIDE of the EntityTypeMapping tags
It's interesting that there are a
-
- ModelItemCollection.Move bug?
by J. Traband
- 1 Replies
- Last post
by Jim Nakashima - MSFT
- I am able to use the ModelItemCollection.Move method when working with modelItems that are in a WPF's application LogicalTree, but the Visual Studio designer freezes when I call the same method on a ModelItemCollection that is part of a DataTemplate ( navigated to via the model properties).
To restate, I am able to navigate, add and remove children of a DataTemplate but moving items within
-
- A little quirk with mouse events.
by Chase B.
- 3 Replies
- Last post
by Chase B.
- Hi all,I am trying to capture mouse events on my window *before* they get to my controls. For instance, I would like to intercept a mousedown on the window, record all mouse movement, and then based on that mouse movement either do a special action, or pass the original mousedown to the controls. I have come up with a fairly simple solution:
Code Snippet
private void OnPreviewMouse
-
- asp .net hosted WCF service with forms authentication
by Bernie a
- 1 Replies
- Last post
by jyotsnav
- Hi,
I have a problem using an asp .net hosted WCF service in a web application that also uses forms authentication.
Generally the entire web application uses Forms Authentication so when the user enters the application he is redirected to a logon page. This works fine.
I've placed a service (service.svc) under "MyWebApplication/Services/" and added a location ele
-
- Selecting nullable data
by Moristar
- 9 Replies
- Last post
by Colin Meek - Microsoft
- Hi, again. Next question. I have two tables with relationship "0..1". For example we have table A with primary key aID and table B with foreign key to the A table - aID. Next I want to select data from table B and of cource aID field is null in database. So in this time I have an error, because structure was generated with the aID in child table B of type int. Can I use some nullable typ
-
- MediaElement question
by Cornel Gav
- 1 Replies
- Last post
by Yi-Lun Luo - MSFT
- How can I find the duration of a media that plays on MediaElement Thanks
-
- Window.DragMove() is swallowing all MouseUp events when created from ControlTemplate
by dontera
- 6 Replies
- Last post
by dontera
- Hi all, hoping someone can help... I am creating a "stickyNote" kinda app; with multiple, borderless windows containing a TextBox and other relevant controls. I have defined a "StickyWindow" custom control, whose Content is defined by a ControlTemplate in generic.xaml. From another window, on Click I instantiate a new StickyWindow and .Show(). There are basically two controls a user can click on
-
- XAML TabIndex Binding to an Enum
by Dezzz
- 4 Replies
- Last post
by Dezzz
- Hello,
This is probably VERY Simple but for the life of me cannot get the Syntax correct. I am trying to Set the TabIndex for TabItems within a TabControl. Reason being is that I want to receive a value from another Window and immediately diaply the appropriate TabItem.
Anyway....I wanted to set the TabIndex to a value from an Enum in the Code-behind file.
Currently:
< T
-
- How to retrieve Whole synctable from local .sdf file using SELECT statement?.
by Meet Vijay Shah
- 2 Replies
- Last post
by Meet Vijay Shah
- Hi all I want to retrive whole synctable ( with data & columns ) using select command. I have used Information_Schema.Tables for this but it gives me only table property e.g.(table name,table type). "SELECT * FROM Information_Schema.Tables WHERE (TABLE_NAME ='Call')" I want table with data and columns structure. Is it any way to retrive whole table from sdf Regards, Meet.
-
- Environment freezes for 10-15 seconds after build completion
by NTDeveloper
- 4 Replies
- Last post
by Josh Stevens - MSFT
- I have a fairly large solution (about 40 projects). The solution builds fairly quickly, but after a build completes (successfully or unsuccessfully), the environment hangs and I can access anything for about 15 seconds. I can look at the errors, if any; I can't edit source code..no access whatsoever. It is obvious though that the processor is working very hard and accomplishing some task. Any idea
-
- Field attribute target for auto-properties
by orangy
- 3 Replies
- Last post
by Marcelo Guerra - MSFT
- I wonder, why "field" attribute target is not supported for automatic properties, but supported (since 1.1 AFAIR) for events
I mean something like this:
Code Block
[field: NonSerialized]
public string AutoProperty { get; set; }
Looks like oversight...