-
- MediaElement won't play media when in a control and used as VisualBrush
by Jeremiah Morrill
- 4 Replies
- Last post
by Eddie Li - MSFT
- I have a WPF control that contains a MediaElement. I create the control in my code and add it as a visual brush to use as a texture on 3D geometry. When I run it, I see my control being rendered on 3D, but the media element never plays the video. I then change the code so my custom control is added to a panel (stackpanel) and used as the visual brush and the video plays (at high cpu usage too).
-
- Feb. CTP Orcas?
by shahram11
- 1 Replies
- Last post
by jwooley
- Hi!
I wonder if anybody knows when this month Orcas CTP will be available
Regards
-
- StoryBoard and RepeatBehaviour
by mgagne_98
- 4 Replies
- Last post
by Steve Galic - MSFT
- Hi all,
I have a small problem with the StoryBoard. I would like me animation to repeat indefinitely. I know that I can set the property RepeatBehavior to the colorAnimation and it will work, however, I absolutely want to use the StoryBoard. So, why in the following example, the animation doesn't repeat
Thanks for your help!
Regards,
Martin
Code Snippe
-
- Secure Token Service and impersonation
by Amir Tuval
- 3 Replies
- Last post
by Todd West - MSFT
- Hi,
A few weeks ago I implemented a Secure Token Service with WCF,uning the WCF federation sample as a baseline.
It all works very well. The client authenticates to the STS using custom UserNamePassword authentication.
I have several other WCF services who recieve the token issued by the STS, and have access to the claims.
Now, I have a new scenario, where one of my WCF servi
-
- MSMQ - WCF Architecture
by FerryMulyono
- 3 Replies
- Last post
by KZS
- Hi,
I was wondering, when I use MSMQ (netMsmqBinding) in WCF, how WCF gets the message from the queue Does WCF periodically check the queue Or are there mechanism used by WCF to notify the WCF Runtime for incoming message
Another thing is about the ServiceHost class. When I initialize ServiceHost class, and open it, the WCF service should be up and running right My question is, does
-
- "Just say No to hacks"
by Josh Smith
- 4 Replies
- Last post
by sfedorov
- I recently blogged about how to programmatically click a Button in WPF ( http://joshsmithonwpf.wordpress.com/2007/03/09/how-to-programmatically-click-a-button ). I used the automation API to click the button:
ButtonAutomationPeer peer = new ButtonAutomationPeer( someButton );
IInvokeProvider invokeProv = peer.GetPattern( PatternInterface.Invoke ) as IInvokeProvider;
invokeProv.Invoke()
-
- option for execute C# application
by Dragon10
- 3 Replies
- Last post
by ben2004uk
- HI!,
any idea how to create this
Just like C++ or C, e.g. let's said application called test.exe.
where you call this application, you specify with test.exe -s or test.exe -en or test.exe -test
Thanks,
Alex
-
- how do you set chosen appliction to open a file
by AlexTre
- 2 Replies
- Last post
by AlexTre
- Dear All
I wrote an wpf application which can open certain type of file(lets assume the file is avi format), I hope I open an avi file by the applictation I wrote when I click an avi file, however, my boss doesnt want me to right click the avi file then select 'open with' to set our app as the default app for open the avi, instead of this, he want me to do this programly, how should I write
-
- Issue opening VB Express 2005 projects in VB Express 2008
by Highwayman
- 3 Replies
- Last post
by Saaid Khan MSFT
- I opened a project in VBE 2008 that I created using VB Express 2005 and when asked if I wanted to convert the project I clicked OK and gave a location to save a backup of the original.
After the project was converted, I noticed that all of the Controls had lost the unique names I used when creating them as well as all of the text that were on buttons etc.
Is there an option/prefere
-
- TextBlock Alignment
by Bigsby
- 2 Replies
- Last post
by Bigsby
- Code Snippet
<Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " FontFamily="Segoe UI">
<Page.Resources> <Style TargetType="{x:Type Button}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x
-
- Binding via procedual code
by vdhant
- 13 Replies
- Last post
by Dr. WPF
- Hi guys
I have a series of images that i am placing on a canvas. These images are being created via procedural code as there can any number of these images in any random position. I also have a slider on this canvas with a max value of 1 and a min value of 0.8. When the slider is moved up and down the images should shift on the x and y axes, relative to the current value of the slide. So
-
- No imaging component suitable to complete this operation was found.
by MyP3uK
- 8 Replies
- Last post
by Lukasz_S
- I'm new at WPF, I'm trying to load image from bytes array with following code:
Code Snippet
// bytes of the image byte[] photoSource = (byte[])row["Photo"]; // the bitmap object BitmapImage bitmap = new BitmapImage(); MemoryStream strm = new MemoryStream(); strm.Write(photoSource, 0, photoSource.Length ); // Read the image into th
-
- LINQ to SQL JOINs with Multiple Keys
by Ben Hall &#40;UK&a
- 4 Replies
- Last post
by ben2004uk
- Hello,
First, sorry for the poor title of the post - didn't know what else to put
On to my problem. I have a table which contains two primary keys, ID and LatestRevision. This then links onto another table which also has a ID, Revision, Title, Modified, Body. I wanted to do a join for the latest version of the document, based on the contents of the first table, so in SQL I would hav
-
- discovering your own end point in WCF
by Bas-Hamer
- 1 Replies
- Last post
by Dave Cliffe - MSFT
- I have a service that hosts a number of workers. the workers grab items from an other service to execute, and they report back to the other service when they finish.
Now i want to keep track, in my service that manages the items of work, who is working on them. The way I wanted to acomplish this is for the worker service to pass it's ID (this is an object that includes it's endpoint URI as
-
- ANy good book for WPF ??
by Serge Calderara
- 6 Replies
- Last post
by LesterLobo - MSFT
- Dear all,
I know what you gonna say, there isa lot of books based on WPF, but if anybody could tell me what is the best ressource for learning WPF from th basic to advanced feature and with clear working sample, I will trust him..
Which book should I get
thanks for help
serge
-
- Binding and DisplayMemberPath
by George F DArcy
- 6 Replies
- Last post
by George F DArcy
- Hi all,
I have a ComboBox whose ItemSource is a collection (MyCollection) of custom objects (of type MyKeyValueObject). MyKeyValueObjects have two properties; Key and Value. Value is what is seen in the ComboBox, and Key is the value I want to store in the database.
The ComboBox is in a Grid. The Grid's DataContext is another object, we'll call it MyMainObject.
like this;
-
- LocBaml fails to create a valid CSV file
by ckellner
- 3 Replies
- Last post
by ^balla^
- I'm trying to use LocBaml to parse a satellite assembly into a CSV file. I can use the tool to parse a satellite assembly in a test app just fine, but when I try ot use it on a prototype of a larger WPF project, it parses out a < 1Kb CSV file. I do not receive any errors when running the utllity, just a very incomplete.CSV file.
I have moved the project exe local to the LocBaml utility w
-
- 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
-
- Will VC++ 2008 support large string literals?
by kevin m
- 5 Replies
- Last post
by Jonathan Caves - MSFT
- Will VC++ 2008 support string literals in excess of 2k Compiler error C2026 is pretty annoying. If not, will any future VC++ compiler support a larger limit
-
- Drag'nDrop and other interactions with Windows from a browser
by Muzzzy
- 2 Replies
- Last post
by Chango V. - MSFT
- Hi, I'm researching different ways of moving our company's application on the web and I'm very enthusiastic about WPF. There is one problem though: the application is heavily interacting with host operating system: drag and drop files to/from the application, synchronize contacts/email/calendar with Outlook, etc. But from what I understand when a WPF application runs from a browser it runs in a sa
-
- How to expose a Webservice at two addresses: one with http, the other with https?
by Parker Lewis
- 13 Replies
- Last post
by Parker Lewis
- How can I expose a Webservice at two addresses: one with http, the other with https
I tried the following, but unfortunately I can only access the first service:
< xml version="1.0" encoding="utf-8" > <configuration> <system.serviceModel> <services> <service name="Webservice1" behaviorConfiguration="Behavior1"> &
-
- What the difference between <UserControl /> VS <CustomControl/> and why ..?
by Epsilone3
- 1 Replies
- Last post
by Laurent Bugnion
- Hi guys.
I got this :
< UserControl
xmlns ="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns : x ="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns : d ="http://schemas.microsoft.com/expression/interactivedesigner/2006"
xmlns : c ="http://schemas.openxmlformats.org/markup-compatibility/2006"
c :
-
- Sharing Resource Dictionary for more than one projects
by zehn anderson
- 1 Replies
- Last post
by Chango V. - MSFT
- Dear experts,
May i know is there any way to let more than one projects using only one resource dictionary file The resource dictionary may save in local folder.
Thanks!!!
-
- specifying an enum value from within XAML
by John Dunn
- 9 Replies
- Last post
by Vlad Bezden
- Is it possible to specify an enum value ( defined somewhere in a .cs file ) as a value for the Tag of a ComboBoxItem I'd like to associate items in the ComboBox with particular enum values so I don't have to convert within C#.
I'd like to do something like this-
class Test {
public enum MyEnum { Value1, Value2, Value3 };
}
< ComboBox >
< ComboBoxItem
-
- Linq2SQL Count, Single/SingleOrDefault operator bugs(?) in ASP.Net applications
by Dzugaru
- 2 Replies
- Last post
by Dzugaru
- DB.Customers.Count(c => c.City == "London");
Specified cast not valid exception, if there is some customers from London.
However
Func<Customer, bool> predicate = c => c.City == "London";
DB.Customers.Count(predicate);
works well.
Another bug( ):
When I delete customer from database in one page request and then execute
Customer cust = DB.Custo