I've got the following user-control:
Resources:
<DataTemplate x:Key="FilterComboDataTemplate">
<Label Content="{Binding Item2}" />
</DataTemplate>
<Style x:Key="FilterSelectorStyle" TargetType="ComboBox">
<Setter Property="ItemsSource" Value="{Binding Filters}" />
<Setter Property="SelectedItem" Val...
using System.IO;
using System.Runtime.Serialization;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
namespace XmlTest
{
class TestClass : IXmlSerializable
{
public XmlSchema GetSchema()
{
return null;
}
public void ReadXml(XmlReader reader)
{
...
We need to mark up diagrams of body parts to indicate the location and extent of injuries.
For example, to shade an area of the body to mark a burn, or a diagram of a hand with an amputated finger.
What 3rd party controls are available that would be suitable for embedding into a .Net application?
...
I've got a bunch of Model3DGroups and want to determine which one has been clicked on.
Here's an example of how they look like:
<Model3DGroup x:Name="Linie04OR23">
<!-- Linie04 (XAML Path = (Viewport3D.Children)[0].(ModelVisual3D.Content).(Model3DGroup.Children)[8]) -->
<Model3DGroup.Tran...
I need my WPF app to use a true-type font for a different language. I have the font located in a folder called 'fonts' inside the project. The font i'm using is available for free download here
Since the font is installed in my system i first tried
FontFamily="FMBasuru"
I've read the post here and tried doing (this is the exact mark...
Can I use NSStream,NSInputStream, and NSOutputStream to send and receive data from a C# application or service? If so, how?
...
I notice that if you have a private member in a class, you can access it in the class methods by just referring to it's name. You do not need to say this.memberName, just memberName works. So is the this keyword optional in the context of member access?
I do see it is useful when you want to clarify the scope - when you have 2 variables...
I have about 10 calls that have the same select statement. It's more than a simple FirstOrDefault, it has some db logic inside of it. I have not seen a good way to extract this into its own method or statement. I have come close with something like this:
static readonly Expression<Func<DbUser, User>> GetUser = (g) => new User {
Ui...
By Definition we know that
Boxing – Converts value-type TO reference type. Stored on heap.
UnBoxing – Converts reference type TO value-type. Stored on stack.
But why should I convert a value type to reference type or push my variable from stack to heap or from heap to stack.
What are advantages or disadvantages of doing this.
wha...
We're using DataContractSerializer to deserialise XML data coming into a RESTful API written in MVC.Net. I'm trying to send a list of objects into an action method, however the deserialisation always returns null, even when using XML serialised from the same classes. Does anyone have any idea's of why this is happening. Code is below.
[...
public class ReplacementService : IReplacementService
{
public List<int> GetTeamReplacementWeight(int iTeamId)
{
IEnumerable<TeamReplacementGroup> groups = TeamReplacementGroup.GetTeamGroups(iTeamId);
List<int> weights= groups
.Select(group => group.GetWeight())
.AsParallel()
.T...
I am a student and after taking some introductory programming courses in Java, C, and just finishing up a book on C++, I would like to start developing applications for Windows.
I have done my best to page through google and find the answers I need, but I seem to be at a loss.
When would I need the Windows SDK over just the regular API...
I want to make slider to select dates. For example, every hour in last two days. Also slider should has a legend on the bottom with values. How could I do it?
I made slider with data context as DoubleCollection from total hours in date and changed tooltip using custom ValueConverter. But when I change value, tooltip shows real values - ...
So I have been writing to
Environment.SpecialFolder.ApplicationData
this data file, that upon uninstall needs to be deleted. I am using Innos Setup to build my installer. It works great for me. So my data file hangs out in the above path and I do that cause when I used to try to write it to
Application.ExecutablePath
certain bo...
I have a For Each loop going through the controls in a panel disabling them. When the loop reaches one certain grid control and disables it the CheckedChanged event fires for the next control in the loop which is a radio button.
The call stack is as follows:
System.Windows.Forms.dll!System.Windows.Forms.RadioButton.OnCheckedChanged(Sys...
i want to change application settings at runtime, here part of it:
<applicationSettings>
<OPCClient.Properties.Settings>
<setting name="Client_Service" serializeAs="String">
<value>http://localhost/test/service.asmx</value>
</setting>
</OPCClient.Properties.Settings>
</applicationSettings>
i w...
basically I want to get the values of the parameters of a called method like this:
var x = 1;
var a = 2;
var b = 3;
Do<HomeController>(o => o.Save(x, "Jimmy", a+b+5, Math.Sqrt(81)));
public static void Do<T>(Expression<Action<T>> expression) where T : Controller
{
// get the values 1,Jimmy,10,9 here
}
...
I have worked with MS CRM. There we can design our custom entity graphically and then we can also build a visual form to perform CRUD operations on that entity.
This feels so simple from end user's perspective. However I am interested to know how can I develop the similar kind of application where I design my table on the fly and the de...
I am looking for a good arhiver lib (DLL)for VB?
A fast DLL that can pack and unpack file fast and easy!
If possible to be able to pack in .rar & .zip format
tnx!
...
It seems that there are similarities between Proxy and Adapter pattern?
Can any one please explain what are the differences? Why we require both of them? In which problems we should use only proxy and NOT another by an .net example?
Thank you
...