-
- Canvas RenderTargetBitmap
by Dicks
- 1 Replies
- Last post
by Drew Marsh
- Hello,
I am trying to render a Canvas to a PNG using the following code;
RenderTargetBitmap rtb = new RenderTargetBitmap (( int )clientRect.Width, ( int )clientRect.Height, 96d, 96d, PixelFormats .Default);
DrawingVisual dv = new DrawingVisual ();
using ( DrawingContext dc = dv.RenderOpen()) {
VisualBrush vb = new VisualBrush (elem);
dc.DrawRectangl
-
- need help with custom segment type
by Brannon
- 3 Replies
- Last post
by Adam Smith - MSFT
- I'm looking for suggestions on the best way to build this type of application: I need to draw a custom spline function. I also need to allow my customers to move the spline in real time by dragging control points around. I guess I get confused when I start thinking about where the data should be stored. Suppose I were to use BezierSegment in the WPF toolkit directly. Is that object or the Path obj
-
- WPF crashes on XP SP2
by Denis Onischenko
- 10 Replies
- Last post
by Denis Onischenko
- WPF crashes when I set focus on any editable text control (TextBox/RichTextBox)
for example on this xaml:
<Page xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation "> <TextBox/> </Page>
when I click on TextBox in browser, following exception is occured:
Startup URI: D:\1.xaml Application Identity: file:///D:/WINDOWS/Microsoft.Net/Fr
-
- How to increase maxconnection for HTTP Requests from ASP.NET app
by iamsleeppy
- 6 Replies
- Last post
by iamsleeppy
- Hi all,
I have been stuck trying to figure something out for a few days so I would appreciate some help. I have a ASP.NET web services app that is built using **.NET 3.0 (WCF)** and communicates with backend web services for data. While load testing I realized that the app limits itself to 12 requests against backend services which I thought I could increase by changing the maxconnection f
-
- Where can I find resources or samples to configure a client and service properly?
by Dawa Tsering
- 4 Replies
- Last post
by Dawa Tsering
- Here is what I've done:
1. I created a service using VS.
2. The service endpoint is configured to communicate using wsHttpBinding
3. The service is hosted in a windows service
3. Created a client
4. Added the service reference using VS
5. After testing, both service and client work fine on the same machine
6. Move the service to a remote machine (out of LAN)
7. Added a serv
-
- INotifyPropertyChanged - Binding Textbox
by ManjuVijay
- 6 Replies
- Last post
by Rob Relyea
- Hi,
I want to know the purpose of INotifyPropertyChanged in WPF. I created a class as following
namespace Test{ class TestProp : INotifyPropertyChanged{ string _mycolor; public string MyColor{ get{return _mycolor;} set{ _mycolor = value; OnNotifyPropertyChanged("MyColor");} }
private void OnNotifyPropertyChanged(string p) { if (PropertyChanged != null) { PropertyChanged(this, new Pr
-
- ArgumentNullException Value cannot be null...
by Kazi
- 10 Replies
- Last post
by Mathew Charles
- Hi Everybody,
I get the following exception on Inserting or Updating the db (non express sql2k5 sp1) with DLinq (May CTP). We had no such problem with the PDC release of DLinq, but we switched to the May CTP what introduced this bug.
Is there any chance for a fix What can I do for it
Thanks for any help for advance:
Kazi
System.ArgumentNullException was unhandled Message="
-
- Windows Service --> WCF IIS Hosted Service
by RickGaribay.NET
- 3 Replies
- Last post
by RickGaribay.NET
- I have a Windows NT Service that calls a WCF basicHttpBinding endpoint.
The WCF service is running on IIS with Windows Integrated security. ASP.NET Authentication is set to Windows.
ASP.NET Authorization is used on the hosted WCF service for brute force authorization of the caller, in this case the Windows Service.
The Windows Service runs as "MYDomain\MyServiceIdenti
-
- Binding
by Britto.S.V
- 4 Replies
- Last post
by Marlon Grech
- Hi, I am trying to bind a TextBlock with a field property of a class in Xaml.The class will be updated at the runtime. Anyone please provide me a solution
-
- Two or More Assemblies have the same identity
by Baffa
- 8 Replies
- Last post
by Baffa
- I have just created my first XBAP application with Orca March CTP and I receive the following message:
Warning 1 Two or more assemblies have the same identity 'System.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, ProcessorArchitecture=msil'. flashOfficer
The browser show the following message:
Startup URI: D:\Orca Projects\CRM\flashOfficer\bin\Debug\flas
-
- Moving Visuals On Screen
by Greg McPherran
- 2 Replies
- Last post
by Greg McPherran
- In general what's the normal method for moving a visual arbitrarily on the screen (e.g. with mouse) as opposed to an animation The Magnifier sample uses canvas and changes position of visual on canvas with mouse coords. Canvas seems more like a layout control - is it designed for motion What about performance Other methods
Thank You
-
- How To: Create Custom Client and Service Credentials
by Adam Weigert
- 5 Replies
- Last post
by Adam Weigert
- I read this article on MSDN, but it doesn't describe how you consume a custom ClientCredentials on the service side. I'm fairly new to WFC and am looking to create a custom ClientCredentials class that includes additional meta information about the user that can be used to determine what authority they have to perform a particular function within the service.
Maybe a custom ClientCredentials cl
-
- Select item by Tag from ComboBox ?
by DougMP
- 2 Replies
- Last post
by Ramanujam Sampath
- I have a list of objects. We will say they are Employee's for the sake of this question. and each employee has an ID and a Name.
I bound the list of employees to a combobox. However, i want is to have the name as the text displayed in the combobox and the id as the value of that item behind the scenes. I need to be able to select the appropriate name later on based on a given id. So I need
-
- Using Arrow Keys Does Not Raise Key Events in ComboBox
by vimike
- 4 Replies
- Last post
by JBsnorro
- Hi,
i tried to capture the keyevent (KeyDown). when i press the down arrow button the key down event does not get triggered.
i even tried out previewkeydown event but it does not get raised on using arrow keys.
I have set the isEditable to true as well.
How do i get around this problem
-
- WPF - Inherit WPF Button / Control and Applying System 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
-
- WS-Security with basichttpbinding
by kawano1h
- 5 Replies
- Last post
by Todd West
- I have several questions regarding WS-Security and how BasicHTTPBinding implement them. I've read WS-SOAP Message specification and not clear on some points either. I read the following page too.
http://msdn2.microsoft.com/en-us/library/ms730294.aspx
1. Is it possible to implement WSS SOAP Message Security Username Token Profile 1.0 without implementing WSS SOAP
Message Security 1.0 Or is
-
- Input in a FlowDocument control
by ChicagoDave
- 4 Replies
- Last post
by LesterLobo - MSFT
- How can I add text (stylus/keyboard) input to a FlowDocument control
David C.
-
- Richtextbox gets wrong fontsizes
by bepi
- 2 Replies
- Last post
by bepi
- Hello,
I have a Richtextbox in WPF and paste Text in Fontsize 10pt from Winword. If I copy this text from the RTB and paste it back in Winword it changed to 10.5 pt.
And idea
-
- Linq to SQL's SubmitChanges() does not update database
by Frank Neubecker
- 6 Replies
- Last post
by Frank Neubecker
- Hi All,
I'm using Orcas Beta 1 and I'm unable to update the database using SubmitChanges().
I have a simple database with a table called "Document" that contains something like the following:
Docid Number Title
1
001Doc1
First Document
2
001Doc2
Second Document
3
001Doc3
Third Document
I Created the dbml by adding
-
- FlowDocument
by Nyi Nyi Thann
- 4 Replies
- Last post
by Nyi Nyi Thann
- HI all, I would like to creat a FlowDocument just like New york times reader 's section pages. How can i do in XAML
-
- ArgumentOutOfRangeException in SubmitChanges
by Ilia
- 14 Replies
- Last post
by Mathew Charles
- Hi,
I receive the following exception when trying to submit changes made in a database backed class.
Test method UserManagerTest.MyTest threw exception: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index.
at System.Collections.BitArray.Get(Int32 index) at System.Data.DLinq.SimpleTrackedObject.
-
- Safer XAML deserialization
by kpr
- 1 Replies
- Last post
by Marco Zhou - MSFT
- I have a XAML file which contains a Window with a Canvas with whatever content. I'm using XamlReader.Load() to deserialize the XAML file. The problem I have is that the Load method throws a XamlParseException if there's something in the Canvas it doesn't recognize.
I would like to have the possibility to interact with the parsing. So, when the XamlParser finds something it doesn't recognize
-
- [ ERROR ] Can't install .NET Framework 3.5
by Corn&#38;&#35;
- 10 Replies
- Last post
by BulleT2k
- I can't install Framework 3.5. When I open the log file I get the following errors: [06/07/07,21:09:51] Microsoft .NET Framework 3.0SP1 (x64) WCF: [2] Error code 1642 for this component means "De Windows Installer-service kan de upgrade niet installeren omdat het programma voor de upgrade ontbreekt, of omdat de upgrade een andere versie van het programma bijwerkt. Controleer of het programma
-
- Binding a Checkbox to a FK Master-Detail-Detail
by -&#61;B3N&#61;
- 4 Replies
- Last post
by -=B3N=-
- So I've got two tables, tblGroups and tblUsers , with a foreign key FK_tblGroups_tblUsers joining the shared GroupName field.
There are two combo boxes. cboGroups lists the groups, and cboUsers lists all the Users in the currently selected group.
I also have a checkbox, chkDefaultUser which IsChecked is to be bound to the boolean Default field of tblUsers , to be updated each time the
-
- Charting with WPF
by TexasGene41
- 4 Replies
- Last post
by Adam Smith - MSFT
- My main focus is to draw charts. I am trying to place lines and other elements on a Canvas. The Canvas has its size determined by the window. I do not want to set any value that represents any coordinate of the window. I only want to set values that relate to the real world.
For example, the scale of the Canvas is X: 1 to 25, Y: 3.2 to 9.4
I am placing lines on the Canvas that would draw