I have 3 Tables in my database. Each table has 3 fields each, excluding the ID field. out of which 2 fields are of type nvarchar. None of the tables are related.
My ListView in the application helps the user to search my database, the search being incremental. The search includes the nvarchar fields of the 3 tables ie, 6 fields in total...
Possible Duplicate:
What WPF books would you recommend?
GUI's written using WPF seem to be closer to a Web 2.0 feel than older Winforms development has been; do you know of any good quality references online or books which give a general overview of how to design nice WPF applications?
I saw this StackOverflow question wher...
I've got a list of ComboBoxes inside a listbox, like so:
<ListBox ItemsSource="{Binding Values}">
<ListBox.ItemTemplate>
<DataTemplate>
<ComboBox ItemsSource="{...}" IsTextSearchEnabled="True" IsEditable="True"/>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
The Valu...
I have a problem with a multibinding:
<Canvas>
<local:SPoint x:Name="sp" Width="10" Height="10">
<Canvas.Left><!-- irrelevant binding here --></Canvas.Left>
<Canvas.Top>
<MultiBinding Converter="{StaticResource myConverter}" Mode="TwoWay">
<Binding ElementName="cp1" Path="(Canvas.Top)"/>
<Binding ElementName="cp1" Path="...
Is there a way to bind a property of the listboxitem to one of it's owning listbox? I want it in a template so I believe that rules out ElementName.
...
Hello,
I'd like to show a tooltip when I move the mouse.
Here is my code:
private void Grid_MouseMove(object sender, MouseEventArgs e)
{
Grid grid = (Grid) sender;
if (e.GetPosition(grid).X < 100)
grid.ToolTip = e.GetPosition(grid).X.ToString();
else
grid.Tool...
Hi.
I make pop-up message for my application. this form is on wpf, and in the a thread i check a value and for some result , I show that pop-up to show message.
In the thread when I create pop-up class(type of WPF window class) an error throw by pop-up Contractor. "The calling thread must be STA, because many UI components require this...
<Button Name="MyButton" Content="Test" FontStyle="Italic" />
In the above XAML definition of a button, the FontStyle property is set to Italic. The designer is somehow able to populate a list for me to choose from when I hit the = sign. How is this achieved?
Before you answer, consider that the FontStyle property is, appropriately eno...
Hi,
I have listbox in my applcation and corresponding coding..
XAML:
<DataTemplate x:Key="menuItemTemplate">
<WrapPanel>
<TextBlock Text="{Binding Path = Menu}" />
</WrapPanel>
</DataTemplate>
<ListBox x:Name="menubox" ItemsSource="{Binding}" ItemTemplate="{StaticRes...
Which is the best way to registered event for example if I wanto to regiested Loaded event for the window or user control , then it is better to registered in the xaml file or in the loaded/initilization function in code behind (C#/VB.net)? Please give explaination of your answer.
...
Suppose you have a window with multiple buttons such as Ok/Cancel or Yes/No/Cancel. All the buttons need to be the same width. Obviously this could be done by just guessing a number and hardwiring all of them to that number.
Is there a better way to do it, one that would take into account preferred/recommended sizes (just how wide shoul...
I’m trying to bind a List of items to a listbox in WPF. The items are grouped by one value and each group is to be housed in an expander. Everything works fine when I don’t use any custom styles. However, when I use custom styles (which work properly with non-grouped items and as independent controls) the binding doesn’t display any i...
Hi
I'm trying to figure out how to set Data property of the Path element to get soft corners of this type:
Right now I have only sharp corners like this:
I tried playing with ellipses, but I can't get what I want.
Thanks
...
What's the difference between System.Drawing.Point and the System.Windows.Point?
In what context should which one be used?
I'm working with WPF.
...
My window has just a listview. This facilitates the users to incremental search the db. Since the design does not have a textbox, i've to globally handle the keys. I think it could be achieved by keybinding. But how can i handle all the keys and associate it to a single command.
Also suggest me other methods if any.
P.S.: I want this i...
I need to be able to get and set the textbox's text, but I don't want every single change in the textbox's text to update a string in my viewmodel. It seems to me that binding a string to the textbox's text property would be nearly as inefficient as updating a string on a textbox's textchanged event or am I wrong?
...
I've created CustomTabItem which inherits from TabItem and i'd like to use it while binding ObservableCollection in TabControl
<TabControl ItemsSource="{Binding MyObservableCollection}"/>
It should like this in XAML, but i do not know how change default type of the output item created by TabControl while binding.
I've tried to creat...
I want to build a model engine for a model base testing application. I assume there are some refernces that can be helpfull. I would like to use the cool features of WPF. Is there anything like this that exists? or any other helpful recommendation?
...
I'm creating a WPF app using the MVVM design pattern, and I'm trying to extend the TabItem control so that it closes the tab when the user clicks the middle mouse button. I'm trying to achieve this using InputBindings, and it works very well until I try to define it within a style. I've learned that you cannot add InputBindings to a sty...
Hello!
I have been looking around and even found a couple of related answers and didn't get a certain answer to my question.
Is there a way to have in the WPF ListView an additional row like in a DataGrid?
I prefer using the ListView since I use 3.5 and the DataGrid is not officially in the box and has many quirks.
I would prefer using...