Hi,
I have a list of string array as input. The array dimension are static for all the list but I can't know the array size until the list is retrieved.
I need to bind the list in a datagrid in Silverlight.
I tryied to create columns at runtime, binding each column to a particular array position but cannot find a way.
Have you any ...
Hi
i received a request to create a Music Player with specific features ,sincerely i did not develop a Music Player in past time(just 7 months i began to develop programs Smile ).
I try to explain correctly these features requested right now.
This Music Player will Play music in modality "Random" (first request) downloading songs from a ...
Is there some attribute in WPF that I can add to element, so when I click it the target control get focus? The closest thing I have found is 'Target', but it works only with access keys and clicking it has no effect.
...
Hi all!
I'm newbie in WPF, so sorry about stupid question.
It is possible to show combobox side by side with selected TreeViewItem?
I need something like shown in the left picture at the following link: http://www.mypicx.com/03242009/Combobox_in_TreeviewItem/
I tried to do thus:
<TreeView Name="treeView1">
<Tr...
Hi all,
I have a ListBox using DataTemplates. Within the DataTemplate is a CheckBox which has its IsChecked property databound. What I am experiencing is that when the bound value is True, the item within the ListBox is selected, which is NOT the desired behavior in this case.
How do I break the relationship between the checkbox being ...
I have a WPF window, with multiple ListBox controls on it, all sharing the same style that I've simplified here:
<Style x:Key="listBox" TargetType="{x:Type ListBox}">
<Setter Property="ItemTemplate">
<Setter.Value>
<DataTemplate>
<Border BorderBrush="Black">
...
I'm trying to get images to display in a WPF ListView styled like a WrapPanel as described in this old ATC Avalon Team article: How to Create a Custom View.
When I try to populate the ListView with a LINQ-to-Entities queried collection of ADO.NET Entity Framework objects I get the following exception:
Exception
Items collection m...
I am setting a style for the Window in the App.xaml like such:
<Application x:Class="MusicRepo_Importer.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:System="clr-namespace:System;assembly=mscorlib" StartupUri="TestMaster.xaml">
<Application.Resourc...
I'm looking to use some icons from the VS2008ImageLibrary/Actions/pngformat in my WPF application to get a more Visual Studio look and feel - like the "Insert Standard Items" command in WinForms.
I've added the images as resources, and referenced them in my xaml file:
<DockPanel.Resources>
<Image x:Key="NewIcon" Source="Toolbar ...
Hi folks, I just received a requirement to display a length of text in a control. The control is of a particular width and will be up to 2 lines in height. If it renders longer than two lines it will just display "..." at the end of the string.
Is this possible with any of the stock standard WPF controls?
Thanks,
D.
...
I have a XAML input form which the user fills out.
I want to validate this form.
I have the field information in a collection which I want to loop through and check each field.
But how do I access the name of the field when it is in a string, e.g. when fieldInformation.FieldName = "CompanyName" I want to check "Field_CompanyName.Text"...
I have just few days to show a demo about a Music Player in WPF and i have a trouble that i can not work out right now .
I need know how change a location folder meantime the Music Player is running ,i have 3 location folder:
D/: Morning;
D/: Afternoon;
D/: Night;
in each folder there are songs of different genre.
This music player...
I have a an object which is set to the DataContext in a Window. I have textboxes in the window which are bound to the properties on the object. There seems to be a delay however before the properties on the object are updated.
<TextBox x:Name="txtPropertyOne" Text="{Binding Path=PropertyOne,Mode=TwoWay,UpdateSourceTrigger=PropertyChange...
That's a pretty straightforward question isn't it?
I'm just after a flat list of those controls that implement ICommandSource,..thought it would be useful and no doubt someone has that kind of info.
Thanks in advance
...
Is it possible to swap out the entire View of a ListView in Xaml using datatemplates? Looking for a way to allow the user to change how they view the data in a ListView and I'm hoping to stay within Xaml. I have found how to change the template of a single column/cell.
A bit more detail of what I'm trying to accomplish: I'd like to ...
I'm trying to build a WPF user interface containing a TabControl, and a TextBlock.
I want to bind these two controls to an underlying collection of instances of the following class:
class PageModel
{
public string Title {get;set;}
public string TabCaption {get;set;}
public FrameworkElement TabContent {get;set}
}
The tab control...
Hello, I want to change the foreground color of cells that hold negative numbers, but I don't know how to specify the DataTrigger that would let me. I'm using something like this:
<Style x:Key="NumberCellStyle" BasedOn="{StaticResource CellStyle}">
<Style.Triggers>
<DataTrigger Binding="{Binding Converter={StaticResourceExtension Sig...
I have a custom Panel which upon resizing has its LayoutUpdated event and ArrangeOverride called twice.
So initially MeasureOverride and ArrangeOverride do their thing once upon open of the client window. Then, if I maximize the window each are called twice. The Available and Final Sizes respectively are not different between each ite...
We can use [Windows.Markup.XamlReader]::Load to load XAML file in PowerShell, but is there some way to specify some PowerShell script as code behind?
...
I'm trying to bind a Byte array from my databse to a WPF Image.
My XAML:
<Window.Resources>
<local:BinaryImageConverter x:Key="imgConverter" />
</Window.Resources>
...
<Image Source="{Binding Path=ImageData, Converter={StaticResource imgConverter}}" />
I've modified code published by Ryan Cromwell for a value converter:
Class Bi...