Hi,
When I translated the Tester.WPF.resources.dll, I get an error. It's like the baml file have modified VisualStateGroup to an collection. I don't understand. The poject starts up without any problem in the default language, but if I change the culture, it crashes. I Rebuild it, still that error, even when a start from scratch. With th...
I'm having a problem with creating 24/7 video player for my application on WPF and .NET Framework 4.0. Application shall run on kiosk and displays video clips from my playlist in a loop.
The problem is that after about 8 - 24 hours of continues playback the video frame freezes. Application does not raise any exception and continue work ...
Is there a lockbits equivalent of 2d in 3d in Windows Presentation Foundation to get direct pixel access ?
I understand you can paint a triangle at a time: 3d for the threst of us. Wouldn't it be easier to paint in cubes instead of triangles ? (I need to paint a stack of images such as an mri sequence).
...
I have following code
private static ObservableCollection<myColor> myItems = new ObservableCollection<myColor>();
myItems.Add(new myColor("red"));
When object myColor is this class
public class myColor
{
public string color { get; set; }
public myColor(string col)
{
this.color = col;
}
}
Trouble is when I tr...
Hi
I'm able to run 2 or more WPF windows on different thread.
The problem is that now my application in splitted in many windows.
What I really want is have a main window containg a grid in which every cell contains an element managed by a different thread.
Is it possible to create a UIElement/Component managed by a thread that is not...
Hi there,
I have implemented a UserControl. Then I would like to handle an event that is originally handled by Window (keyboard press). What is the best way to route the event caught by another component (higher in the components' tree)?
Thanks in advance for the replies and hints!
Cheers
...
Hi,
I can't find out the best way to implement this gesture on ScatterViewItems. Also, I would like to use a wipe-gesture but that's further away ...
...
I have implemented the virtualized ListView from WPF Data virtualizing ListView. This works terrificly, but for the automatic resizing of the column widths. What happens is that the columns resize on the first retrieved result set (specifically the visible rows after the first load), but when new data comes in that is wider then the cont...
In Silverlight there is no DataGridComboBoxColumn in the DataGrid.
This is sad. What is the best way to recreate this functionality.
...
Hi All,
We have a customer requirement for our WPF application:
- if child modal window is minimized -> than parent (main) window should be minimized as well.
This is implemented by simple override in our base window class:
protected override void OnStateChanged(EventArgs e)
{
base.OnStateChanged(e);
if (WindowSt...
Hello All!
How I can move focus from tabitem title to content of this tabitem by pressing downarrow?
I tried to use KeyboardNavigation but Keyboardfocus still doesn't move when I press down or up key.
Thanks in advance.
...
I have a caption for a GUI control, and I want to convert it to a simple text string. Specifically, I want to remove the accelerator metacharacters.
For example (examples assume WinForms):
Strip off single occurrences of the metacharacter: &Yes becomes Yes
Convert double occurrences to single: Income && Expense becomes Income & Expens...
Hello,
I have requirement to show the toolbar button border on mouse Hovering and otherwise hide it. I tried to do the following:
<Style x:Key="{x:Static ToolBar.ButtonStyleKey}" TargetType="Button" BasedOn="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
<Setter Property="Foreground" Value="Blue"/>
<Setter Property="Cont...
Hi All--
I'd like to apply a Brush (LinearGradientBrush in this case) to two or more objects (TextBlocks) at once. The effect that I'd like is something like this:
Edit
I cannot simply apply the same brush to both objects, as this will make both of them start red and go to blue (instead of the second one starting at a shade of purpl...
I am trying to access the header that is at the intersection of the rows and columns headers in a Net3.5 WPF DataGrid.
Josh Smith calls this the "Empty Header" in an article on a different grid control and I would call it the "RowColumn" header since it in the first position for both the column and row headers and is the only header tha...
I have 4 comboboxes bound (via an observable collection) to 4 separate folders containing about 200+ items each. When the window first loads, the filenames are stored in 4 separate observable collections, the datacontext of each combobox is set to its respective collection, then I'm using a converter to convert the uri to an image (with ...
I have a usercontrol which I need to set a specific DataContext on. The usercontrol uses multivalueconverters. However, the binding in multivalueconverter fails to use the datacontext. It works fine for regular value converters. Anyone know what is going on? To clarify, below code is not similar to my real code, it's just a sample repro...
I have been using WinForms since the first framework introduced and invested a lot of time and effort in it. Now I am attempting to move to WPF and, honestly, it's not so easy.
Now I have a task, I need to implement a simple wizard, each page of which has a aligned to center group of controls. The group contains a set of buttons, four b...
I wish to highlight the columns on a WPF datagrid as the mouse moves. Some of the problems I face are:
Getting the coordinates of columns to test for when the mouse is over them
Changing the background color of a column
Any help will be much appreciated.
...
I need to draw lines and dots (circles) in WFP. (VS 2010)
I tried using Ellipse control for dots, but I don't have the line ones.
I however added <Line element directly in XAML and this worked...
but how I have the line control in the toolbox?
...