-
- Easier way to delete
by Eric Harmon
- 6 Replies
- Last post
by Eric Harmon
- Frequently, I have grids in my applications (as in many applications) that project a small number of columns from a table to display. It seems like currently if the user wants to delete a line, if I don't want to write SQL code, I have to load the entity corresponding to that line and then delete the entity and SaveChanges.
Let's say I have a Customer table with lots of fields in it, includ
-
- 2D to 3D - Objects at 0,0,0? Whats the right Tansform?
by AnotherDayAnotherSegFault
- 7 Replies
- Last post
by Jordan Parker - MSFT
- Hi I will post this a new post as it is a slightly different issue...
I cant seem to get the depth right without having my camera in a stupid place
My objects sit on the 0,0,0 axis...
Is that a problem
Many Thanks..
heres my class I highlighted the bit I cant figure out...
It works like! but only when my camera is at 0,0,0 with a
-
- Custom controls with large scrollable content...
by Brad Robinson
- 5 Replies
- Last post
by Drew Marsh
- Hi All, I'm completely new to WPF, so apologies if I'm asking the obvious. I'm wondering how one would efficiently implement a control that has a large amount of content. Take for example a grid control that needs to display thousands of rows. From what I've read so far, WPF is a retained-mode rendering system and all the examples I've seen on how to do scrolling all talk about scrolling views, bu
-
- Help. Xbaps no longer loading in IE7/Vista
by MattCheshire
- 1 Replies
- Last post
by Matt Galbraith
- My developer workstation seem goosed.. When I open an xbap app in IE7 (be it a one on http://localhost/ or any of the internet example ones) the publish.htm page comes up as expected, however clicking next start "Starting downloading from in toolbar" and spawns another tab with "Connecting..." on (but you can't select this page), then every 10 seconds it keep trying and no succ
-
- How to unfocus an element
by lpx
- 2 Replies
- Last post
by Marco Zhou - MSFT
- Hi How can i unfocus an element, in this specific case, a textbox. Do you know when we are at the windows desktop and click over a icon label That will lead us to label rename. We have two ways of getting out of that, clicking enter or click any where else. I want to reproduce that behaviour. Thx, Best regards, Nuno
-
- Type Cannot Be Serialized - yet again
by Coder0xff
- 6 Replies
- Last post
by Coder0xff
- InvalidDataContractException: Type 'SmartPrioritizer2.ProcessData' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. The type that can't be serialized (ProcessData) is my own class, and it is marked with DataContract and still I get this error. I commented out most of the
-
- DataTemplate For Cell With Rectangle Fill Based On A Value
by DiamonDogX
- 4 Replies
- Last post
by DiamonDogX
- I have a listview and I've assigned a datatemplate to one of the columns. What I'm trying to do is for each row, have a column that contains a rectangle colored a certain color based on what the value of one of my data properties is. Like if "Priority" is 1, I want the rectangle for that row colored red, etc. My datatemplate is defined as follows, which is obviously wrong because the set
-
- Change parent page of a WPF Form class
by captainsina
- 3 Replies
- Last post
by Neil Mosafi
- Hi everyone,
I am writing an application in .net 3.0 and I want all my Page classes in my application inherit from my BasePage class. My BasePage obviousely inherits from System.Windows.Controls. Page. as you know, when you add a form to your project, a partial class is created for code behind. I can go and change the parent class of the form to my own class (BasePage), but if I rebuild the pro
-
- Why my usercontrol doesn't work?
by harry
- 1 Replies
- Last post
by Frances83
- I am trying to create my own usercontrol to work in xbap. But whatever I do, it always can not be recognized by xbap page (it shows curly line under the namespace and assembly) . Sure, the reference and namespace are done properly,
Can anybody help me with that Many thanks!
-
- Router + IIS + SQL membership provider?
by Dominic Breeze
- 3 Replies
- Last post
by Dominic Breeze
- Hello,
I've see threads saying folks have managed to convert the Router sample to IIS hosted rather than a form, but I don't follow how this is done. Obviously all the Console.writeline entries have to be removed etc. Is it primarily just a case of changing app.config to web.config There must be something else as there is no main or application.run item in the basic new WCFService template
-
- Margin property
by Pooja
- 2 Replies
- Last post
by Murtaza Ali
- I'm not very clear as to how the Margin property works..If I want to assign a value to the property from a code file for several controls, how do I go about it
-
- UserControl Issue
by Sam Andy
- 11 Replies
- Last post
by Marco Goertz - MSFT
- I have a userControl, I need to know how can I add it to the toolbox if its possible. and how can I set its Icon(ToolbooxBitmap Icon).
-
- Compiled Queries in LINQ to SQL - performance considerations and entity caching
by Anders Borum
- 14 Replies
- Last post
by Anders Borum
- Hello!
This question relates to compiled queries in LINQ to SQL as well as general performance observations / considerations. Also, I pose a few questions regarding patterns related to entity caching.
Performance:
I am looking at replacing a data tier with LINQ to SQL and would like to get the best performance from LINQ to SQL. Implementing an O/R mapper obviously relieves me
-
- Problem with update of a decimal field
by VGyopsalieva
- 1 Replies
- Last post
by Matt Warren - MSFT
- Hello! I have a table in my database with three columns of type decimal (18, 5). I create a new record and set values to those columns. Everything is OK - LINQ submits the changes and save the correct values (decimal(18, 5)). But when I update the values it truncates the values to decimal(18, 4). Can anyone tell me what is the problem P.S. I use Visual Studio 2008 Beta 2.
-
- Problem with a WPF Control and the Custom Task Pane
by kapelletier71
- 2 Replies
- Last post
by kapelletier71
- Hello all... I'm having a very strange problem with a WPF Control in a Custom Task Pane in Excel.
First, the background:
VSTO SE and VSTO 3 (VS2008 B2)
Excel 2007 Add-In
VB
WPF control (C# + XAML)
I'm using this code to put the WPF control in the Custom Task Pane:
Private Pane As Microsoft.Office.Tools.CustomTaskPane
Dim elHost As ElementHos
-
- Support for Oracle and/or mySql databases in the Entity Framework?
by Frederik Carlier
- 3 Replies
- Last post
by Frederik Carlier
- Hi, I was wondering if the Entity Framework will include support for non-Microsoft databases, such as Oracle and mySql Will there be a difference in which databases will be supported at design time, and which ones at run time Thanks!
Frederik
-
- Udp Security
by dickP
- 1 Replies
- Last post
by dickP
- How do I get a service that exposes a Udp endpoint to require client signed messages I also want to restrict messages to a given group of clients.
I tried setting authentication mode on the custom binding to certificate but it makes no difference.
-
- Page navigation and de-serialization bug?
by imj
- 13 Replies
- Last post
by imj
- I think I stumbled onto a bug. I'm building a navigation-based application using WPF. In it, I have a Page with a number of controls on it, mostly TextBlocks, TextBoxes and ComboBoxes. I also have a UserControl in there, which itself has a number of the same types of controls in it. The contents of both the Page and the UserControl are defined in XAML. On the Page, I have a TextBox (say TextBox1)
-
- Nullable type in where clause
by felzmann
- 11 Replies
- Last post
by BACHRATY Gergely
- Hi!
How LINQ to SQL handle the nullable type in the where clause Example:
Code Snippet
private int MyId { get { return null; }}
var categories = from c in _db.ProductCategories where c.ParentProductCategoryID == MyId select c;
The type of the c.ParentProductCategoryID is the int . But the generated SQL select looks like:
Code Snippet
WHER
-
- Knowing when my class (that inherits from ModelVisual3D) is added to the scene graph
by MuscleHead
- 7 Replies
- Last post
by SerialSeb
- My lengthy subject says it all :)
I have a class that inherits from ModelVisual3D (similar to what Daniel mentions in http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=397381&SiteID=1 ). I would like to know when it needs to be rendered, as it has a bunch of lazy initialization to get done (like generate its visual). This means I'd like to be notified when it was added to a scene graph
-
- xaml editor - Collapsed Outlining Automatically expands
by Alan Haigh
- 2 Replies
- Last post
by Alan Haigh
- When editing in the xaml editor, under certain circumstances, collapsed regions expand on there own,
steps to reproduce problem
place a grid on a window with row definitions
Code Snippet
< Grid >
< Grid.RowDefinitions >
< RowDefinition />
< RowDefinition />
< RowDefinition />
</ Grid.RowDefiniti
-
- TreeView ADO.NET Relationships
by Dancer
- 3 Replies
- Last post
by Dancer
- Hi guys, I've got a window where I have a tree view with a hierarchical data structure with 2 levels. There are textbox's to represent data that is bound to the items in the tree view. This works fine, only problem is that the textbox's only display the data for the selected item for one level. That may not have been that clear. Basically what I have is a client and then under all the clients I ha
-
- xbap database application
by vijay prajapati
- 4 Replies
- Last post
by vijay prajapati
- Hello,
does xbap allowed us to make database management applications where database located on different server,
i have tried with database interaction with xbap but i got error like 'Request for the permission on type 'System.Data.SqlClient.SqlClientPermission'' failed.
can anybody help me with this.
regards,
vijay prajapati
-
- ComboBox appears under the Main Window
by Patbo
- 5 Replies
- Last post
by Ben Carter - MSFT
- Hi,
I have an issue with ComboBox on a machine. For some reason, the popup part appears behind the Window. It make it impossible to select an item. I tried on 2 other computers and it works fine. I remember it did this once on my computer.
I removed the Style on the ComboBox and it still do the error on that computer.
Anyone knows how to fix this error
Thanks,
Patric
-
- EDM Mapping: Problem in Mapping Fragment(s) ...
by terryc_ms
- 14 Replies
- Last post
by Julie Lerman
- I've generated an EDM on top of the standard AdventureWorks database, and am working with the Customer entity. The autogenerated EDM excluded generation of properties in the CSDL/SSDL for Customer.TerritoryId and SalesOrderHeader.TerritoryId (although TerritoryId navigationproperties were generated; is this a bug ), so I added TerritoryId properties to Customer and SalesOrderHeader in the CSDL/MDL