Hello. In WinForms it is such a thing like:
if (dataGridViewControll.SelectedCells.Count > 0)
EditorForm.ID = dataGridViewControll.Rows[dataGridViewControll.SelectedCells[0].RowIndex].Cells[0].Value.ToString();
Does anyone knows how to do such a tricks in WPF grid?I mean SelectedCells and SelectedCells[0].RowIndex].Cells[0].Value...
I design a WPF form with Window Style=None. So I Cannot see the drag bar in the form. How can I move the Form with WindowStyle=None Property?
...
Hello,
I'm trying to host the Workflow Designer in a WPF application. The WorkflowView control is hosted under a WindowsFormsHost control. I've managed to load workflows onto the designer which is successfully linked to a PropertyGrid, also hosted in another WindowsFormsHost.
WorkflowView workflowView = rootDesigner.GetView(ViewTechnol...
Does anyone knows how to get row index of the selected cell in DevExpress WPF grid?
In WinForms it was something like that:
dataGridViewControll.SelectedCells[0].RowIndex;
...
Hi,
I posted a similar post to this before but since then i have done some research and thought i'd put this one out again to see if anyone maybe has any thoughts on my problem.
I am running a WPF application with C# as the code beind. The datbase i am using is SQL Server 2005.
Now i am currently binding to the database using ADO.Ne...
Does anyone know how I can place a Popup Control in the Center of the screen?
Thanks!
...
hi, here's my problem:
I want all texts in TextBlock, Label, MenuItem.Header to be displayed in upper case.
The strings are taken from a ResourceDictionary e.g.:
<TextBlock Text="{StaticResource String1}"/>
<MenuItem Header="{StaticResource MenuItemDoThisAndThat}
etc. (also for Label and other controls)
I cannot use a value c...
Morning folks,
I'm still trying to get my head around databinding in WPF and so I'm having a bit of a problem working out how to solve this issue: I have a datatemplate for a button that I use to display information from a class I have set up, and I've been using a ListView Itemsource to pass in the list of these class objects which is ...
Hi,
I have the following Menu witch works to some point ... then I added the two MenuItems under the Binding Item ... so each binded item would get a Delete and Edit MenuItem.
<MenuItem x:Name="miUserList" Header="User" Click="miUserList_Click" >
<MenuItem Header="Add new user"></MenuItem>
<MenuItem.ItemTemplate>
<DataT...
I'm working on an image management app in WPF that displays a number of images and allows the user to move them around the file system. The issue I've run into is that displaying a file with an <Image> element appears to hold the file open, so attempts to move or delete the file fail. Is there a way to manually ask WPF to unload or rel...
Here is the scenario:
There are some domain objects
There are some WCF services exposing business services that interact with these domain objects
There is a WPF application that is the UI, which calls the WCF services
A pretty common set-up I would have thought. I am thinking of using DTOs between the WCF service and WPF app. There ...
I'm trying to create a custom UserControl that will mimic auto-complete as it works within Intellisense using WPF. I'm using a TextBox and a Popup containing a ListBox within my control.
I want to be able to keep keyboard focus set on the TextBox irrespective of whether or not the auto-completion popup is open so that a user can contin...
I'd like to expose a property on a view model that contains a list of objects (from database).
I need this collection to be read-only. That is, I want to prevent Add/Remove, etc. But allow the foreach and indexers to work. My intent is to declare a private field holding the editable collection and reference it with a read-only Public...
Hello, I have a WPF menu:
<Menu Height="22" Margin="0,109,102,0" Name="menu1" VerticalAlignment="Top">
<MenuItem Header="Reports">
<MenuItem.Icon>
<Image Width="20" Height="20" Source="/XSoftArt.WPFengine;component/Images/export32x32xp.png" />
</MenuItem.Icon>
</MenuItem>
...
I need to host WPF control inside IE, therefore I'm trying to implement IHTMLPainter and IElementBehavior interfaces. I'd like to build my custom behavior and use it inside IE, but the problem is how to draw WPF control by just having IntPtr hdc parameter.
Probably I can get Drawing.Graphics by the following code:
Graphics.FromHdc(hdc);...
So in the example code below, I create a UserControl UserControldChild which is a child of the main Window, Window1.xaml. Why does the FindName() method fail to find the "myButton" in the code below?
This must have to do with the WPF XAML NameScopes, but I have yet to find a good explanation as to how NameScope works. Can someone enlig...
I have a cell that needs its value to be set on it just being clicked. It is multibound to different properties.
Where am I supposed to do this? I have been trying to do it in the datagrid beginingedit handler like this (without much success). I am able to manually click twice(once to select cell and then to start edit) and the value g...
How do I proper case text as the user enters it in a WPF form. I'm using the following code to do the proper casing which works fine, but I can't figure out how to do it on user entry.
Microsoft.VisualBasic.Strings.StrConv(txt.Text,VbStrConv.ProperCase,0);
...
Hi All,
Situation:
I have a user control which i am adding to an expander.
I have a constructor which takes some params.
I also have a default constructor which just calls InitializeComponent.
I call the constructor with the params to setup the user control.
The user control is then added to the expander. The expander is not expanded...
We have a simple animation that runs when a ToggleButton is checked and unchecked (expands a ListView's height and then collapses a ListView's height). How do you fire the EventTrigger (or Animation) for the <Storyboard x:Key="CommentsCollapse"> when the DataContext Binding changes in the x:Name="DetailsGrid" Grid in the following XAML?...