-
- Absolute path in XAML... how to avoid them?
by Raffaele Rialdi
- 7 Replies
- Last post
by Raffaele Rialdi
- In an application I create a Xaml file and some referenced local _files_ (images, etc.) in the same folder of the xaml file. The xaml and the other files are dynamically created/read/ written , so they can't be in the program files folder and must be somewhere under the user Documents folder.
The problem is that the user could move those files into another PC/folder and the referenced path insi
-
- How do i do Update
by Florim
- 3 Replies
- Last post
by Mathew Charles
- Hi i nead help
in my UILayer i have Collection of Customers where one of theme example i mead changes and than i send changes to
DBLayer for Update where i hawe a metho for update.
public void Update(Customer co) //hear i send a customer and how do i then update thro LINQ
{
DataCon db = new DataCon(); //hear dataContect
co = db.Customers.Single( p => p.ID = 1);
-
- WCF doesn't time out after the specified timeout
by DRW
- 4 Replies
- Last post
by Johan Stokking
- I have a WCF app that I'm trying to get to timeout after a small timeout interval. I've adjusted the timeouts to about 2 seconds, but the code will hang for about 22 seconds when I attempt to call Open() on the proxy object. I get an EndpointNotFoundException with message "Could not connect to net.tcp://10.22.104.64:6789/MyContract. The connection attempt lasted for a time span of 00:00:01.90
-
- difference between Msg Inspector and Msg Interceptor
by pallz
- 2 Replies
- Last post
by Pablo Cibraro
- So far my understanding is
Msg Inspector
- at Service Model Layer
- is a behavior
- can modify messages (outgoing requests)
Msg Interceptor
- at Channel layer
- Can be used as a watchdog (logging/tracing activities)
- can modify messages
Does Msg Interceptor has the powers to modify the message(header + body)
-
- Dynamic loading of assemblies
by King Ragu
- 1 Replies
- Last post
by King Ragu
- Hi guys,
In my application I want to be able to drop in assemblies which are picked up by the directory listener and loaded up. Everything has been working perfectly but when I started adding WPF content I started getting errors such as :
"xyzControl" does not have a resource identified by the URI "/PluginAssemblyName;component/dir/xyzControl.xaml"
Can anyo
-
- Generics & DLINQ
by jlopp
- 8 Replies
- Last post
by jlopp
- I get the following error when I try to do what is described below.
'T' does not contain a definition for 'PrimaryKey'
Is this not supported or am I doing something wrong
Code Snippet
public class Base
...
...
public static T FindBy(int primaryKey)
{
DataContext context = new DataContext("connection_string");
var entity = context.GetTab
-
- How to deserialize when inner element is in different namespace than outer
by Kevinmac
- 2 Replies
- Last post
by Kevinmac
- I am implementing WS-Discovery in C# under .NET 3.0 using WCF. This will be a demonstration application, so I need to use certain techniques.
I want to use either the Data Contract serializer or the XML serializer to deserialize a Probe response. So far, I cannot make either serializer do what I want (code below). I can deserialize it using an untyped message, but that does not meet my requirem
-
- Simulating low-bandwidth\latency issues in a Test
by jeff.jarrell
- 2 Replies
- Last post
by jeff.jarrell
- I have a number of wcf services.
In test scenario(s) i'd like to simulate low-bandwith and latency in a self hosted, NUnit type scenario. Is there configuration attributes that I can apply to the end point to make this happen
The other thought that I had was to make a proxy\service locator type service that would play man in the middle and make adjustments to the reply message. What
-
- Anonymous Access
by Sachin Chitran
- 7 Replies
- Last post
by Kurt De Kempeneer
- I am trying to use WsHttp binding with security mode as Transport and ClientCredentialType as Certificate. In the service behavior I have Https enabled. IIS is configured to use the certificate.
When I try to browse the service from IIS with anonymous access enabled, I am able to browse. If I turn off the anonymous access (which is what i want), then I am getting this error
Could no
-
- Am I being dim? WPF Events...
by Gatecrasher
- 2 Replies
- Last post
by Gatecrasher
- I have just downloaded BETA 1 and started playing with the WPF projects.
I create a WPF Windows Application, drop and button on it and want to handle the CLICK event.
Am I right in thinking I have to add click="" to the XAML window and then write my own method signtaure
How can that be a step forward What has happened to the "events" view of the Property wi
-
- Exposing a TextBlock from a custom control
by NoSuchThingAs2
- 6 Replies
- Last post
by NoSuchThingAs2
- I have a custom control with a TextBlock in it and I'd like to let consumers set the text in that control to whatever they like through XAML. My first attempt was to create a DP of type string and bind it to TextBlock.Text. This worked fine until I tried to use a <LineBreak/> in my consuming code. Apparently when I use a <LineBreak/> or <Italic> it's doing more than just storing
-
- Another Linq 3-Tier question
by Pure Krome
- 14 Replies
- Last post
by ehauser
- Hi folks,
I'm trying to get my head around this and i'm not having much luck, even after reading some previous 3-Tier threads in this forum *blush*. I'll try using examples, using the northwind db.
I have created a project called BLL, with a namespace called Northwind.BLL . In that project i have created dbml file called Northwind.dbml with Product and Category (just like ScottGu's linq
-
- listbox virtualization problem
by PatLaplante12345
- 1 Replies
- Last post
by PatLaplante12345
- All, I am running into an issue and I don't know if this is a bug in how the virtualizing stack panel is implemented. My problem is: I have a client server app where there are collections of element sitting on the server and I need to display the collections on a client WPF app. The collections are huge and I don't want to download everything at once. I though of using the virtualizingstackpanel
-
- Capturing Data Changes on the client
by Kce
- 2 Replies
- Last post
by Kce
- Further to my other post,
Having briefly played with Steve Laskers demo, I see that the focus seems to be on propagatng changes from the server to the client via the use of triggers.
As SQL compact does not use triggers how do we capture changes on the client with SYNC services
Kerry
-
- How can I get access to control template element
by kris9542
- 14 Replies
- Last post
by Yi-Lun Luo - MSFT
- I have <Window.Resources> <ResourceDictionary x:Name="Resource1"> <ControlTemplate x:key="template1"> <Viewbox Name="Viewbox1"> <Ellipse Name="Ellipse1"/> </Viewbox> </ControlTemplate> </ResourceDictionary> </Window.Resources>
My question is how can I access the properties of Ellipse1 from Window1.xam
-
- Get the Selected item in w WrapPanel
by shanejh
- 3 Replies
- Last post
by lee d
- How do I get the currently selected item or the index of the currently selected item in a wrappanel
This seems like a logical thing to be trying to do.
Shane
-
- Documetn Outline feature for .JS files in .NET 2005
by Maruthi Panyam
- 3 Replies
- Last post
by Aphalin
- Hi
In VS.NET 2003 the "document outline" would display a list of all functions when a javascript file was open. This functionality worked very well and was super useful for me as many script files I use run to thousands of lines of code. Often I develop new functionality and need to find out if something or other exists that I can reuse, and the outline was great for this.
Is i
-
- VisualBrush problems
by King Ragu
- 2 Replies
- Last post
by King Ragu
- Hi,
I'm trying to create a user control which has a UIElementCollection called Items back by a dependency property. My window adds UIElements to the Items.Children and my usercontrol then creates a visual brush of this element and paints it on to a rectangle.
Unfortunately, when I do this I see nothing at all on the screen. However when I:
a) Create a UIElement in the UserCont
-
- questions regarding synchronization in per - Session services
by robst
- 1 Replies
- Last post
by Allan-Nielsen
- I have a question regarding synchronisation requirements in a per session service. I have a per session service, that has to perform some string manipulation and extraction operations. Initializing such a StringWrapperClass can become a bottleneck and lower the performance, so I decided to implement a StringWrapperPool class, which a service instance can use to acquire and return already initiated
-
- determine if any controls in usercontrol have been changed
by hanuman523
- 2 Replies
- Last post
by hanuman523
- I have a usercontrol with a bunch of textboxes, checkboxes, and comboboxes. Is there a simple way to determine if a user has changed the state of any of these. In other words, if a user types text into any of the textboxes or checks any of the checkboxes I'd like to take a certain action. If possible I'd like to avoid adding event handlers to each of them -- there are a lot. Ideally, a change to a
-
- Slider Template like media player 11 volume
by Euclidez
- 3 Replies
- Last post
by Euclidez
- Hello everybody I want to do a slider template like the media player 11 volume item. The problem is that I don't know how to make the line between the start and the actual thumb position.
In the next figure I want to make a line between the start and the actual position of the Thumb. Any idea about it
I==========O--------------I
Thanks a lot !!
-
- Custom TextBox TextProperty
by netisfun&#33;
- 13 Replies
- Last post
by GC
- Hello, I have created a custom control that derives from TextBox and I am trying to use the Text Property in XAML. When I set the Text property in XAML I am not getting to my Text property breakpoint in code; however, when I set the .Text property in code, the property is called. Is there anything I am missing
Thanks
-
- XBAP working on XP, but not Vista
by kcchesnut
- 9 Replies
- Last post
by kcchesnut
- got a large XBAP app that we've been developing on XP. it works fine on XP, but Vista is giving me a 'white screen'. on a Vista client, the ClickOnce deploy seems to work fine, but the apps Page never renders. if i click on the View menu for IE, it only shows the reduced menu items for XBAP (Status Bar, Stop, Refresh, Full Screen) ... so that makes me think the XBAP app really is loaded.
so wha
-
- obtaining XPath in WPF
by nyc9
- 14 Replies
- Last post
by Dr. WPF
- hi, may i know is there is a way to get the XPath of the text data displayed in the textbox. below is the code that displays the data(obtain through binding) in the text box: <TextBlock MouseDown="OnMouseDown" FontSize="16" Width="200" Text="{Binding XPath =Data}"/> I need to get the XPath in the C# codes for the OnMouseDown event function so that i ca
-
- Disabling the Designer
by NTDeveloper
- 1 Replies
- Last post
by Mark Boulter
- Is there a way to either disable the WPF designer for a particular page or to just turn it off system wide It always throws fits when opening a particular page within my project. If I can't turn it off for a particular page, is there a setting in Visual Studio that will just allow me to disable it entirely I can't use the thing to do any real work anyway so I might as well just pretend it's not th