Hi, I'm new to WPF, and I would like to know how to reuse some annoying xaml I have to avoid duplicating.
<Button Cursor="Hand" HorizontalAlignment="Left" Margin="0,0,0,0" x:Name="MyButton" Style="{StaticResource ButtonTemplate}" Width="286" Content="hi!" Focusable="False" IsTabStop="False"/>
<Button Cursor="Hand" HorizontalAlignment="L...
Hi all,
I am currently in the process of designing/implementing a repository pattern in a .NET application. After many days of research I feel I am getting close but there really is so many ideas and opinions out there I was hoping to get some peoples thoughts on any design considerations they may have had if you've implemented one your...
Hi,
while developing application that supports plug-ins, I am wondering what is the best approach to allow plug-ins to create its own menu entries in interface, add menu options to existing menus, add certain options to configuration dialog of application, that kind of stuff, and, how to handle saving those changes? If plug-in has knowl...
Is there a way to declare a setter for a clr-property that is defined in an abstract base class with only a getter (and vice versa)?
abstract class BaseClass {
public abstract string Test {
get;
}
}
class ConcreteClass : BaseClass{
public override string Test {
get { return string.Empty; }
set { /* S...
Do ASP.NET developers generally get paid higher than developers using other alternatives, due to steep learning curve of .NET?
...
public class a extends Activity {
public static final String SOAP_ACTION = "http://vladozver.org/GetAllCategories";
public static final String METHOD_NAME = "GetAllCategories";
public static final String NAMESPACE = "http://vladozver.org/";
public static final String URL = "http://192.168.1.3/Services/CategoryService...
I have just discovered that i need to start looking for a new job. I have been working in basic features of c# 3.0 and i was never give the chances to play around with c# 4.0.
What is the best way to get up to date with all the new features in the framework?
...
i have a datatable i created below i need to list all rows' cell length in datatable. my result must be not including "0" value. But my list : 19,19,19,19,19, 0.0.0.0..0.0..... so on why is it? How can i see length of my Array?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
nam...
I'm developing a small server that is supposed to interface via http. As I want it to be usable with different mature http servers, I have chosen FastCGI as the common interface.
Now I can't find a (free) .NET library that implements the FCGI interface and does all the hard work for me. Do you know one?
...
I'm trying to use Command.Prepare with a CommandType.Text query that has a single input parameter. The SELECT has several columns that I am extracting with a DataReader. Do I need to specify each of the select columns as output parameters before calling Command.Prepare()? Even if I don't need to specify them, will performance improve ...
How can i soth below arraylist according to int value. But if you compiled below codes error : Invalid Operation Exception... Detail : Failed to compare two elements in the array.
namespace SortArray
{
class Program
{
static void Main(string[] args)
{
ArrayList otomobil = new ArrayList();
...
How can i sort 2D array with linq and without linq with Copareto . i can do that with list generic . But i dislike it. can you give any idea about it?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace TestFillArray
{
class Program
{
static void Main(string...
Hi, with version 5, iText has been split into two branches - iText PDF & iText RTF.
iTextSharp, which I use, seem to be iText PDF now. Is there a iText RTF port for .NET yet? I would think that iTextSharp homepage would mention this, but there is nearly no useful information, only file download, I don't even find a way to contact iTextS...
Hello,
Using Windows 7 32 bit, VS 2010, .NET 4 DLL, NUnit (2.5.5) to unit test the application. I'm currently getting the following error; seen plenty of posts and tried the following:
restart machine
restart VS
delete bin/obj and reload
clean/rebuild
But I cannot get NUnit to hit my breakpoints when running;
I set the NUNit test ...
I have a VS solution with many assemblies and third-party utilities. I need to force the app to run 32-bit when running on a 64-bit machine. The app runs just fine on a 32-bit machine. I forced the .exe file to be ILONLY 32BITREQUIRED and when run on the 64-bit machine, I am getting "an attempt was made to load a program with an incor...
I have a number of EventArgs classes with only one field and an appropriate property to read it:
public class SomeEventArgs : EventArgs
{
private readonly Foo f;
public SomeEventArgs(Foo f)
{
this.f = f;
}
public Foo Foo
{
get { return this.f; }
}
}
Is there any built-in, generic class t...
I have a binding with data validation implemented by IDataErrorInfo. When data validation fails, the property is set. How could I avoid the change of the property when data validation fails?
Thank you very much.
...
hi,
There are many IOC containers for .net out there mainly MEF, Spring.net, Castle Windsor, Unity etc. Which is the most extensible and high performant? What should one consider when choosing a particular IOC container?
Thanks in adv
...
If someone were starting out with the .NET framework, what is the most feasible template to start with? And by the feasible I mean the one that has the lowest learning curve and the highest gains.
Start with:
Command Prompt applications
in C#?
Web applications using ASP.NET?
Silverlight applications in XAML/C#?
WPF/Winforms Desktop ap...
In this post i found INotifyPropertyChanged and i check it's example but I notice that i can do the same thing without implement INotifyPropertyChanged and more i can define my event and do the same...
For example in
public string CustomerName
{
get
{
return this.customerNameValue;
}
set
{
if (v...