I have one main page in my Silverlight project. I have two frame inside this page. The one called Contents and the other called Footer. What I wonder is, how can I change the variables in the content in the Content of whether that's a click event in the Footer?
In Mainpage.xaml:
<UserControl
x:Class="SilverlightApplication10.MainPa...
Is there a general rule for when you should and shouldn't have a generic interface?
My case in point is a simple data frame interface. There is a "user data" member to allow the implementation to attach any implementation-specific data that needs to go with the frame. I don't know whether to leave it as an object type (and require the...
I can't for the life of me find a good NH ICriteria walkthrough. Can anyone assist in pointing one out?
...
I'd like to overlay a number of images (PNG, same size for all, with transparency). So far, my code is as follows.
bg = New Bitmap(My.Resources.blue)
g = Graphics.FromImage(bg)
overlay = New Bitmap(tree.Image)
g.DrawImage(overlay, 0, 0)
Now, I would like to overlay one more image, but this is based on a user's input f...
Hello, I'm a beginner with WF, but I've read a book and done a lot of googling. I want to write an inventory management service. The inventory is made up of individual items which have a state:
Spare
Installed
In-Repair
Items may spend months in each state, and there are thousands of items.
The question is, do I create a state machi...
I have an application that creates an audio file. I need to provide a link that brings up the save dialog when cicked for users to save the file.
I have the download button setup as a link button. From my research it appears that to be able to force bringing up the save dialog, I need to add the following code:
Response.ContentType = ...
I'm using Active Record with ActiveRecord Facility, and am trying to use a custom NHibernate query. Do I need to define a mapping for a class even though it extends ActiveRecordBase and has ActiveRecord attribute?
[ActiveRecord("VotesOnQuestions")]
public class VoteOnQuestion : ActiveRecordBase<VoteOnQuestion>
{
[CompositeKey]
p...
We are implemented expression evaluator via hosting IronRuby engine. Simplified version of evaluator you can see here.
Now we are trying to get more performance from IronRuby via executing expressions in many threads (and we got it). One question bothers us - is Execute method thread safe?
...
I derived a class from ComboBox, made it an owner drawn list box (DrawMode.OwnerDrawVariable style), and by overriding OnMeasureItem and OnDrawItem I add special items to the drop-down list (separators, for example) which are of a smaller/larger size than the normal items that inhabit the control.
Now, the problem I'm having and can't s...
What is the difference between ControlStyles.DoubleBuffer and ControlStyles.OptimizedDoubleBuffer?
ControlStyles.DoubleBuffer does not show up in the Intellisense drop down whereas ControlStyles.OptimizedDoubleBuffer is in fact listed.
The MSDN documentation does not make the difference immediately clear (to me at least).
...
The question is pretty "simple".
I have an engine that can work with both DirectX9 and DirectX10 with SlimDX in C#.
I use the Stopwatch class to time the game and test speed of some routine.
Strangely exactly after the creation of the DirectX9 the floating point of the StopWatch go crazy and the GetTimeStamp()/Frequency division returns ...
Is there a way to convert WAV files to MP3 in ASP.NET? I have heard of LAME but haven't found any examples for a web application. Also, I wasn't sure if it can be commercially used.
Thanks
...
I am designing a list-based app in C# WinForms where I want to store my data in an XML file (which will eventually get serialized into a database). I have a custom control that displays my list data based on my XML, but I'm having trouble determining the best structure to handle the data. I have a ListManager class that keeps track of an...
I've been looking at some different options for reading RSS Feeds in .Net. I've seen frameworks like Argotic, etc. My question is, do any of these frameworks assist in determining which items in a feed are new? Or is that outside their scope?
...
Hi everyone
As a follow up to this thread
I found that the overlay function was working fine. However, it seems that if I use the overlay function while reading an image from a stream, that it would enlarge the picture before overlaying it.
ie:
overlay = New Bitmap(stream)
g.DrawImage(overlay, 0, 0)
Seems to enlarge the image befor...
Hi,
Is there any XSLT library available for the Windows Mobile platform? I need to transform my XML document to HTML. It can be a plus if compatible with .NET CF.
Thanks,
Ben
...
Hello,
I've spent some time researching this and still can't figure it out. It seem so simple so I feel like an idiot asking about it but after a while looking into it I just can't seem to get the hang of it.
I need to programmatically log into this site: https://wholesale.frontiercoop.com/, store the cookie from the login, and resubmi...
draw rectangle using c# and i need to draw the arc in every edges first of all i draw rectangle and then i need click button it will draw the arc at edges, how can i do it?
...
I want to set some properties of an HttpWebRequest and then download some files asynchronously. However, I need one copy of HttpWebRequest for each download, so how can I clone it so that I don't have to copy each property "by hand"?
...
There is a web-application that works with Business Logic Layer (BLL). The BLL gets data from the Data Access Layer (DAL). The DAL gets data from DB through and does custom mapping.
At the moment it is required to add into the web application some functionality that will be Silverlight-based. It is planned to use .NET RIA Services for t...