Hi,
I have a custom Control which contains the generic.xaml inside the Themes folder. I have set the build action to Resource.
Now from App.xaml I am setting the reference to the DLL by using :
xmlns:localFolder="clr-namespace:customControl;assembly=customControl"
After the reference is set I am trying to Merge the Resource diction...
Hi!
Does anybody know of a gallery of controltemplates, that I could use to learn more about what is possible with the different control types?
...
Hi,
I am working on wpf propertygrid(PG) control and I want the PG to support collection type(IList, ObservableCollection etc.) properties. I am bit confused on how to keep track of selected item(of that collection) and pass that to client.
Any ideas?
If the solution makes use of the Open Source WPF PropertyGrid (http://www.codeplex.c...
Hello developers. I have some class with properties firstName and lastName. I want bind TextBlock to concatanation of this two properties. I know that I can create third property that will be return concatanation of these properties. But I dont want to use this approach. Is it possible to Bind TextBlock to two properties. and also I dont...
Hello! I want to have a border around ListViewItem (row in my case). ListView source and columns generated during Runtime. In XAML i have this structure:
<ListView Name="listViewRaw">
<ListView.View>
<GridView>
</GridView>
</ListView.View>
</ListView>
During Runtime i bind listview to DataTable, adding necessary colu...
We have an WPF Application build on .net framework 3.5.
Some testers find if they uninstall .net framework 3.5, but install .net framework 4.0, our APP fails to launch itself.
Dose this mean that .net framework 4.0 does not include all 3.5 libs, and users have to install .net 3.5 even though they have 4.0?
I see here are some migratio...
Hi
Hi have an observable collection that I bind to a DataGrid using the itemsource property of the DataGrid.
All the properties of the class inside the collection are displayed properly in the DataGrid. Now, I want to hide some fields to the DataGrid using the browsable attribute [Browsable(false)] in the class. It works well in winfor...
I have a simple object as such:
public class Info
{
public string Name {get; set;}
public int Count {get; set;}
public DateTime TimeStamp {get; set;}
}
I want to bind a collection of these objects to a WPF TreeView and have the properties on the Info objects show up as sub TreeViewItems, like so:
Item 1
Name: Bill
Count...
So what I want to accomplish is that I have a listbox of items (for example: items in a basket) and when I mouse over one of them, I want to see a detailed view in another part of my window (with image and all that).
BASICALLY what I did works - but there are three things that I don't like:
a) I use "ItemsControl" so I have to bind the...
I have a datagrid in a grid but the scrollviewer is not visibile even though I made it auto.
Below in my code. I can't figure out where's the problem.
<Grid Grid.Row="0" Grid.Column="0">
<Grid.RowDefinitions>
<RowDefinition Height="...
Hi, I have a user control that has a property of type Integer, that i am trying to set in the XAML Template to be that of a property within the bindingsource.
If I set the property using a hard coded integer i.e.
<MyControl MyIntegerProperty="3" />
This works fine, but if i try
<MyControl MyIntegerProperty="{Binding MyDataContextInte...
Hi,
Pardon me, if it is a silly question.
Can you anyone tell me how the WinForms are rendered (the background mechanism)
Also how is WPF Form are rendered.
In simple, i want to know the rendering mechanism of WinForms and WPF Forms.
...
I have a window that looks like this:
<Window x:Class="MyWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="My Title" Height="300" Width="300" ResizeMode="NoResize" SizeToContent="Height" WindowStartupLocation="CenterOwner">
<DockPanel>
...
I have a ListBox whose ItemsPanel I have replaces with a WrapPanel.
The WrapPanel now hosts the databound ListboxItems. Each item has a variable sized text in it, giving each item a different width.
However, I want the width to be constant so that all items have the same width as the item with the longest text.
Is that possible?
...
Hey, I'm doing a WPF Application.
The tree looks like this:
SurfaceWindow --- Startscreen
..........................-------- Page---------- Subpage
I'm trying to call a method from the "Subpage" from the "Code Behind" of the Startscreen(Startscreen.xaml.cs).
The method from the Subpage looks like this:
public void showTheme(Theme...
Hi,
I was wondering if there is anyway of disabling the select all options on the top corner of the WPF DataGrid....this only seems to occur when I add a UserControl to a fixeddocument in WPF.
Thanks in advance,
U.
...
I use this style for all my labels
<Style TargetType="Label" x:Key="LabelStyle">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Label">
<StackPanel Orientation="Horizontal" >
<TextBox Loaded="MyTextBlock_Loaded" x:Name="EditCon...
After searching for a fix to this issue in the previous answers I've decided to post my example.
I have the following situation: my datagrid is placed inside a Grid row that is itself placed inside a UserControl.The UserControls does not have a fixed height, as I want the control to resize together with the window. The datagrid is bound ...
I can't cope with set interspaces between nodes in Treeview wpf.
I manipulate padding and gives me in result interspaces between main nodes, but not between child nodes.
Is there any way to get rid of this ?
...
Hello good people , i'm trying to achieve a functionality but i'm don't know how to start it.
I'm using vs 2008 sp1 and i'm consuming a webservice which returns a collection (is contactInfo[]) that i bind to a ListBox with little datatemplate on it.
<ListBox Margin="-146,-124,-143,-118.808" Name="contactListBox" MaxHeight="240" MaxWidth...