-
- ADO.Net and databinding to a listbox
by Ted12893
- 8 Replies
- Last post
by Ted
- If I databind an ado.net datatable to a listbox, the content of every listboxitem is a DataRowView, which is fine I guess. But what's the easiest solution to find the matching ListBoxItem if I have a normal typed datarow
I wanted to use the ListBox's ItemContainerGenerator.ContainerFromItem(), but this doesn't work as the listboxitems' content aren't the datarows but instead datarowviews.
Ri
-
- Dynamicly selecting a contentcontrol template
by Mattias Allared
- 7 Replies
- Last post
by neil mosafi
- Hi,
I would like to select a resourcekey for a controltemplate dynamicly, but the way I hoped it would work (se below) didn't.
< ContentControl >
< ContentControl.Template >
< StaticResource ResourceKey = " {Binding XPath=@TemplateName } " />
</ ContentControl.Template >
</ ContentControl >
If I enter the ResourceKey manually it work
-
- Xaml TreeView HierarchicalDataTemplate and Linq
by EricRH
- 10 Replies
- Last post
by EricRH
- I'm trying to databind a xaml treeview to a Object collection generated from Linq for SQL. The Account object has a list of objecttype GatheredList, but the GatheredList object doesn't show up. Can anyone help me with the xaml syntax Thanks
< TreeView ItemsSource ="{x tatic local:AccountsCollection.Accounts}">
< TreeView . ItemTemplate >
< HierarchicalD
-
- Custom Two-Way Binding and BindingExpression.UpdateSource()
by Willie D.
- 9 Replies
- Last post
by Dr. WPF
- Hi, I'm trying to construct a reusable compound control based on a RichTextBox.
To implement Data Binding, I've started with the work shared by Paul Stovell , adding an Attached Dependency Property to the RichTextBox.
The Source to Target binding is working fine but trying to go back the other way, Target to Source, is not.
I've been trying to use the BindingExpression.U
-
- Command issues...
by lloyd
- 1 Replies
- Last post
by lloyd
- I tried to create a SetColor command and a ColorPicker which uses it.
There is one effect I cannot reproduce, it is tracking the CommandSource and wether it's valid. By that I mean if I create a MenuItem like that:
Code Snippet < MenuItem Header = " Blue " Command = " {x:Static local:MyCommands.SetColor} " CommandParameter = " {x:Static Colors.Blue} &
-
- Occasional SQL Exception inserting DateTime.Now
by dmbrubac
- 3 Replies
- Last post
by Kathy Lu - MSFT
- I have a table with a column of type DateTime where I log application events. Usually there is no problem doing a
Code Snippet
...
logEntry.DateAndTime = DateTime.Now;
_Db.AppLog.Add(logEntry);
_Db.SubmitChanges();
but every so often I get an SQL exception about truncation related to the DateAndTime:
Logging Error SQL Exception: Severity 13, Nu
-
- ComboBoxItem Popup shows behind rectangle
by Marlon Smith
- 2 Replies
- Last post
by Marlon Smith
- My comboox popup appears only behind the rectangle:
<Window xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " xml:lang="en-US" x:Class="UntitledProject4.Window1" x:Name="Window" Title="Window" Width="640" Height="480" Background="
-
- XML to Schema question
by marco.ragogna
- 3 Replies
- Last post
by Jim Wooley
- I didn't understand very well what kind of help it can give me the " Xml To Schema Inference Wizard for Visual Studio 2008 " I read the overview: This XML to Schema tool is a free project item template that automates the creation of XML schemas from a set of XML documents/resources. If you are working with LINQ To XML in Visual Basic 9, this utility may significantly improve your editin
-
- Grid Resizing
by Christian Feininger
- 13 Replies
- Last post
by Marlon Grech
- Hello,
I have a grid which is hooked up in a window. The grid contains some buttons. I want to force the grid that when i resize my window that you can only resize to a minimum so that all content are still visible. You shouldn't be able to resize the window so small that all content gets away
How do I do that
cheers
chris
Code Snippet
< Window x
-
- Menu in Xaml
by senthil_cst
- 7 Replies
- Last post
by lee d
- Hi,
How to Expand the menu when mouseover it. If i click the menu the menuitems will be displayed the same way i want to display wnhen mouseover on it.
Thanks
Senthil.
-
- What is the best way to use DataContext in ASP.NET app?
by Alex Smirnov
- 14 Replies
- Last post
by Joe Albahari
- Hello!
I have an ASP.NET app. where I use DLINQ. I want to find out the best way of using DataContext because perfomance is a critical thing. I have these variants:
1) DataContext will be initialized only once and placed into the Session. (But my DB structure is quite big)
2) DataContext will be initialized every time when a query executes.
3)...
Please tell me your suggestions.
-
- propertygrid and wpf
by Marco_Rosas77
- 9 Replies
- Last post
by Marco_Rosas77
- Hi!
Im having a problem using propertygrid
I followed all steps to use a propertygrid, but when i use propertygrid.selectedobjects = somelist nothing happends.
my code:
private void WindowLoaded( object sender, RoutedEventArgs args)
{
//Create interop host control
System.Windows.Forms.Integration. WindowsFormsHost host = new System.Windows.Forms.Integra
-
- SQL Server CE Version 3.5 for Mobile Devices Available
by malu Germany
- 4 Replies
- Last post
by Tek_Tim
- In my project I need to use synchronization between SQL Server 2005 as Server and SQL Server 2005 CE on a Mobile Device. I used synchronization Services for creating a snapshot. After this I transport this snapshot to mobile Devices. For synchronization with a mobile device I need SQL Server CE 3.5 for mobile Device. Where can I found a cab-File for installing this on a mobile device
-
- DataContext.SubmitChanges() Diagnostics
by NTDeveloper
- 1 Replies
- Last post
by Matt Warren - MSFT
- I have a very strange situation I'm running into with the DataContext: It seems to matter which function GetChanges() is called from! By way of example, consider the following, where myObject is a strongly-typed LINQ Table<>:
This works:
/////////////////////////////////////////////////////
DoStuff(myObject)
{
MakeChanges(myObject);
}
MakeChanges(myObject)
{
-
- How to monitor SOAP message from WCF?
by Kitty Cute
- 5 Replies
- Last post
by Allan-Nielsen
- Hi All,
I am a newbie in WCF.
I have tried to get SOAP message using TCP monitoring tools, but it failed. I used that tools as intermediary. The client has to point to the intermediary rather than the original endpoint in order to monitor the messages.
But it's raised an Error :
"The message with To 'http://localhost:8888/Calculator' cannot be processed at the receiver, due to an
-
- Time Picker
by JulTsc
- 8 Replies
- Last post
by JulTsc
- Hi, I'm looking for a TimePicker. I have found several DatePicker but not TimePicker. Does someone have something to suggest
-
- Interface methods: explicit declarations in 3.5 - bug?
by Pandaurae
- 9 Replies
- Last post
by Marcelo Guerra - MSFT
- This may not be the best forum to post this problem, but I have not found a 3.5 forum anywhere that would be more appropriate, so my apologies in advance if this belongs somewhere else ...
I have a collection of WCF services written on .Net 3.0 that have been working fine for over a year (in production since December06). Upon installing the June07 CTP of the Entity Framework and .Net 3.5, m
-
- Can TFS installatino tell SQL where to put the database files.
by StevenIBSI
- 2 Replies
- Last post
by StevenIBSI
- I plan on installing TFS server and SQL server on the same virtual server. The server has limited disk space so I need to put the database files on a SAN.
Is it possible to tell the TFS installer to put the database files in a specfic location that is different then where SQL Server would normally place new database files If not is there a way to tell SQL server to put all new database fil
-
- wsdl.exe-based proxy against WCF service does'nt authenticate (username token).
by JasonToTheH
- 4 Replies
- Last post
by Hiten
- Simple scenario: I users of my WCF to be be able to use "Add Web Reference" and not require WCF. I'm using username/password security. Here's the binding that the endpoint is referencing:
< basicHttpBinding > < binding name = " basicHttpBindingConfiguration " > < security mode = " TransportWithMessageCredential " > < transport clientCredentialType = " Basic " />
-
- Hosting Wcf Service in IIS
by Gladston 007
- 3 Replies
- Last post
by Allan-Nielsen
- Hi,
I am having a Wcf service and it is having a end point,and i am hosting the service in IIS ,when i run the program i am getting a error as below
HTTP could not register URL http://+:8080/dalEnquiry/ . Your process does not have access rights to this namespace (see http://go.microsoft.com/fwlink/ LinkId=70353 for details).
I haven't seen such an error never before,what is t
-
- VB.NET 2008 - changing framework version?
by Alex-MyRpg
- 10 Replies
- Last post
by Alex-MyRpg
- Hi, I've downloaded VB.NET/VC#/VWD 2008 (Express editions), and hearing that they allow you to change between .NET FX version 2.0, 3.0, 3.5, I found that this was easily possibile with VC# 2008 but not VB.NET (or VWD), since they did not have a drop down box in the Project window like VC# did. Do the 2008 all the express editions support development on previous framework versions (2.0, 3.0), or is
-
- LINQPad is here!
by Joe Albahari
- 9 Replies
- Last post
by Joe Albahari
- Ever gone to SQL Management Studio and started accidentally typing a query in LINQ Well now you can interactively query your databases in LINQ! LINQPad is small free utility for writing ad-hoc LINQ queries - requiring no typed DataContext. You can use it for learning LINQ as well as improving productivity when writing ad-hoc queries. Never struggle with a correlated subquery again! LINQPad also r
-
- 64-bit Internet Explorer and XBAPs
by imj
- 1 Replies
- Last post
by Chango V. - MSFT
- Hi, XBAPs work with the 64-bit version of Internet Explorer, which is great. However, IE7's Useragent string does not indicate that .NET 3.0 is installed on the system. Here are the UserAgent strings on my machine (Windows Server 2003 x64): IE 32-bit: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; WOW64; .NET CLR 2.0.50727;
.NET CLR 3.0.04506.30; .NET CLR 1.1.4322) IE 64-bit: Mozilla/4.0
-
- Registration Point - How can I set it???
by Dvlnblk
- 5 Replies
- Last post
by Pat Long
- If I have an Image and I scale it, it grows as if it has its registration point set to 0x and 0y. So, it appears to grow from the top left instead of from the center. Can anyone tell me how to set the registration point to the center
Thanks!!
-
- empty security header gives exception, is there a way around it?
by kawano1h
- 8 Replies
- Last post
by James
- Hello.
When I use WCF client using basicHttpbinding with Username authentication over SSL, the reply message from oracle application server doesn't have Action tag. I get the exception saying it's missing security header. However the transaction itself is complete because when I look at the soap message, it sends username and password with neccessary parameters(which is simple two integers) and