Hi,
Does anyone know about a Docking Control like Visual Studio for WPF, where Databinding for the Panes is supported?
I tried the DockManager from Infragistics and from Actipro, but they lack this support.
For example, the Panes for the content need to be bound through Databinding, so removing the Entity on the other side of the bindin...
I have a NavigationWindow which hosts a series of Pages. For design reasons the Pages are fixed at 780x580 but the NavigationWindow can be set to maximize, leaving a lot of black background around my Pages.
I would like to show a fairly simple, unobtrusive animation (just some labels of various opacity/size streaming from side to sid...
I want to use the GridView mode of a ListView to display a set of data that my program will be receiving from an external source. The data will consist of two arrays, one of column names and one of strings values to populate the control.
I don't see how to create a suitable class that I can use as the Item in a ListView. The only way ...
I know that I can make a setter that checks to see if a value is NULL and do something. Example:
<TextBlock>
<TextBlock.Style>
<Style>
<Style.Triggers>
<DataTrigger Binding="{Binding SomeField}" Value="{x:Null}">
<Setter Property="TextBlock.Text" Value="It's NULL Baby!" />
</DataTrigger>
</Sty...
I have a stack panel inside of an expander panel that I programaticaly adds check boxes to. Currently the exanpander stops at the bottom of the form, but the stack panel keeps growing. I would like the stack panel to be bounded by the expander and scroll to display the check boxes. Do I need house the check boxes in a list box to get ...
Hi,
The following XAML (below) defines a custom collection in resources and attempts to populate it with a custom object;
<UserControl x:Class="ImageListView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="300" Height="300"
xmlns:local="clr-nam...
I've been a .NET developer for several years now and this is still one of those things I don't know how to do properly. It's easy to hide a window from the taskbar via a property in both Windows Forms and WPF, but as far as I can tell, this doesn't guarantee (or necessarily even affect) it being hidden from the Alt-Tab dialog. I've seen ...
I want to add a single model object that has been instantiated once in XAML, and add it to two different collections (in xaml).
The following code renders fine in Blend's Design Time, but I get the following errors at run time:
For "Post1"
Object of type 'WpfBlog.Models.Tag' cannot be converted to type 'System.Collections.ObjectModel.O...
I'm trying to get some WPF concepts down, so I've put together a simple example of what I'm trying to do. I would like to set a custom property of a user control, and have it be used by an element within the control.
I've been researching and experimenting, but I'm not fully understanding everything here. Any help would be appreciated.
...
I'm trying to add a custom font as a resource in my application.
I have a "CustomFont" directory in the application and all the fonts inside of it are set to "Resource"
<Window.Resources>
<Style x:Key="Gotham-XLight">
<Setter Property="TextElement.FontFamily" Value="/CustomFonts;Component/#Gotham-XLight" />
</Style>
</Wi...
I have a WPF ListView which repeats the data vertically, I cannot figure out how to make it repeat horizontally, like the slideshow view in Windows Explorer. My current ListView definition is;
<ListView ItemsSource="{StaticResource MyDataList}" ItemTemplate="{StaticResource ListViewTemplate}">
</ListView>
The DataTemplace is (although...
Hello,
I was wondering how a window opened through ShowDialog is treated in the Visual Tree.
For example, Window A opens Window B through a ShowDialog. When firing a routed command on Window B, Window A does not receieve the command (even though it is listening for it).
Is there any way to make this work?
Thanks!
Jon
...
I'm trying to create a master detail view of a linq to sql relationship in wpf. The view will have two comboboxes. One for selecting the master item and another for selecting the detail item.
I have achieved this using an ADO.Net Dataset containing two tables and a relationship between the tables. where the first combobox binds to the ...
Hi,
I want to pass an enum value as command parameter in WPF, something like this -
<Button x:Name="uxSearchButton" Command="{Binding Path=SearchMembersCommand}"
CommandParameter="SearchPageType.First" Content="Search"></Button>
SearchPageType is an enum and this is to know from which button search command is invoked.
Is th...
Hi,
I am creating a WPF Application using VS 2005. I download the add on to create the WPF application. Now for deploying the application I need the installer to automatically download the WPF components. Please note that I cannot installed 3.5 framework on the client's machine. There are some rules and things that prevent from happeni...
How do I set tab ordering in WPF? I have an ItemsControl with some items expanded and some collapsed and would like to skip the collapsed ones when I'm tabbing.
Any ideas?
...
If I want to display an underlined value in a TextBlock, I have to use a Run element. (If there's a better/easier way, I'd love to hear about it.)
<TextBlock>
<Run TextDecorations="Underline" Text="MyText" />
</TextBlock>
Ideally, to implement this within a DataTemplate, it would look something like this:
<DataTemplate x:Key="under...
How can I add a scrollbar to the wrappanel control in WPF. Some of my controls are cutting off width wise due to the no scrollbar.
...
I'd like to host custom items in a ToolBar in an ItemsControl. However, the buttons I add are rendered below the toolbar and as regular buttons rather than in the ToolBar with the ToolBar look and feel.
This can be reproduced with a few lines of Xaml (I've excluded the default content). The custom ItemsControl:
<ToolBar ItemsSource="...
Hey. I have an object that has a string property called BackgroundColor. This string is the hexidecimal representation of a color. I cannot change this object.
I'm binding a collection of these objects to a listView. What I would like to do is bind the background of the listview's row to the BackgroundColor property of the object that i...