-
- Custom Routed Events
by Bruno_Silva
- 2 Replies
- Last post
by Bruno_Silva
- Hi,
I'm trying to pass some values in a Routed Event using a Custom RoutedEventArgs Class. In C# 2.0 I would create a Delegate to create a new event for my class with the custom EventArgs in the arguments section. How can I do this with RoutedEvents I created a class that derives from RoutedEventArgs and I added the extra functionality I needed, now what do I have to do to create a RoutedEvent
-
- DockPanel in Canvas Problem
by eclere
- 2 Replies
- Last post
by eclere
- Hello,
i want a DockPanel as Child in Canvas with the same Width as the Canvas.
Code Snippet
< Canvas Background = " Pink " >
< DockPanel Width = " {Binding Path=Parent.ActualWidth} " Height = " 200 " Canvas.Left = " 0 " Canvas.Top = " 0 " Background = " Black " />
</ Canvas >
-
- Serialization Issue
by pallz
- 3 Replies
- Last post
by pallz
- Type 'MyFramework.Group.GroupDO' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute.
I have a dll 'MyFramework' to be used in a WCF service. This dll is added in my service.
I keep getting the above error
- Marked the GroupDO as serializable.
- Marked the Grou
-
- Need help picking base class to inherit from
by Scott Grosch
- 2 Replies
- Last post
by Drew Marsh
- I want to write a PieChart control, mainly as a learning tool. I'm struggling with what to pick as the base class through. The intent would be that I'd do:
<PieChart ...>
<PieChartItem .. />
<PieChartItem ../>
...
</PieChart>
so it doesn't seem like creating a UserControl is the proper way to define this, but I'm not sure what control I should i
-
- Retrieving non-Entity Data
by Shawn Wildermuth - MVP &am
- 5 Replies
- Last post
by Shawn Wildermuth-MVP
- I have the following code: using (PersonModel ctx = new PersonModel(_cs))
{
ctx.Connection.Open();
try
{
string qry =
@"SELECT Contact.FirstName, Contact.LastName
FROM PersonModel.Contact as Contact
WHERE Contact.FirstName = 'John'";
ObjectQuery<DbDataRecord> query = new ObjectQuery<DbDataRecord>(qry, ctx);
ObjectQueryResult<DbDataRecord> resu
-
- Help - WPF Collision Detection
by ChrisQuesada
- 1 Replies
- Last post
by Peter S Antal - MSFT
- Hi,
I'm working on an applicacion in WPF, and I would like to provide a model for (ModelVisual3Ds) collitions. For example, if are some 3D objects in my ViewPort3D and I move them want to know if any 3D object hits some of the others 3D objects.
Thanks Chris
-
- How to scale a FixedPage or Canvas?
by bes7252
- 1 Replies
- Last post
by Ifeanyi Echeruo
- I have some images and paths displayed on a canvas. I'm adding the canvas to a FixedPage, then the FixedPage to a FixedDocument and using XpsDocumentWriter to save it as an XPS file.
I'd like to scale the canvas (and everything on it) somewhere in the process described above. Can someone point me in the right direction to do this Seems like a relatively simple process, but I don't know where to
-
- IWsdlExportExtension contracts
by DotNetDave
- 2 Replies
- Last post
by DotNetDave
- Hi all,
I we have an environment where there is a set or message inspectors that on the client, inject a custom header to pass information to the service and then on the service side take it and expose the information as a class that is available to service methods.
The problem i have is this header is not exposed on the wsdl and i would like it to be so that non wcf clients can pass the inf
-
- How to display an image and text in a listbox where the source is a XML file
by lpx
- 6 Replies
- Last post
by Sam Bent - MSFT
- Hi, I want to fill a listbox with items from a RSS xml file which as a description and a path to a image. I have been searching and reading about data binding and i can already see the field i want to show, but not the image. This is my actual code: <ListBox ItemsSource="{Binding Mode=Default, Source={StaticResource rssDS}, XPath=/rss/channel/item/title}" IsSynchronizedWithCurrentItem
-
- Idle in WPF
by lloyd
- 8 Replies
- Last post
by lloyd
- I'm working in a mix of new WPF code and old Winform code (slowly) going away. I have some control which do preview of big data. It takes sometime to generate the preview with GDI+, save the System.Drawing.Image to a stream and read it with a
System.Windows.Media.Imaging. BitmapFrame .Create(stream)
So I like to do that only when my App is Idle.
I searched everywhere in the doc fo
-
- advanced designtime support for my robot usercontrol
by bitbonk
- 8 Replies
- Last post
by bitbonk
- I have created a UserControl representing a onearm robot with IK capabilities, i.e. if set the x and y coordinates of the hand (both are simple double dependency properties) body, upper and lower arm move and rotate adequately. How can I add designtime support in cider and blend in a way that I can easily animate that robot by dragging the hand If I drag the hand in cider or blend the x and y prop
-
- How to Show RepeatButtons on Slider
by Greg McPherran
- 1 Replies
- Last post
by Greg McPherran
- How can RepeatButtons for Slider be enabled/shown
-
- Why is XAML Serialization sandboxed?
by bes7252
- 5 Replies
- Last post
by Eli Cohen
- Why is XamlWriter.Save() sandboxed Am I understanding correctly that this is a limitation of the implementation and not security related
It's very frustrating to have a nice way to capture the layout of a Canvas an store it, but find it doesn't work for XBAPs. Any other suggestions
-
- WS-ReliableMessaging
by Jasper Siegmund
- 6 Replies
- Last post
by Sorin Alexander - MSFT
- I'm trying to implement a reliable web service structure. It's actually quite simple; an observer receives information from another application (not relevant for my question) and distributes that information to a number of attached clients. The distributing has to be done via a reliable webservice, meaning that software/hardware/connection errors should not result in messages getting lost. Now I u
-
- How to generates app.config for Self Host with NetTCP transport?
by jdang
- 6 Replies
- Last post
by srilatha inavolu
- Hi Eveyone,
I am leaning how to self hosting a service with NetTcp transport. I just want to know how to use SvcUtil.exe to generates the App.config file for client ( see server's app.config file at the end)
Regards,
Jdang
<!-- App.config of Server application -->
<system.serviceModel> <services> <service name="Company.Services.TestServices"
-
- WCF TimeStampHasCreationTimeInFuture exception
by stsym95734
- 4 Replies
- Last post
by stsym95734
- Hi, any idea why my service is throwing the following exception: TimeStampHasCreationTimeInFuture
Thanks
Here the partial trace detail:
< TraceData >
< DataItem >
< TraceRecord xmlns = " http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord " Severity = " Error " >
< TraceIdentifier > http://msdn.microsoft.c
-
- Hiding "Pen/Cursor" when using an InkCanvas
by Ted12893
- 1 Replies
- Last post
by Stefan Wick - MSFT
- I have an application where I have a fullscreen InkCanvas, this application is not operated by mouse but rather by a touchsensitive screen with a pen. What I want to do is to hide the cursor/pen since this is not necessary when using a real pen for the screen.
-
- save page to image, not canvas
by Rondeus
- 3 Replies
- Last post
by Rondeus
- I had seen the samples of saving a canvas as image, and it work perfect. My problem is, that i need to generate a thumbnail image from a Page element that loads a xaml file. I tried many ways without having success. Does anyone know how to work this out Thanks!
-
- Error installing Samples for Visual Basic 2008 Express Beta 2
by Kostja
- 8 Replies
- Last post
by nonexist11
- Hi everyone,
I'm getting an error installing Samples for Visual Basic 2008 Express Beta 2 saying that some cabinet file is corrupt and cannot be used.
Anybody having the same problem or a solution
Regards,
Kostja
-
- WCF Issue when hosting in IIS.
by ClemsonTigers71
- 10 Replies
- Last post
by ClemsonTigers71
- I am not sure if this is the right form because I didn't see any WCF forms.
Anyway, I made a very simple WCF object and hosted it in IIS. Now I have a
client that builds 20 threads, and have each thread call the WCF object and
half the threads work and the other half get:
System.ServiceModel.CommunicationObjectFaultedException was caught
Message="The communication object,
System.
-
- Linq to entities and LIKE
by JPAK
- 4 Replies
- Last post
by Michael Pizzo - MSFT
- I spent some time last night trying to implement a query having a LIKE expression as well as SKIP and TAKE expressions with parameter for Sql server 2000.
I could not have Linq work for the LIKE expression, so I tried an Object query with LIKE, SKIP and LIMIT to find that LIMIT did not work with parameters on Sql 2000.
So I ended up mixing Object query and Linq in the same expression
-
- Deserializing data as a derived type
by CommonGenius.com
- 14 Replies
- Last post
by TrevorW
- As the WCF documentation explains repeatedly, one of the major differences between WCF and remoting is that remoting serializes by type and WCF serializes by data contract. This means that an object can be serialized as one type at one end and deserialized as another type at the other end, as long as the two share the same contract. Among other things, this makes it possible to create different ve
-
- Mouse clicking problem
by DiamonDogX
- 14 Replies
- Last post
by Denis Vuyka
- I have a canvas with a world map type of control on it and I have a way to visually create a simple route. The user clicks on the map and points are placed at the clicked locations and connected with lines (specifically, LineGeometry) as more points are added. I have an event that fires when the map is clicked, which works fine and plots the points accordingly, but what I am wanting to do now is h
-
- Wooley's Wonderings : Upcoming Orcas CTP enhances XML in VB
by vans_p_2c07ca
- 2 Replies
- Last post
by vans_p_2c07ca
- Wooley's Wonderings : Upcoming Orcas CTP enhances XML in VB I'm eagerly looking forward to the next (February/March ) CTP of Orcas . The XML team has just annouced some of the changes that will be coming with the next ...
-
- how to cancel a binding
by linkspeed
- 9 Replies
- Last post
by linkspeed
- I have a listview in a dialog. This listview binds to a collection. Each row has a check box, which is binding to a bool property in the items in the collection. It works fine so far. Tick and untick check boxs reflect in the underlying objects. But it is a dialog box, when user click cancel button, i want to throw away the changes he has made on UI. I am thinking about 2 solutions: 1. make a clon