Wpf dropshadow disappears.
Here is how to reproduce.
Type the following in xaml pad.
<Page.Resources>
<DropShadowEffect x:Key="shadow"
Opacity="1"
ShadowDepth="1"
Color="Blue"
BlurRadius="30"/>
</Page.Resources>
<Grid>
<Button HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,0,0,0"...
Creating a relatively simple data entry form, and just want to separate certain sections with a horizontal line (not unlike an HR tag in HTML) that stretches the full length of the form.
I have tried this:
<Line Stretch="Fill" Stroke="Black" X2="1"/>
Because the parent control is not a fixed width, this line causes the window to stre...
I have a style for the WPF Toolkit DataGrid, how can I change the style of the ScrollBar without using the Property="Template"? Is that Possible?
...
Hi, I've been struggling looking for an understandable way to do this. I have four points, a StartPt, EndPoint, and Intersection points to represent the peak and valley in the bezier.
The BezierSegment in C# requires start, controlPoint 1, controlPoint 2, endpoint - however I don't have any control points I only have these two points t...
I'm trying to draw a line on top of an existing control but it blends the colors together. All I find is tutorial on how to make fancy blending mode but all I want is draw a solid color line over my controls but even the solidColorBrush doesn't behave like I want.
...
Is it possible to use TextBox in "virtual" mode.
I want to supply text on demand, when user scrolls through the document.
...
Hi guys,
I might sound dumb here, but I want to do something really simple. At design time, I want to add columns to a listview control and add some data to it. I need to add combobox in each column of the listview. The thing I am not able to find is where to mention the column number in the listviewitem. Any help appreciated guys.
<Lis...
I am using the following code to populate a wpf datagrid with items in my db4o OODB:
IObjectContainer db = Db4oEmbedded.OpenFile(Db4oEmbedded.NewConfiguration(), "C:\Dev\ContractKeeper\Database\ContractKeeper.yap");
var contractTypes = db.Query(typeof(ContractType));
this.dataGrid1.ItemsSource = contractTypes.ToList();
Here is the XA...
We write an application with WPF. When we build this project, 3 files is generate for us in addition to :
> OurApplication.exe
> OurApplication.exe.config
their names are:
> OurApplication.vshost.exe
> OurApplication.vshost.exe.config
> OurApplication.vshost.exe.manifest
first, what are these files? secondly, which one of this conf...
Hi
I have few images in WPF. On mouse click event, I want to add a border to the image. Please tell me how to do it.
Should I have to create a style element in the xaml and apply it in the code-behind?
...
I have a ToggleButton. I'm using a command binding, and I want to pass the value of its IsChecked property as a parameter. How can I do this without naming the ToggleButton and using its name to address itself?
Currently I'm solving this by naming the control, but I assume this can be done a better way?
<ToggleButton x:Name="_myToggl...
I'm trying to get the content of a label to bind to the string property of a class instance without much success.
XAML:
<Window x:Class="WPFBindingTest.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="300" Width="300">
<Grid> ...
I am currently porting a windows forms application to wpf. There is a listbox with filenames in it. It should be possible to drag (multiple) items to the windows explorer.
This was easy in with the old windows form, but I can't find a way how this can be done in wpf.
This was the code I used with windows forms:
void listView1_ItemDrag...
hi guys:
It gets basicaly to this:
I have a canvas container (x:name="Container" - to reffer later to), with some other controls(e.g. I have a Button 30x60 in size) and I want to scale the Container to fit the button, without having to resize anything. (just using scaleTransform)
If I set a slider binded to the Container Scale, I can ...
In my WPF application I have a Canvas in which I do some drawing. Earlier I handled the drawing in the code behind, but now I've factored everything out to a ViewModel. This gives me some challenges..
I have a few InkPresenter objects holding Strokes. Earier I added them as children to the Canvas in the code behind - like this:
// Bu...
I have an app that has a list of items. My customer prefers to edit the list in normal text.
So I want to find a way to transform the list items into text and vice-versa. What would you suggest?
edit:
The items can be something like:
John Doe, manager
Jane Doe, manager
Janine Doe, sales
But the customer wants to transform this li...
Hello,
We're developing a medical appliance and are wondering if there's a WPF chart that is able to receive new data every 10ms and present it. We tried ChartFX and DynamicDataDisplay and neither is good enough for this challenge.
We'd appreciate any suggestions.
...
Greetings,
I am developing some appliacation in WPF. Client is written in WPF, service in WCF. There is a case when client looses connection to the server (because of the internet issues). Then he have the following error:
"The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it...
I'm trying to create a user control in WPF to represent a Go board, which is essentially just a grid of black lines with dots on some of the intersections.
At the moment I'm using a Grid control to handle placement of the stones, but one of the difficulties is that the stones are placed on the intersections of the gridlines rather than ...
What do I have to change in the following code to make the "A Child Section" node appear as a child of the First Section and Second Section:
The following code gives me a XamlParseException.
XAML:
<Window x:Class="TestTr32322.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.mic...