-
- TreeView and undesired automatic horizontal scrolling
by Martin2233
- 4 Replies
- Last post
by Martin Dvorak
- Hi,
For some reason I don't understand, when a horizontal scrollbar is displayed for a TreeView and user selects an item which is wider than available horizontal space, the TreeView automatically horizontally scrolls according to that item. I don't understand the reason or mechanics behind the scenes which are causing this behavior, but I'd like to turn it off. Please, help.
Thanks, Martin
-
- Entity Framework Connection failing
by Rick Strahl
- 14 Replies
- Last post
by Cees Versteeg
- This must be a simple thing but I can't seem to get the context to connect once I've generated a new model. The model is created and compiled. I created the model in a Classlibrary project and it added an app.config connection string.
I then use a Web app to access the model. I've added the same connection string into web.config but it continues to fail.
I'm not sure what to make of
-
- Slow video in WPF ?
by cgraus
- 8 Replies
- Last post
by Mike Brown
- We are about to go beta on a WPF product and we're finding that video plays slow at times, is jerky, and sometimes after playing several videos, the video control does not show anything at all. We have up to four media controls in panes, our app uses transparent windows, but the hotfix for that issue did not help. Any suggestions appreciated. It seems intermittent, the same PC one day will only fa
-
- Generic event handler
by Dessus
- 2 Replies
- Last post
by Dessus
- I am currently trying to implement an application where i require the ability to point all events to 1 method. That is simple enough if i declare all events that I want. For example:
Code Snippet
<Window x:Class="CaptureEventsSpike.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2
-
- Looking for ToDataTable()
by ExtJSdeveloper
- 4 Replies
- Last post
by Fabrice MARGUERIE
- I am using LINQ to SQL but have a requirement to ship some DataTable objects out to a legacy UI tier. The LINQ api has other collection creation api¡¯s such as ToArray() and ToDictionary() but I could not find a ToDataSet() or ToDataTable() equivalent.
Have I overlooked something or will I have to code this by hand
Is this Mike Taulty code my best option
http://mtaulty.com/Co
-
- Replace scrollbar with slider in ScrollViewer
by Chris in DFW
- 3 Replies
- Last post
by sleepless tink
- Hi All,
I have a control template for a ListBox and I would like to change the scrollbars on the ScrollViewer. I've been playing around with the Styled ScrollViewer template so I'm OK with changing the basic appearance of the scrollbar. But, I would like a scrollbar with no repeat buttons, which would seem to pretty much make it a slider. Can I replace the scrollbars with sliders or should I ju
-
- Persisting subclasses with associations (DLINQ)
by tplummer
- 1 Replies
- Last post
by Matt Warren - MSFT
- Hi all,
Here's the situation. I have a 4 level deep hierarchy of Persons , with a Customer subclass containing an association to Order (1:M). Normal Person instances (the base) donot require this association.When attempting to save a new instance of Customer and Order I get the following
Member 'LinqLab.BusinessObjects.Person.Customer.Orders' is a relationship which is only supported on a
-
- WCF - WF Error Handling & Tracking
by A..K
- 2 Replies
- Last post
by JDPeckham
- Hi,
I plan to develop a new application using WCF/WF. The application will run as a windows service, with WF hosted in WCF via extension.
I am looking out for a unified/standardized way of implementing Error Handling , Logging ( For Instrumentation) & Tracking ( to track flow of message in WCF as well as WF).
Some of the options I have looked at are using IExtension and or
-
- Can we deploy Segoe font with our WPF apps
by Futzy
- 7 Replies
- Last post
by Erik-Jan van der Linden
- So the WPF app I'm working on right now uses Segoe in Vista and looks great. In XP, it uses something else, not sure what to be honest, but it doesn't look nearly as nice. Can we ship the Segoe font with our app so that non-Vista users see the same font we do
-
- MediaElement is playing half of what WMP can
by djpiter
- 5 Replies
- Last post
by Eddie Li - MSFT
- Hi I have media files ( avi, mpeg wmv ). Windows media player is rendering better and playing more of them. MediaElement plays some mpeg's and some it's not. Is there any way that I can force to ME to play at least what Media player is playing Thanks PK
-
- Implementing custom DataContext property - how?
by Joe Albahari
- 2 Replies
- Last post
by Rob Relyea
- I'm subclassing DependencyObject and want to add support for a DataContext property. So far I have this: public static readonly DependencyProperty DataContextProperty = FrameworkElement.DataContextProperty.AddOwner ( typeof (MyClass), new FrameworkPropertyMetadata ( null, FrameworkPropertyMetadataOptions.Inherits ) ); There are two problems: 1. Instances of My
-
- Slider control binding to a property (two way)
by DiamonDogX
- 8 Replies
- Last post
by Yiling Lai
- I have a slider and a map control with a dependency property called ZoomLevel. I want the slider value to be binded to the ZoomLevel. When I drag the slider, the zoom level should change and if the zoom level is changed by some other means in the program (e.g. scroll wheel) the slider value should change. I am familiar with data binding but having some trouble here, as I can't seem to get it worki
-
- .net fx3 worth it?
by Ananda Ganesh
- 5 Replies
- Last post
by Odi
- Well I just downloaded .net framework 3 along with the extensions for vs 2005 and coded the traditional 'hello world' program
What came as a suprise to me was 'There was no Drag and Drop of components'
It was quite similar to asp.net's source view type coding !, with a few neat features added to various control to make them look and feel better..
I think its a great to give more if not to
-
- LINQ to DataSet traversal
by Julie Lerman
- 4 Replies
- Last post
by Julie Lerman
- I see from ERick's blog that you can traverse datasets in a where clause for a linq query.
I tried to do the same wtih a select but it fails.
eg... select row.CUstomerRow.CompanyName
Should this be possible
If not, what would be the recommended way of querying across related datatables.
thanks
julie
-
- Inheriting Button / applying theme
by Bruce VB111480
- 2 Replies
- Last post
by Bruce VB
- Hey,
I have created a call that inherits from button like this with no xaml.
public class ButtonBack : System.Windows.Controls. Button
{
}
I want to add some non visual properties to the class but inherit the standard themes if they are changed.
using this type of approach
Uri uri = new Uri ( "PresentationFramework.Royale;V3.0.0.0;31bf3856ad364
-
- How to modify observableCollection object and still see data in Expression Blend?
by ThePerfectStorm
- 2 Replies
- Last post
by ThePerfectStorm
- If my DynamicsDataSource is intantiated in Window1 then accessed using DataContext, the object becomes completely local to window1 so I can do whatever I want to the ObservableCollection. But when using this method Expression blend is no longer able to show the data statically during GUI design. I would like to use Expression blend but I cannot figure out how to access methods in the DynamicsDataS
-
- new *Async methods in the Socket class
by Valdair
- 5 Replies
- Last post
by Peter Ritchie
- Anybody have or know of an example on how to use these No docs and the functions are not exactly intuitive.
-
- VSTO 2008, Office 2007: Dynamically creating Excel worksheet host items / adding buttons
by Shaun Logan
- 7 Replies
- Last post
by siamsimon
- background
I have an Excel doc-level solution developed for Office 2003 using VS 2005 Team Suite (with VSTO 2005 SE applied). My requirements are that at runtime, the end-user can insert as many worksheets as s/he wishes into the customized workbook. My doc-level code creates Microsoft.Office.Tools.Excel.Worksheet object host item wrappers around those worksheets -- so that I can programatical
-
- ASP.Net front-end for WCF
by Josh Bernard
- 1 Replies
- Last post
by BenK
- Im working on revamping my companies website as well as providing a web service API for the same functions as the website provides. I am curious if there is anyone building their ASP front ends that simply wrap the WCF services. I have not played much with WCF and have not used it within ASP yet.
Do you think its beneficial to use the WCF services as the back-end to a website My biggest c
-
- Multliline TextBlock content from resx file
by Lossandra
- 2 Replies
- Last post
by Lossandra
- I'm working on a project where we would like to store texts for user messages and the like in resx files for internalization. Now I want to display this text in a textblock, but format it (i.e. insert line breaks). In XAML without resources this is about what I'd like to have:
Code Snippet
<TextBlock TextWrapping="Wrap"> Line1 <LineBreak/> Line2 &
-
- From WCF to WWF
by rnby
- 4 Replies
- Last post
by rnby
- I have the folowing code at my server
Server
string Server = Properties.Settings.Default.Server; string Port = Properties.Settings.Default.Port; string EndPoint = Properties.Settings.Default.EndPoint; Uri baseaddress = new Uri(Server+":"+Port+"/"+EndPoint); MyServiceHost host = new MyServiceHost(typeof(Data), baseaddress); //host
-
- SOAP header Action was not understood
by Adam Weigert
- 3 Replies
- Last post
by Brian McNamara - MSFT
- I have a WCF service available with metadata publishing. I have .NET 2.0 and 1.1 applications that need to use it using the old style Add Web Reference dialog. The reference can be successfully added, but each time I try to call the service I receive a fault, "SOAP header Action was not understood."
What is required to get WCF 3.0 services to work with non-WCF applications
-
- How? Hyperlink click in html hosted in Frame
by missbluebar
- 4 Replies
- Last post
by Hua Wang
- Hi All,
As the subject suggests I have a html document hosted in a Frame element. I am looking for an event to determine when a hyperlink is clicked in the html document.
The problem being that the Frame.Navigating event only fires when I call frameContent.Navigate(new Uri(..)) not when a hyperlink is clicked in the html document.
I have tried numerous other events on the Fram
-
- Find TextBox
by halley73
- 2 Replies
- Last post
by LesterLobo - MSFT
- Hi,
how can i realize a textbox like the find textbox of Vista that display Find when no text is present
There's a nulltext property for this
Thank's, Luca
-
- Alter button display on click
by LSDev_KF
- 1 Replies
- Last post
by Frances83
- I'm implementing an audio control bar and I'd like to have a button toggle between a play image and a pause image. What is the easiest way to do that