I'm looking for a textbox control(and or combo box) much like the IE or FireFox URL bar, as in i can pass it an image for the left side, and can get a styled combo box drop down instead of standards. And if there isnt, can i be informed on a good way to write the control myself?
...
We have quite a complex WPF application (that I cannot show here) that somehow has the tiled background misaligned of one of its user controls. I was unable to reproduce this problem in a "clean" WPF project but will try to illustrate the problem in this picture:
The gray area represents the user control and the black and red checks r...
I am binding the data of a textbox through databinding.
Instead of giving the minimum and maximum value like this ...
<TextBox Height="24"
HorizontalAlignment="Right"
abc:TextBoxMaskBehaviour.Mask="Decimal"
abc:TextBoxMaskBehaviour.MinimumValue="0"
abc:TextBoxMaskBehaviour.MaximumValue="200"
...
Here's my context:
I am writing a WPF add-in for an application.
This Application's main thread is unmanaged.
I want to add a global exception handling system for this add-in to handle any unhandled exceptions.
Here's what I've tried but not working:
I cannot add a try-catch block to my Application.Run() code line. Because I am an ...
I'm creating a WPF application using the MVVM design pattern, and I'm trying to create a Combobox that allows the user to edit the items in the drop-down list at runtime, similar to the way MS Access 2007 lets you do it. So I've created a UserControl that builds on top of a Combobox... when the drop-down is shown, there is a button belo...
Hi,
How can i make the Dispatcher queue as empty in WPF?
...
hi all,
I have the following, very easy to reproduce problem:
I'm creating a xaml application which uses resources from another file. The way to go is to create a MergedDictionaries-tag to merge the local and global resources, like this:
<Window>
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries...
I'm using a viewmodel pattern, so my DataContext for my custom user control is actually a viewmodel wrapper for the real data.
My custom control can contain hierarchal instances of the custom control.
I set up a DependencyProperty in the custom control for the real piece of data, with the hopes of creating a new viewmodel for that data...
I have a C# WPF project which generates daily and weekly reports automatically. I want to inform the user when new reports are available, so I thought of a badge like on the iPhone where the number of new messages appears on a little red circle:
I thought of three images: Two images with semi circles on the left and right if the number...
I just want to add a index column in wpf toolkit datagrid to show row index of each data in datagrid. How?
<dg:DataGrid ItemsSource="{Binding List}"
SelectionMode="Extended"
IsReadOnly="True"
AutoGenerateColumns="False"
...
I've got a control that is essentially an Image with an AdornerDecorator layer on top which acts as a layer for mouse selection. What I'm trying to do is to get the section of the Image which has been selected without having to deal with mapping the co-ordinates of the selection back to the image (as there potentially many transforms whi...
Hello every one
Is there any sample that uses xml for binding listbox to the northwind database?
For example I want to bind my listbox using northwind database,I have norhtwind.mdb file
so how I can bind listbox in only xml please tell me thanks.......
...
Suppose I have a simple WPF 3D scene set up with a single rectangle rotated -45 degrees around the X axis like so:
<Viewport3D>
<Viewport3D.Camera>
<PerspectiveCamera Position="0,0,4"/>
</Viewport3D.Camera>
<ModelVisual3D>
<ModelVisual3D.Content>
<DirectionalLight Color="White" Direction="-1,-1,-3...
I need to dynamically add/remove GridView columns, each displaying information from a different element stored in a KeyedCollection (indexed with tn 'int'). The basic technique works, but requires an index, as follows:
<GridViewColumn Header="bid">
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Width="60...
I have a button template in Expression blend of which I have a image control. Is there a way to bind the source of the image to the button template so that when I click the button higher in the visual tree I can set the image without having to edit the template in Blend?
I'm using Expression Blend 3.
Thanks,
Rob
...
I found this resource Centering On Canvas. But the problem is I cannot use the same thing via C# because the canvas left and top values are returning zero and throwing an exception.Not always will I place elements on canvas via xaml, so how can I use C# to implement this. Please help.
<Canvas.Left>
<MultiBinding Converter="{StaticResou...
I have a WPF project, and there is one dialog that I will re-use in different applications. I want to put it in its own DLL, but when I use the New Project wizard in Visual Studio 2008 it only lets me create WinForm C# DLLs. Am I missing something?
...
Datagrid contains more than 200 rows and 15 columns some cell contains graph as well.
Virtualization is enable in datagrid so datagrid doesnt have entire viusal.
...
For a very specific reason I want to select ListViewItems on mouse button up, not actually on mouse button down. I want this behaviour to be embedded in the control. Is it possible to achieve this? can anyone give hint?
...
I am trying to enable kerning in my WPF TextBlock as in
<TextBlock FontFamily="Garamond" FontSize="120" Typography.Kerning="True">Table</TextBlock>
<TextBlock FontFamily="Garamond" FontSize="120" Typography.Kerning="False">Table</TextBlock>
However, setting Kerning to True or False does not seem to make any difference.
What I am doing...