Hi,
I have a control data template. The viewmodel behind it has a property IsReadyForUse. When this property is false, i want a semi transparent overlay on the control. This overlay must prevent the user from editing any of the items on the control. Once the property goes back to True, the overlay should dissappear.
If someone could p...
I have a WPF application where I'm using dependency properties in codebehind which I want to set via XAML declarations.
e.g.
<l:SelectControl StateType="A" Text="Hello"/>
So in this example I have a UserControl called SelectControl, which has a property called StateType which manipulate some other properties in it's setter.
To help...
I need to take some action (e.g. make some cells readonly based on some other cells) after data biinding is completed. In WinForm DataGridView, I used to do it in DataBindingComplete event. However, I couldn't find such an event in WPF DataGrid. What else can I use?
...
I have a project that was working fine.
For some reason it stopped showing me the images I am using.
The images are located in a Resource File(.resx).
Maybe someone can help me understand what happen or tell me if this problem is only at my computer(and how I can solve it).
My project is located here and it requires VS2010:
https://f...
The final outcome I want is actually detect if the clipboard contains any Image, if so then set a Image control to display that image. I am thinking I will need a way to monitor the clipboard if it contains an Image. How can I achieve this? I am thinking probably theres no such event so maybe i check the clipboard at regular intervals to...
In WinForm DataGridView, it automatically selects the first row when initialized. It drove me crazy when I tried to turn that feature off. Moving to WPF DataGrid, it seems Microsoft has decided to turn this feature off, which is a good thing I think. However, I have hard time to enable this feature now. For some DataGrid, I want the firs...
By default a validation error in one row will prevent you from editing other rows. Is there a way to change this so other rows can still be edited?
...
Hi,
I'm part of a project that requires auto-complete or auto-suggest feature for postal addresses (something similar to what google maps has). As the user starts to type in the number and then the street google starts to suggest valid options. I would like to know if there is an api (even commercial) available in the market.
Note: I'm...
Hi All
I am trying to set the uriString of a Uri object to a relative path for use in a GifBitmapDecoder.
At runtime i get the following error:
Invalid URI: The format of the URI could not be determined.
My relative path follows the following format:
/TestApplication;component/Images/Busy.gif
If i use the absolute path to t...
I have a button on a toolbar that has its command set to "MyControl.Print" (for example).
In the control the command is added to the command bindings including both the Execute and CanExecute.
The control is within a window with other controls docked appropriately.
I am finding that for the Print button to be enabled I have to "select" ...
In WPF datagrid, is is possible to allow the user to cut or delete a column?
If yes, is there any built in support for it?
If no, how do I do it? A sample illustration will be very nice.
...
In my c#/WPF project, I added a jpg to the resources to embed into the exe file.
Now I want to use this jpg in an image tag, something like
<xmlns:prop="clr-namespace:MyProgram.Properties"
<Image Source="{Binding Source={StaticResource prop:LogoJpg}}"
My problem: it does not work. I got no idea, how to use the image. I could use file...
I know this question has been asked many times in different ways in many websites and also in StackOverFlow but all the answers I found are not helping me ot to be precise I am not able to understand them and implement in my application. So I thought of putting some code from my application so that you people can help me better.
Problem...
I have a wpf datagrid where the columns have textbox cell template added. Data is populated from an xml source through a person class.
<Persons>
<Person FirstName="John" LastName="Doe" Age="37", Sex="Male"/>
<Person FirstName="Paul" LastName="Sams" Age="34", Sex="Male"/>
</Persons>
The datagridrow will be the person class ...
Hi. Simple WPF/XAML question. In XAML, how do I reference the Self/this object in a given context? In a very basic app with a main window, one control, and a coded C# property of the window, I want to bind a property of the control to the hand coded property of the window.
In code, this is very easy - in the Window's constructor, I add...
My WPF app has a window with various text boxes and a WebBrowser control.
The WebBrower control is used to show a web site (I doesn't own) and then a Login button in the WPF window fills the fields in the site from the text boxes.
The problem is that the web site calls focus() method on one of its input fields on load, and that still ...
How Can Determine Selected Cell's Value In DataGrid? (WPF)
my data grid have 9 coloums and 5 rows and i want to know value of clicked row[0]'s value.
i used this code in windows form
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
{
var a= dataGridView1[e.ColumnIndex, e.RowIndex].Value;...
Hi All,
Thanks for reading my question!
I have a problem with customizing a DataGrid RowGroupHeader, the situation is:
I need a way of taking control over a DataGrid RowGroupHeader as I want to display some databound values in it. The values will be generated at runtime so the RowGroupHeaderStyle needs to be generated and added to DataGr...
Hi. In a WPF app, what XAML code do I need to do the same job as this line of c#:
this.DataContext = this;
? Thanks
...
Hi,
Just wondering if anyone knows how to change the look of the button on a wpf combobox?
In case you are wondering I just want to change the shape of it and the background.
Thanks.
...