-
- Databinding on custom properties of a UserControl
by Duane Zamrok
- 3 Replies
- Last post
by ivolved_Mike_Brown
- Hello Everyone,
I'm trying to set up a very simple data binding scenario. I have a custom control with a custom property, and I have a main window with a text property. I want to bind the value of the custom property to that of the text property. That said, I¡¯m going to do my best to outline the number of things I¡¯ve tried and will greatly appreciate any help you guys have to offer.
-
- Directshow/Webcam in WPF Natively - Test Project
by Jeremiah Morrill
- 14 Replies
- Last post
by Jeremiah Morrill
- I have noticed a lot of post's around the internet of people wanting better Directshow support within WPF. Whether its assembling their own graph or using a webcamera, this is pretty much impossible with just WPF. Microsoft's solution has been to "use interop". But using interop, you can't use WPF to the fullest (ie, use video on 3D) and the HWND Host likes to sit "on top" of m
-
- How to avoid sync conflicts when using int primary keys?
by Mathias Raacke
- 2 Replies
- Last post
by Laxmi Narsimha Rao ORUGANTI MS
- If I use int as primary key, then I will get duplicate IDs if several clients or client and server add new rows to my table. What's the best practice for handling that
For example, in my own demo app I have customers and orders. I add a customer on the client and add an order to that customer, then I do the same on the server.In my example, both new customers have the ID 9. They both have one o
-
- LINQBridge - Run LINQ queries in C# 3.0 with Framework 2.0!
by Joe Albahari
- 0 Replies
- Last post
by Joe Albahari
- Click here for more info. Enjoy! Joe
-
- Base Address in WCF hosted in IIS
by Carl Graving
- 8 Replies
- Last post
by Carl Graving
- I have a WCF service that is being hosted in IIS 6.0. When I browse to the svc I get the standard "You have created a Service" page. There is a link there to the wsdl for the service. The link to the wsdl has a base address of http://machinename.computerdomain/service.svc. How and where is this changed. I see that that same base address propogates through the wsdl and into the xsd files.
-
- Svcutil name mangling?
by KevinBurton
- 8 Replies
- Last post
by Mohammad Makarechian - MSFT
- I have an object that on the server looks has the following property:
Code Snippet
[System.Xml.Serialization. XmlElementAttribute ( "Available" , typeof ( bool ))]
[System.Xml.Serialization. XmlElementAttribute ( "Quantity" , typeof ( string ), DataType= "nonNegativeInteger" )]
public object Item {
get {
return this .ite
-
- How are Readonly Dependency Properties defined
by Duque Vieira
- 2 Replies
- Last post
by Duque Vieira
- How can I create a readonly dependency property
I want to do this for some calculated properties that are only gettable.
Thanks.
-
- Button ControlTemplate: Change Image-Source
by veiro
- 1 Replies
- Last post
by Mike Hillberg - MSFT
- Hi! I made a ControlTemplate for all Buttons in my App. My Template contains an Image and so all Buttons will contain that image, but i want to change the image-source for each Button. Is their any possibility to do this without writing a Template for each button ControlTemplate x:Name="buttonTemplate" TargetType="{x:Type Button}" x:Key="GlassButton"> <Gr
-
- Binding <Menu> to ObservableCollection ??
by PlaTyPuS8
- 3 Replies
- Last post
by PlaTyPuS8
- Hello!
I can't find how to bind a to an ObservableCollection....
Here is my code :
Code Snippet
< ToDo:Categories x:Key = " CategoriesDSsrc " />
< CollectionViewSource x:Key = " CategoriesDS "
Source = " {Binding Source={StaticResource CategoriesDSsrc}, Path=CategoriesList} " >
</ CollectionViewSource &g
-
- Unit testing a business layer that uses a LINQ to SQL DataContext
by zuninet
- 3 Replies
- Last post
by zuninet
- We're looking at using LINQ to SQL to replace our DAL, as most of the DAL deals with CRUD-type operations, the code in there is fairly mundane. I've been doing a fair bit of reading, to see how this could be done and there doesn't seem to be a whole lot of guidance out there, relating to this topic. Scott Gu as some great tutorials to get folks started with it, but doesn't discuss how this fits
-
- NavigationUI modification
by Zajda
- 4 Replies
- Last post
by Zajda
- Hi,
I am curious. It is possible to modify NavigationUI panel of a frame For example change its size, template of forward and back buttons or even add some additional buttons to it.
Thanks
Peter
-
- Calling WPF from within Windows PowerShell?
by Marco Shaw
- 1 Replies
- Last post
by Kane-
- Apparently this XAML code will give me a OK button: <Button Width="100"> OK <Button.Background> LightBlue </Button.Background> </Button> Can I call this somehow from within Windows PowerShell on a machine with .NET 3.0 installed
-
- WCF speed issues
by drmK
- 7 Replies
- Last post
by Dave Cliffe - MSFT
- Help!
This thing is driving me crazy.
I have been trying to come up with a basic performance test on the WCF.
I have implemented already 4 different samples, and the best performace I can get is around 1000 messages per second with a 100% CPU load wich is pathetic.
Did try the WCF samples \TechnologySamples\Basic\Binding\Net\Tcp\ sample as well - still I get the same pe
-
- MediaElement seems to be broken for me =/
by Anton__
- 2 Replies
- Last post
by Anton__
- Hi
I tried to copy and comile the simple media player as its described here:
http://msdn2.microsoft.com/en-us/library/ms747245.aspx
and I cant see any video playing
also I tried to compile a MediaGallery sample (I suess its from the some SDK) - it compiles fine but again I cant see any video.
What might be wrong
I'm using VS 2005 professional. WinFX sdk, .net framewor
-
- Adding Event Listeners
by Alex Bienz
- 1 Replies
- Last post
by Drew Marsh
- Hi there, i come from a Flash background, writing Flash apps in AS2 rather than using the Flash IDE. I'm quite familiar with the event model in Flash and was wondering how things work when making WPF apps using Expression Blend. I have a control I'm building that has a StackPanel with textBoxes inside. When i resize my window I want the textBoxes that are not in full view to fade out and disappe
-
- Show TreeView nodes connected with dotted lines
by Steve Bickell
- 7 Replies
- Last post
by vvatclor
- Has anybody done any work with the TreeView control to replicate the ShowLines/ShowRootLines properties from the Windows Forms Treeview and draw dotted lines to connect nodes.
I can see that it may not be too difficult to draw the horizontal line of dots but the vertical line looks more challenging.
-
- Unable to bind IsCheckable, IsChecked and StayOpenOnClick properties of menuitem while binding menu with a datasource
by RizwanShk
- 1 Replies
- Last post
by Sam Bent - MSFT
- Hi,
I am trying to bind a menu with a datasource, but if i try binding attached property of menuitem i am unable to succeed.
See the code below.
XAML Code:
Code Snippet
< Window.Resources >
< HierarchicalDataTemplate
x:Key = " booksDataTemplate "
DataType = ' {x:Type sysXml:XmlNode} '
I
-
- How to prevent a grid splitter drag based on data?
by LSDev_KF
- 4 Replies
- Last post
by LSDev_KF
- I have a grid with 2 columns and a grid splitter that allows the columns to be resized. Most of the time, I want the columns to be resizeable. However, when the data in the first column is blank, then I want to hide that column and disable the splitter's dragging ability.
Is this possible to do in XAML using DataTriggers
-
- frame and cookie
by &#1082;&#1086;
- 3 Replies
- Last post
by Matt Galbraith
- i use in my wpf win app control frame to show web-pages. but it doesn't support cookies. how i can solve this problem
-
- Frequent Crashes When Editing Source Code (Part II)
by NTDeveloper
- 14 Replies
- Last post
by AlexBB
- I am getting frequent crashes in the CSLANGSVC.DLL module when I am editing (or, in some cases, viewing) source code. It's so bad that I'm considering rolling my installation back to Beta 1. I have even been forced to edit some methods outside Visual Studio. The methods that have given me the most trouble involve generic collections; however, I'm not sure that's the issue but it's my best guess.
-
- IOperationBehavior problems
by Evgueni
- 1 Replies
- Last post
by Steven Hillaert
- Hello,
We use a custom SOAP header to authenticate our operations. The idea is to add the custom header via IOperationBehavior.ApplyDispatchBehavior and then authenticate it via IOperationBehavior.Validate. To secure a particular operation, I would just add the following attribute to it:
Code Snippet
[ AttributeUsage ( AttributeTargets .Method)]
public class Secu
-
- Windows Mobile
by Sergey Zwezdin
- 1 Replies
- Last post
by Kavita Kamani - MSFT
- Hi!
Can I use WCF with Windows Mobile 5.0
-
- Service Side Access?
by w_fryatt
- 4 Replies
- Last post
by w_fryatt
- Is is possible from the Service Side to access public class and/or variable in your WCF IClass
Thanks,
Weston Fryatt
-
- Enable Integrated Windows Authentication to WCF service hosted on IIS
by Maor David
- 5 Replies
- Last post
by gsolanki
- Hi
I developed service with wsDualHttpBinding and hosted on IIS. I want to use Integrated Windows Authentication (I;m under Domain Controller) but I get " Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service." .
What should I do or configure to enable Integrated Windows Authentication
Th
-
- XAML Mixed Content Parsing
by Nimrand
- 8 Replies
- Last post
by -SerialSeb-
- This question is really about XAML and not anything WPF-specific, but this seems to be the best forum I could find for this question.
I have a set of custom classes that I would like create declaratively using XAML. It works fine so far except that there are some elements that I would like to contain mixed content (i.e., both text and elements). The child text nodes should be parsed as chi