I have the following xaml:
<Border BorderBrush="Black"
BorderThickness="1.5"
CornerRadius="5">
<Grid ShowGridLines="True">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<ItemsControl composite:RegionManager.Reg...
I have a data grid in a view that is bound to a List in a viewmodel. I have a lot of data to retrieve for the list, so I want to break it up into many small retrievals instead of one big one.
I want this to happen on a background thread with the UI updating (the grid binding the new data) at the end of each batch retrieved.
At the end...
I'm trying to follow the solution from this post in my WF4 project: http://stackoverflow.com/questions/58743/databinding-an-enum-property-to-a-combobox-in-wpf#62032
And I've implemented the code
<ObjectDataProvider MethodName="GetValues"
ObjectType="{x:Type s:Enum}"
x:Key="DayOfWeekValues">
<ObjectDataProvider.MethodParame...
Hey guys,
is there a way of extracting a content template of a WPF control which is hosted in a running WPF application?
Just the same way as I am able to dig through the visual tree of any WPF application with tools like Snoop I'd like to be able to extract the Content Template.
I have asked Google already. But either my keywords wer...
I need to get basic information about the computer's processor in a WPF application I'm writing.
Data such as "Intel(R) core(TM) 2 Quad CPU Q6600 @ 2.4GHz"
How do I do this?
...
I am developing a WPF kiosk like client that will be deployed on an HP TouchSmart Windows 7 machine with multi-touch enabled. My problem is that with Windows 7 multi-touch, the application does not recognize a finger 'tap' as a button press event, and therefore the button press Trigger to change color is never fired.
The Windows 7 an...
Hello,
Can someone tell me how to hide the root node of a TreeView in WPF/Silverlight? I would still like to display hierarchical data and to be able to expand collapse nodes except for the root node (which shouldn't be displayed at all).
Regards,
Xam
...
Guys,
I can't make KeyboardNavigation work for tree view.
I figured out that the problem my some how related to the TreeViewItem, check this out for example:
For ListBoxItem KeyboardNavigation works:
<ListBoxItem>
<StackPanel>
<TextBox Height="20" Width="300" KeyboardNavigation.TabIndex="1"/>
<TextBox Height="20" ...
I have a recursively defined user control that needs the following properties:
there are two columns
the first contains a single border around some text
the second column contains a stack of these same type of controls (the recursive part)
if the box in the first column is shorter than the total height of the stacked boxes in the sec...
I am looking for a good tutorial / explanation that shows where and how to implement settings in a MVVM WPF application. I understand .net has built-in support for settings but is this typically used for medium to larger size applications? What are the alternatives?
I am thinking of storing many user settings such as window size, grid...
I have a UserControl which contains 4 ToggleButtons and I'd like to trigger a custom event that an interested object can listen for which provides a status, based on the ToggleButton Checked values and also value(s) from the DataContext object.
Getting the ToggleButton checked values and deriving a status is simple enough, however I can...
i have a simple custom control that derives from UserControl with the following XAML:
<UserControl x:Class="EMS.Controls.Dictionary.MapTip"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:slData="clr-namespace:Microsoft.Windows.Controls;assemb...
I want to make my WPF app as an OLE object which can be inserted and launched from an MS-Excel .
When I open an Excel-2003 and go to Insert->Object a list of OLE object are shown in Create New tab. I want to register my WPF app as an OLE object so that it is also shown in the list. User can able to insert and launch the appliction from ...
I have a very big control, which in-turn contains lots of small controls hosted in it. Previously, we were applying themes using VisualTree iteration. We planned to replace the logic with Triggers. Now, when we apply any theme it takes much time than the previous implementation. [For example, previously it took around 100ms now it varies...
Just to give you a quick overview, just trying to create somewhat of a tile editor. So I made custom tile objects which will be represted through a contenttemplate displaying each as a rectangle. I am using a listbox as my container but I set the ItemsPanelTemplate of that container to use a grid. The problem is, setting Grid.Row or Grid...
Hi,
In WPF, I want to display sum, average values based on the List of Items provided.
For example, I have an Employee object with Salary Property, and I want to calculate total salary based on the employee list. Also, the employee object is data bound to a Items control where the Salary will be edited/new Employee may be added to the ...
Basically I am trying to do this:
<Trigger Property="Item" Value="{c:CollectionView.NewItemPlaceHolder}">
But the syntax is wrong. Is this possible to do?
...
Could anyone provide me an implementation of a tag cloud control for WPF, o point me to a site that shares one?
I am developing a WPF aplication with Visual Studio 2010, and I am using .NET Framework 4.0.
...
When you add a checkbox to a window and center it vertically, superficially it seems it is OK. However when you increase the padding you notice something odd -- the label part of the checkbox is centered indeed, but the check box remains in the left-top corner. So with enough padding you will get such result
[ ]
this is my checkbo...
I have a Wpf application with some textbox for decimal input.
I would that when I press "dot" key (.) on numeric keypad of pc keyboard it send the correct decimal separator.
For example, on Italian language the decimal separator is "comma" (,)...Is possible set the "dot" key to send the "comma" character when pressed?
...