I use ToolBar for my WPF application. As I understand, there is no easy way to make it floating. I just want to remove element which I don't want to be displayed: several dots in the left side of ToolBar. Is there any Properties to customize view of ToolBar? Or, maybe, it's possible to redefine a ToolBar Template?
What's the best way to asynchronously load an BitmapImage in C# using WPF? It seems like many solution exist, but does a standard pattern or best practice exist?
Thanks!
Hi,
I want to clone a WPF Control (XamDataGrid)
I know these ways:
Clone
Problem: Control is not Cloneable
Serialize & Deserialize in binary format
Problem: Control is not serializable
Serialize as XML
Problem: control contains images and Images are not serializable in xml serialization
Do you have any valid workarounds ?
Hi.
I have been searching the internet high and low but can find some examples that can help me, I'm developing an application in wpf, in it I use a datagrid, each cell as a datatemplate with and image, in a mosaic style, on the side of the grid I have some tiles to use on the grid, I'm able to drag the tiles but can't drop then on the grid because I can't find the cell to which make the drop, is there a way to get a cell position from the the drag events?
Thanks
Hi,
I want to access some of the wpf designer services (ModelService/EditingContext) from a visual studio toolbox package. Can somebody help me with that?
Thanks,
Sudarsan Srinivasan
Hi,
In the constructor of an object i need to create a WPF mediaElement object:
m_videoMedia = new MediaElement();
but the class can also be instantiated from a other thread so i need to use
Dispatcher.Invoke(DispatcherPriority.Normal,
(Action)(() => { m_videoMedia = new MediaElement(); }));
But how can I get the right dispatcher instance in that constructor :s
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
How do I set tab ordering in WPF? I have an ItemsControl with some items expanded and some collapsed and would like to skip the collapsed ones when I'm tabbing.
Any ideas?
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?
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!
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 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
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
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'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 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.
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?