Whenever I create a new WPF application or WPF user control library, the AssemblyInfo.cs file includes the following attribute:
[assembly: ThemeInfo(
ResourceDictionaryLocation.None,
//where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dicti...
hi,
I created a custom control that internally is using BindingList to keep track of Account objects that are displayed in some custom grid. I want to add a DependencyProperty to my control that will expose set/get for List that will allow me TwoWay binding between my control and data model. I want to be able to set that list to initial...
Hi,
This is a follow up to my question here. It seems that even though the InkPresenter is closest to the user, the MouseDown/MouseMove/MouseUp events are received by the Image element. Does anyone know why that is?
Edit: Sorry if I didn't make the question clearer:
I have attatched event handlers to the InkPresenter, which is a sibl...
Hi,
In wpf Textbox has TabIndex property to set the tab order, this is working fine when the controls are in the same context, In my case i have a listbox whose itemstyle has a text box and the style is assigned dynamically based on trigger. now how can i do the tabindexing so that when i tab index moves from textbox in first listboxite...
Dear ladies and sirs.
Does anyone know of a good implementation of a WPF TreeView with multiple selection?
I am currently aware of one commercial implementation - http://www.telerik.com/products/wpf/treeview.aspx
My employer has no problem spending money on a commercial product, so I would like to know more of good commercial implemen...
How to create a custom control which takes a list of UIElements and renders them according to some logic?
Because it will handle a list of UIElements, the best way of adding controls will be the same as for, i.e. ListBox or ComboBox.
<local:SomeControl>
<Button Content="First"/>
<Label Content="Something other"/>
</local:SomeCo...
I've got an application based on Prism.
This is my shell:
<Window x:Class="AvarioCRM3.ShellV2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cal="http://www.codeplex.com/CompositeWPF" >
<DockPanel LastChildFill="True">
<Border
...
I use Height="*" a bit to mean that the height of the last row should fill to the bottom of the grid.
But what does "10*" mean?
<Grid Name="mainGrid">
<Grid.RowDefinitions>
<RowDefinition Height="100" />
<RowDefinition Height="40" />
<RowDefinition Height="10*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinition...
Hi all,
I'm using WPFtoolkit Datagridd ,I have to wrap text in a datagridtextcolumn or
I have to add a tool tip to the text column .I have searched the net but i coulddn't get a proper solution.Expecting your's valuable suggestions...
...
How do I get the bottom textblock to fill up the remaining space horizontally and vertically?
I've got a shell that has this region:
<DockPanel Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2" LastChildFill="True"
Background="Orange">
<ItemsControl x:Name="MainNavigationPanel"
Background="Yellow"
DockPanel.Doc...
Can anyone tell me what is the c# equivalent of the following snippet of XAML ??
<my:DataGridTextColumn
Visibility="{Binding Path=DataColumns[21].IsVisible, Source={StaticResource viewmodel}, Converter={StaticResource vc}}"
Binding="{Binding SdDevDuration}"
/>
Its th...
Hi. I'm doing some stuff in WPF.
I have a ComboBox with many Types. After selecting a concrete type, I want to be able to Load a particular UserControl (with many TextBoxes etc.) respecting the type in a defined region on my WPF Window.
How to do that? Is there anything like
LoadControl() and load it into a PlaceHolder in ASP.NET? And ...
Hello,
Does anyone have an idea, how to create a collapsable ListView?
e.g. I've a ListView with the Columns: Name, Age, County
and the following entries:
+ Max | 20 | Switzerland
+ Joe | 25 | Germany
+ Bob | 30 | Italy
When I click on the +, I want the ListView to collapse like this:
- Max | 20 | Switzerland
Lastname: Eastw...
Hi
Can anyone tell me how to download Wpf RibbonControlLibrray and how to use it?
Thanks in advance
...
I have a ComboBox with a DataTemplate. The DataTemplate has two controls, each of which has a ToolTip attached to it. The list of items of the ComboBox has the tooltips as expected when you hover over each control. But the selected item area on top of the ComboBox does not display the tooltips, though the controls are rendered as expecte...
I am trying to bind a property (Button.Background) to a property on my custom attached property.
In a C# file I have
public static class Square
{
public static readonly DependencyProperty PlayerProperty =
DependencyProperty.RegisterAttached("Player", typeof(Player),
typeof(UIElement), new FrameworkPropertyMetada...
Hi,
Is there a simple way in WPF to create a usercontrol with different modes for display, update or insert a new object?
I'm thinking (coming from a web background) something like a listview control where you can create display templates for the different modes. You can then quickly change the mode, depending what you need to do.
An...
How can I open menu (System.Windows.Controls.Menu) programmatically in WPF?
...
Using WPF, I am building a very simple document editor that will provide basic formatting capabilities such as the ability to modify the appearance of a user's text, i.e. underline, bold, change font size, etc.
I have implemented several RichTextBox for the user's inputs and would like to display a button illustrating the toggle state o...
Hello all!
I want to be able to create a fade animation on a text element when the
binding to that element updates. In other words, the effect is that as
text gets added to a text box one sees a fading effect as the text updates
and then fades out. I do'nt know how to achieve this. I have seen something similar
using an EventTrigger on ...