Hi, I have a Frame (used to display a local html file) in a WPF window. I would like that when the user clicks on a link or such, this is opened in an external browser window ( user's default web browser).
Any ideas how to go about this please?
Sometimes (I didn't figure the exact scenario), WPF tooltips are displayed on top of other windows, even when the app window is completely hidden. Clicking on the other window doesn't make it disappear.
Is anyone familiar with this?
Regards,
Yaakov
Hi everyone!
I was wondering, Most wpf list view the header/columns are movable. Is it possible so that we can make them non-draggable or movable at all?
does anyone know what this property is called by any chance?
Thanks in advance!
I have a WPF window, which has a button that is inside a stackPanel, which is inside another stackPanel
I wrote an event handler for the button for the MouseDown event.
I want to execute this eventHandler three times for the button and the parent (stack panel) and the parent's parent
How can I achieve that with the routed event, by writing only one event handler?
I don't want to repeat the event handler code.
Thanks
The title pretty much describes it. If I resize my WPF app so that it stretches over two monitors in a dual monitor setup, and resize it back, there will be a ghost window in the second monitor that does nothing, but is still moved when I move the original window in the first screen.
Has anyone had issues like this? I think its a refresh bug on some OSs (I use WINXP 32 bit), but would like to confirm with the community.
I have a WPF application with localization. In my project file (.csproj) I have added a string:
<UICulture>en-US</UICulture>
Now the problem is - when I compile the default localization (en-US folder) is always put to the root of $(OutDir) of the project.
Question: how do I move this directory into a subfolder (say, $(OutDir)localized\en-US)?
I have noticed that the cursor blinks really slowly in my WPF apps. This is much much slower then in the rest of windows.
What I would like is for the Cursor blink rate to match the standard windows cursor blink rate.
Hi All,
I am facing a performance issue with WPF Toolkit datagrid. In my application I have created a view containing multiple Data Grids (around 25) with about 5 rows in each grid. The grids are placed in an ListView, the problem I am facing is of rendering of my view.
Can anyone guide me to resolve the issue.
Thanks
Hello,
How do I get the selected item in a WPF datagrid? Tried the following, with no luck;
dataGrid1.CurrentCell.Item.ToString();
string[] strsplit = dataGrid1.SelectedValue.ToString().Split('+');
dataGrid1.SelectedCells[0].Item.ToString();
dataGrid1.CurrentItem.ToString();
dataGrid1.CurrentCell.Item.ToString();
dataGrid1.CurrentCell.Item.ToString();
Thanks
Hi,
I'd like to add tabs to my window when an item in the GridView is double-clicked. But the tab that will be added depends on the clicked item. Which way should I do this on WPF? I thought about RoutedEvents, but I don't know how to pass a parameter with it. Any suggestions?
I want to create two grids in the WPF Page. One grid need scrollbar or scroll viewer. Another grid is static.The grids are placed one by one in the page. How to create and set the scroll in first grid.? plz explain me.
I've got a little problem using WPF Dispatcher Timer. On each timer tick my application freezes for a moment (until timer tick method finishes). This is my code:
private DispatcherTimer _Timer = new DispatcherTimer();
_Timer.Tick += new EventHandler(_DoLoop);
_Timer.Interval = TimeSpan.FromMilliseconds(1500);
_Timer.Start();
Is there any way to avoid this and have my application run smoothly?
In a MVVM WPF application.
How do you set a second windows parent from the ViewModel?
example:
view1
viewModel1
viewModel1's command calls:
var view2 = new view2
view2.Owner = <----This is the problem area. How do I get view1 as the owner here from the viewModel?
view2.Show()
Thank you!
I am developing an app ( A database file system ). I am using WPF treeview in its GUI.The treeview items are directly extracted from my apps database.
I want to search and highlight the treeview items as I type.(e.g. keyword results shown in browsers)
How do I achieve that?
Hi
I created a new DataGridCell style for my wpf datagrid (Red Border brush). When I scroll down vertically the selected cells disappear which is ok. When I scroll up I see the selected cells but few of them missing their style and it appear in wrong cells.
It look like the data grid remember the selected cells but "forget" their style.
Any idea?
haim
I have two Line objects in C# WPF, and I'm trying to construct a method to work out the coordinates at which the lines intersect (if at all). After giving myself a headache reminding myself of high school maths to do this, I can't work out how to map it into programming format - anyone know how to do this?
Thanks very much,
Becky
Hi, I'm looking for documentation regarding WPF best practice for Compositing and agregating the user interface in a large project.
I'm comming from a visual Inheriance world using Delphi and Winform. And I'm now try to replicate that kind of pattern well in fact reusability of those UI elements.
I'm open to suggestion and reading.
Hello,
is it possible to create a combobox in wpf from code, which I could position wherever I want on the window?
In my case, I basically want to create something like a Autocomplete for DataGrid rows,...
Thanks!
Is there any way to change the value of property at runtime in WPF data binding. Let's say my TextBox is bind to a IsAdmin property. Is there anyway I can change that property value in XAML to be !IsAdmin.
I just want to negate the property so Valueconverter might be an overkill!
NOTE: Without using ValueConverter
Hi,
I have a WPF application and a worker thread. The worker thread invokes a callback on the UI thread, which opens a new dialog. Works fine on Win7, but on XP it will crash.
In worker thread:
someWpfDialogInstance.Dispatcher.BeginInvoke(openSomeDialogCallback, null);
Does someone knows a solution or a workaround for this problem?