I have to create a canvas that contains object with position in binding with latitude and longitude.
My canvas support element's drag and zooming but until now I have used always standard coordinate (from 0,0)
Now I have GPS coords and all objects overlap each other because GPS coord is for example between 45°11'00'N and 45°11'60N... s...
Is there any way to pause all of the bindings on a window, or pause all bindings in the entire program at runtime?
I have a class called Page, it contains a lot of variables that my controls bind to in order to update and be updated by the class. I have a load function that loads an XML file and creates a Page class from it. The problem...
If I have 1 tabcontrol and 2 tabitems each containing a datagrid and load them on startup of the application the memory level is normal.
If I have 2 tab controls and each tabcontrol has 1 tabitem and i load them on startup of application memory goes crazy.
What am I doing wrong?
I am loading them the exact same way in both cases the...
Hi,
I have WPF usercontrol with some binded controls to data source, when I run the usercontrol it shows the data OK, if I add the usercontrol to window and show the window, the data are not displayed on the usercontrol??
any help will be appreciated
...
How to add Window border to usercontrol in WPF?
...
Hi all,
I'd like to create a button containing an image (remove) from the VS2010 Image Library in WPF (...\_Common Elements\Actions\remove.png). This image actually contains four versions of the icon in different sizes. How do I go about using the first one of these?
Thanks,
Chris
...
I've noticed that some applications (eg. Visual Studio 2008, Gallio Icarus 3.1) don't look that great (eg. fonts are blurry) when I run them on my laptop which has fonts set to 120%, whereas other applications seem to render fonts crisply.
I have unchecked the 'Enable Windows XP style scaling' option in the 'Custom DPI Setting' dialog i...
I'm using Notification Icon to get my application to show message from the system tray: a pop-up/balloon message(s) are showed when I called
I tried to set it to 100 miliseconds but it doesn't work - the notification is showed longer than what I have set it to be. Please help!
...
Hi every one,
I want to change the notification icon of my application but don't know what is the size so as to make it properly displayed. Currently it is automatically resized and break my pixels!
Please help!
...
I have a listbox that is populated with a list of objects that has two properties. One of these properties is displayed in the listbox, and the other gets displayed in a textbox through binding. I am wondering if there is a way I can change the selection on the listbox by changing the value of the textbox, as I can't use selected index...
I have a datagrid bound to an observable collection of objects. What I want to do is have a button that will execute a method of the object representing the row of the button that was clicked. So what I have now is something like this:
<DataGridTemplateColumn Header="Command">
<DataGridTemplateColumn.CellTe...
Hello All,
I am attempting to resize and save an image, which is fairly easy (for instance, see this example).
However, using this code strips the metadata information from the image. I can't quite seem to figure out how to preserve the metadata for a jpeg image.
*EDIT: Example Code *
public static void ResizeMethodThree(string ...
The scenario:
Parent Window loads, fills data (grid, labels, etc.)
User clicks a button, firing a bound command in the Parent Window's ViewModel, launching an Edit Dialog
User makes changes in the Edit Dialog and clicks "Accept", saving some information to a database
Parent Window's ViewModel recognizes that something happened (noticin...
I have a WPF combobox
<ComboBox Name="cmbExpression" IsEditable="True"/>
Now I have written some text over there say fx(a,b,c) ,f(x),x,p,mv,P#,Fx(X),x,sometext
Now my requirement is that, whenever the cursor or the mouse (arrow keys viz -> and <-) will be placed on the characters, I should be able to get the value.
Some Test cases:...
I am dynamically building my datatemplate using XamlReader.Parse(string). The problem I have is that I can't put any events on any of the controls I create using the XamlReader. After doing some research online I've learned that this is a known limitation of XamlReader.
I don't know a lot about commands in WPF but could I somehow use t...
I have a general question about WPF performance. We have a relatively simple forms application. Some team members believe that redesigning the templates for basic controls will improve performance and maintainability. One preferred technique is to create multiple control templates for a control, and swap them out with triggers. The belie...
I want to have a command from my view model associated with F8, and don't know a great deal about input gestures. Must I wrap it in a routed command or is there another recommended way to do this?
Cheers,
Berryl
UPDATE
My original posting really had two pain points in them. The first was that prior to WPF 4 you couldn't bind a comman...
Hi
I am in trouble, so need some help.
I have my file stored in the following path-->
H:\Testapps\appz\Sample1\Sample1\Data.xml
I am trying to load the xml file in an XMLDOCUMENT like this -->
XMLDocument xdoc=new XMLDocument();
string xmlfile = "..\Sample1\Data.xml";
xdoc.Load(xmlfile);
I get an error -
Could not find a part of th...
My MVVM application started with App.xaml.cs
Here I create a main window. It has frame. Here I put LoginView.
It has button "Login". I have command, which checks and do login.
This code I have in LoginViewModel.
If all ok - I should show the next View. How I can do it?
App.xaml.cs
private void OnStartup(object sender, Start...
So I have two tab items within a tab. I am data binding on both. If when i click the second tab item the memory goes through the roof. Looks like it is lazy loading or something. So if i don't click it memory stays still, but soon as i click the second tab item it appears to start data binding.
Thanks for the help anybody!
...