What is the best way to set expect100continue when using WebClient(C#.NET). I have this code below, I still see 100 continue in the header. Stupid apache still complains with 505 error.
string url = "http://aaaa.com";
ServicePointManager.Expect100Continue = false;
WebClient service = new WebClient();
...
Visual Studio 2010 moved to using WPF for rendering the editor. This is leading to slowdowns while I am editing code, especially if I'm running something else that uses other video capabilities.
How can I speed this up? A new video card? New drivers? Settings?
What technologies does WPF use to render and what video card would compl...
I'm trying to write a user control that has an ItemsControl, the ItemsTemplate of which contains a TextBox that will allow for TwoWay binding. However, I must be making a mistake somewhere in my code, because the binding only appears to work as if Mode=OneWay. This is a pretty simplified excerpt from my project, but it still contains t...
I have a column defined like this:
<DataGridTextColumn Binding="{Binding Path=FileSizeBytes, Mode=OneWay}" Header="Size" IsReadOnly="True" />
But instead of displaying the file size as a big number, I'd like to display units, but still have it sort by the actual FileSizeBytes. Is there some way I can run it through a function or somet...
I am currently learning to create custom controls in WPF. I successfully created a simple custom control using a Label and a Text Box. I was able to allow setting the Label text by DependencyProperty.
Now I am creating a user control that has a ComboBox. I need to allow adding items to this ComboBox from outside the control.
To achiev...
I am looking for a color dialog for WPF?
Is there one built in?
Should I build my own ?
Or do Win 32 interop?
If so, how?
...
I'm writing a download manager using C#/WPF, and I just encountered this error:
This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread.
The basic flow of my program is that a few web pages/downloads are enqueued at the start, and then they're downloaded asynch...
After Silverlight 4.0 has been released with new WPF, I am kind of confused with these technologies: Silverlight? WPF? Windows Form?
The main motive that we want to achieve for BIG business project is following:
Performance
Security
And platform independent**
If I consider all above three points then only Silverlight is the option a...
i want such a RichTextBox that have paging instead of Scrollbar,if Document text cannot fit into the RichTextbox it will move to the next page instead of adding scroll ,How can i implement this functionality in WPF RichtextBox ,i have buttons Prev ,bext to move forward and back,
Regards,
Aamir
...
private void Main_OnLayoutUpdated(object sender, EventArgs e)
{
label1.Content = Classes.Global.X.ToString();
Classes.Global.PositionChanged(this);
}
PositionChanged writes to X new x-position of window. It works, but as soon as I delete label1 it stops working. No errors.
...
Hi guys,
I have a border, i want the background of this border to be partially transparent (opacity 0.8) but i do not want the image behind it to be well defined. The effect i am after is similar to the Windows Vista window border effect, where you can see that something is behind it but you cant tell what it is.
A few clarifications:...
I have a program that, among other things, needs to be able to refresh the contents of a directory when the user tells it to. The actual task doesn't really matter, but this is the simplest way of causing this problem to occur that I know of.
If I tell it to open a directory that doesn't exist, I get the "unhandled exception" dialog in V...
Hello,
I have classes as following:
public class Property
{
public string PropertyName { get; set; }
public int SumSubPropertValue;
private List<SubProperty> propertyList;
public void CalculateSumSubPropertValue
{ // implementation}
}
public class SubProperty
{
public string SubPropertyName { get; set; }
...
I have a datagrid with one column having a radio button. I want to set the GroupName when a certain condition is reached. Below is the code
<Custom:DataGrid.Columns>
<!-- ONLY ENABLED WHEN THE ITEM TYPE IS SINGLESELECT OR SINGLESELECT WITH ADDIOTIONAL DATA-->
<Custom:DataGridTemplateColumn Ca...
Hi,
I have at treeeview TextBox, and I want convert my Enum:
<TextBlock TextAlignment="Justify" VerticalAlignment="Center" Text="{Binding Path=AcceptationStatusGlobalFlag}" />
public enum AcceptationStatusGlobalFlag
{
NotReady = 0,
Ready = 1,
AcceptedByAdmin=2
}
To Icons. There will be 3 icons, let sa...
I am creating a managed WPF UI front-end to a legacy Win32-application. The WPF front-end is the executable; as part of its startup routines I start the legacy app as a DLL in a second thread. Any UI-operation (including CreateWindowsEx, etc.) by the legacy app is invoked back on the main UI-thread.
As part of the shutdown process of th...
Hi.
I experienced a Problem in Visual Studio 2010 and i dont know if its a bug or i just did somehting wrong.
I have 6 Images(Icons) that all have the same size (50x60px), are of same type(png), made with same program(gimp), saved with same options.
I want to use these icons as backgrounds for buttons. But the Images are scaled differe...
Now that there is an official MS DatePicker in WPF4, I was wondering if there was a way to let it edit the Time part of a DateTime as well. I can't see anything, but it seems rather obvious to have missed out?
...
Visual Studio 2010 RTM randomly crashes when editing XAML in a WPF application. I'm running it on Win 7 fully updated.
The installed extensions/addons are:
Resharper
PowerCommands
The crash log is:
Faulting application name: devenv.exe, version: 10.0.30319.1, time stamp: 0x4ba1fab3
Faulting module name: clr.dll, version: 4.0.30319.1...
Greetings,
I have some control which display bunch of textblocks and image. I would like the image to be surrounded by text. I have already implemented some functionality by using FlowDocument and custom bindable run control. (These controls are included inside user control). When I generate lots of these controls in treeview, applicati...