-
- Loading eps/wmf pictures with bitmapdecoder
by Willie007
- 1 Replies
- Last post
by Robert A. Wlodarczyk - MSFT
- Hi,
i have a procedure to load a picture.
At this point i am having troubles in loading eps and wmf files with the generic procedure.
is there a different way that will work for all
Code Snippet
Private LocalImageBitmapBuffer As BitmapDecoder = Nothing
Private Function LoadPicture( ByVal Picture As String ) As Boolean
Try
CloseCurrentPict
-
- Custom Control binding
by JVJ
- 5 Replies
- Last post
by JVJ
- I've created a custom control that have two data templates: ViewTemplate ( when edit mode is false) and EditTemplate (when edit mode is true) .
I have a problem with binding:
a) when I use Content = " {Binding} " and
< TextBlock Name = " View " Text = " {Binding Path=Name,Converter={StaticResource NameConverter}} " />
< TextBox
-
- API Messaging with WCF
by dannywooly
- 7 Replies
- Last post
by Martin Petersen-Frey - MSFT
- Hi All
Im developing an API in .net 2.0 and i want to keep in mind any useful tips/information relating to migrating it to 3.0. The current idea i have is that each method will take a string of XML with parameters imbedded in it and the return will be an object with xml in the string property.
This allows full intergration to 3rd Parties and offers me a degree of flexibility with the
-
- Tracking identity doubt...
by Corrado Cavalli
- 0 Replies
- Last post
by Corrado Cavalli
- LINQ to SQL Manages object identity by caching object instances inside Table<Entity> so that if a query resolves to a row whose primary key has previously been loaded, previously created instance is returned instead of a new one so that row identity=object identity.
This is confirmed by this simple test i've done:
MyDb db = new MyDb(); // Customers table contains a row with Name=Co
-
- When switching between 2 styles I lose listview grouping...??
by PlaTyPuS8
- 14 Replies
- Last post
by PlaTyPuS8
- Hi!
In my application it is possible to switch between 2 styles (the both are displaying the same listview!!), but when I switch between these 2 styles, I lose the grouping in listview....
Here is my XAML code :
http://test.duotone.ch/Capture.JPG
And my C# code-behind :
Code Snippet
public partial class Test3
{
CollectionViewSource _listing
-
- Viewport3D & CPU Usage
by Klinsman
- 4 Replies
- Last post
by Jordan Parker - MSFT
- I use Viewport3D to draw some 3D graphics, but after several times of redraw (add lots of 3D lines and remove them) the UI seems to be dead. The CPU usage is 10% after app run, that rise to 40% after 1st 3D being drawn, and then to 70% after the 4th redraw. Finally the app has no response after about 15th times draw and clear circle.
What's wrong with Viewport3D Because the graphic has a lo
-
- Strange Lines in animated Images (Vertical Syncing issue)
by Jonathan.Peppers
- 6 Replies
- Last post
by Jonathan.Peppers
- I have moving transparent PNG images in my application.
When moving them slowly, strange lines show up over the images. It looks like half of the image is lagging behing the upper half--almost like my monitor has a crappy refresh rate or something.
Is this normal Is there a way to fix it
My machine is Tier 2 and WPF perf reports it as being hardware rendered. I'm running Windo
-
- Request-Reply Contracts in Duplex Contract?
by Timo1
- 1 Replies
- Last post
by Brian McNamara - MSFT
- Hi!
Is it possible use request-reply contracts in duplex contract
In follow link there is some answer of about (Deadlocks using duplex contracts):
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=318421&SiteID=1
But there is not defined any reply types
Br, Timo
-
- MediaElement embedded in a FlowDocument
by zeOlivier
- 3 Replies
- Last post
by Grzegorz Zygmunt - MSFT
- I have a FlowDocument and I want to insert a video. But this c# code doesn't work. The video is not displayed in the flowdocument.
Any ideas to solve this problem
Thanks.
FlowDocumentScrollViewer fdr = new FlowDocumentScrollViewer ();
FlowDocument fd = ( FlowDocument ) XamlReader .Load( new XmlTextReader ( new StringReader (p.content)));
MediaElement me
-
- Impossible to create a simple ScrollBar ControlTemplate...
by etiennemartin
- 5 Replies
- Last post
by etiennemartin
- I want to make a ControlTemplate to customize my scrollbar, but fall on an strange behavior. Here is the code:
< Window x:Class = " ScrollTest.Window1 "
xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation "
xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml "
xmlns:l = " clr-namespace:Test "
Title = "
-
- do i need any plug in to see a XAMLBrowserApplication running in IE7?
by Yanson
- 1 Replies
- Last post
by Drew Marsh
- Hi
Do i need any plug in to see a XAMLBrowserApplication runnig in IE7
Thanks
-
- SQL login?
by KevinBurton
- 14 Replies
- Last post
by KevinBurton
- I am trying my first LINQ query and I am getting:
TestCase 'M:BuySeasonsBrowse.MainWindow.transactionButton_Click(System.Object,System.Windows.RoutedEventArgs)'
failed: Login failed for user ''. The user is not associated with a trusted SQL Server connection.
System.Data.SqlClient.SqlException: Login failed for user ''. The user is not associated with a trusted SQL Server connection.
-
- Express Codename "Orcas" Images now available!
by Weston Hutchins - MSFT
- 4 Replies
- Last post
by Spidermans_DarkSide - VSIP
- The Visual Studio Express Codename "Orcas" April CTP images are now available on the Express download page . Please follow the "Manual Install Instructions" to download and install the Express images.
-
- listboxitem controltemplate databinding for reusability
by evergreensbs
- 6 Replies
- Last post
by evergreensbs
- i am stuck with a problem, i am using one listboxitem template for using with different diffrent listbox. i am using three listboxes and i want to use that same listboxitem template for all the listboxes, i dont want to make duplicates of that template and use.
i am writitng what i want to do, so u can better understand my problem.
1st listbox:
< ListBox x:Name = "
-
- Position of a mesh
by Wendy Sancho
- 1 Replies
- Last post
by Jordan Parker - MSFT
- Hi. The problem I have is that when I load two identical shapes into the viewport, one next to the other, their MeshGeometry3D Positions properties are identical too. Does anyone how to get the position in the viewport of a mesh
-
- Can't install the .NET 3.5 framework on Vista
by Peter1979
- 22 Replies
- Last post
by Peter1979
- Using either the standalone install or the Orcas beta 1. I get:
[05/04/07,16:18:32] Microsoft .NET Framework 3.0SP1 WF (CBS): [2] Error: Installation failed for component Microsoft .NET Framework 3.0SP1 WF (CBS). MSI returned error code 1 [05/04/07,16:27:11] Microsoft .NET Framework 3.0SP1 WF (CBS): [2] Error: Installation failed for component Microsoft .NET Framework 3.0SP1 WF (CBS). M
-
- AppDomain Isolated WPF Demo
by lior is
- 2 Replies
- Last post
by Chango V. - MSFT
- Hi,
I was start play with AppDomain Isolated WPF Demo.
i insert to class SceneInput2D
this code:
void GraphIt_Click( object sender, RoutedEventArgs e)
{
throw new ApplicationException ( "only for test Exception!!!!" );
Display.Children.Clear();
Grapher grapher = new Grapher ();
Display.Children.Add(grapher.Show2D( this .Equation.Text));
-
- How to match an Element in a Namespace
by AnthonyS
- 3 Replies
- Last post
by AnthonyS
- Hi All,
I have spent so long today searching the net for a way to use Linq To Xml to locate a node and update it, I've given up!
I've decided I'm missing the point somewhere, which is why their is nothing on the net.
I'm trying to modify Rsbuid (from Codeplex) that deploys SQL Reporting Services reports nicely.
I am loading the XML report and trying to programmaticly set th
-
- How to know when an Animation is really, completely done?
by Jeremy Chaney
- 11 Replies
- Last post
by Jeremy Chaney
- I have an animation that changes the position of a control in my UI. When the control finishes moving, I then run some additional code that requires the control's final position. I've added a handler for my storyboard's "Completed" event, and it does get called. The problem is that when it gets called, the control isn't really finished moving. I added an event handler (PositionChanged) f
-
- Timeout in call context
by Alexnaldo Santos
- 1 Replies
- Last post
by Brian McNamara - MSFT
- Hi,
Is it possible to set a timeout for a method call
My default timeout is 10min, but for a specifiq method call I want to set to 1min...Does anybody know if is possible and how
Regards, Alexnaldo Santos
-
- Media Element Formats and Player
by neotom
- 5 Replies
- Last post
by neotom
- My question relates to the video format and media player in WPF. In previous frameworks, while mostly used, Direct3D was used to play videos in specific formats such as AVI or WMV. While this may work in the new framework, it is under my impression that the WPF Media element only works with WMV. Plus, in order to play the media element itself the user must have windows media player installed in or
-
- Problems with Xaml, Classes from External Dlls and the Class Attribute
by Esrever
- 6 Replies
- Last post
by Esrever
- Hi,
This are 2 Problems at once, maybe i should open 2 differend threads - but i think i have some Configuration failure of my runtim or something else... i am using VS 2008 Beta 2.
i have defined a class for that i want to define a DataTemplate for that class.
Class TextMessageContent is placed in a shared DLL.
public class TextMessageContent : MessageContent
{
-
- Best way to create textbox with "intellisense"?
by Schneider
- 5 Replies
- Last post
by WPCoder
- I need some ideas for the best way to create textbox with "intellisense". My current plan is to inherit from TextBox in preference to UserControl. This means I can substitute my IntellisenseTextBox inplace of any regular TextBox, and get all the existing functionality of TextBox without needing to re-expose properties of the TextBox as I would on a UserControl. I also want to be able to
-
- Event Bubbling
by WPF - I think I like it
- 1 Replies
- Last post
by benskynet
- Hello,
I have a root Canvas element, within a Window, that defines a MouseLeftButtonDown event. Within the Canvas, I have a TextBlock that I want to handle the MouseLeftButtonUp event.
Within the MouseLeftButtonDown event, I have:
Code Snippet
this .DragMove();
Within the MouseLeftButtonUp event, I have:
Code Snippet
MessageBox.Show
-
- What is new in XAML (WPF) in .NET 3.5?
by CSharpNewbie22
- 1 Replies
- Last post
by Drew Marsh
- Hi!
What is new in XAML (WPF) in .NET 3.5 Or more concrete: What are the differences to .NET 3.0 regarding XAML (WPF)
Regards
CSharpNewbie22