array of Type in xaml?
Hi, is there a way to declare an array of types in xaml? maybe something like this? <x:Array Type="x:Type"> <x:Type se:MyType1/> <x:Type se:MyType2/> <x:Type se:MyType3/> </x:Array> ...
Hi, is there a way to declare an array of types in xaml? maybe something like this? <x:Array Type="x:Type"> <x:Type se:MyType1/> <x:Type se:MyType2/> <x:Type se:MyType3/> </x:Array> ...
Hi All, mp3 files from server takes more than 5mins to play in the mediaelement. Code: <MediaElement Name="player" Source="{Binding ElementName=lbTrack, Path=SelectedItem.FilePath, NotifyOnSourceUpdated=True,NotifyOnTargetUpdated=True}" UnloadedBehavior="Stop" Volume="{Binding ElementName=vo...
I'm trying to implement a simple spreadsheet using WPF datagrid. When users input a formula in a cell, engine calculates the formula and update the cell with the calculated value. But most of calculations i handle take long time, so i want to calculate those in other threads. I tried to implement this using CellEditEnding event like bel...
Hi, I have a multi-binding like <TextBlock> <TextBlock.Text> <MultiBinding Converter="{StaticResource myConverter}"> <Binding Path="myFirst.Value" /> <Binding Path="mySecond.Value" /> </MultiBinding> </TextBlock.Text> </TextBlock> And I want to pass a fixed value e.g. "123" to one the the two binding above. How...
The below code works for a DataGridComboBoxColumn, but ComboBox doesn't have a SelectedValueBinding property. What should I use instead? <ComboBox Header="Application" SelectedValueBinding="{Binding ApplicationKey}" SelectedValuePath="ApplicationKey" DisplayMemberPath="ApplicationName" ItemsSource="{Binding So...
I have a page that is being hosted in a window. The page has an ultragrid in which there is a context menu. When the context menu is opened, and the window is minimised using windows+m, the window gets minimized but the context menu is not getting minimized. The window gets minimised to the taskbar but the context menu is still visible....
My control has a property that returns an ICommand object. Using XAML, how to I bind a button to it? ...
I need to create a rather complex animation involving images in WPF where an image has to move along a circular path. Here is a picture of what it looks like... Here is my xaml: <ControlTemplate x:Key="ValveStyle" TargetType="{x:Type CheckBox}"> <ControlTemplate.Resources> <PathGeometry x:Key="CirclePathGeometry" PresentationOpti...
Hello, chaps. To build a composite application view in my application, with different regions, untill now, I've always used content presenter and used DataBinding to set its content. If I wanted to change its content, I would just have to use an event aggregator, publish a ViewZoneChangedEvent, subscribe to it in the "shell" window, an...
I have a quite simple question: I have a People property whose type is List< Person > and a Person has a Name and Surname. I want to show the Name on my listBoxPerson and ı want to make bindng operations in code behind -dont want to use ItemsSource property- Here is my code snippet: Binding userBinding = new Binding(); userBin...
Hello, I have a word document with a few pictures and many lines of text (with headings) in it and want to convert this document to a flow document. So I can open it easily in my wpf application and use a rich text box to make it editable... I found this article useful. But I have some problems with adding images (Form the docx file) t...
Hi, I am trying to detect and deal with edits in my RichTextBox. Some edits end up with two lines being merged into one. For example if the rich text box contained: line 1 line 2 Selecting from the beginning of "line 2" to the end of "line 1" and then pressing delete will result in: line 1line 2 I can detect the fact that the fir...
Hi, When I developed my WPF PC application, I used the following code to display my gif image, as I realized that there is no easy way of doing this:- XAML: <StackPanel Height="25" Name="stkProgressBar"> <wfi:WindowsFormsHost Background="Transparent" HorizontalAlignment="Center"> <winFor...
How to use MVVM in WPF Browser Application? I want to know how to use MVVM in WPF Browser application, Is that really worthful when comapre with Silverlight? Which technology is having higher performance for mvvm Silverlight or WPF? I am going to have my Business layer using ASMX 2.0 (or) WCF Please help me on this, Thanks in advan...
I know the question sounds a little strange, but I'd like to change the opacity of all the items not selected in an ItemsControl. In other words, I'd like to make more "visible" the selected item, showing the others item more "obfuscated". I have a custom control "MyCustomControl" derived from ItemsControl, where each item is an instanc...
I am developing a WPF application (in .NET 4) which contains a lot of videos (40 videos, each video > 1 G) using the WPF media element. Unfortunately, I cannot load more than 10 videos at a time. When I try to display more videos, a black screen appears where normally the video should be played. Has anyone ever experienced such a pr...
Hi, I have the following xml file: <CUEShow> <Showtitel>example show</Showtitel> <Authortitel>Wouter</Authortitel> <Singlecues> <Singlecue><nr>1</nr><Name>Onweer</Name></Singlecue> <Singlecue><nr>2</nr><Name>Regen</Name></Singlecue> <Singlecue><nr>3</nr><Name>Donder</Name></Singlecue> <Singlecue><nr>4</nr><Name>Onweer</Name><...
Hi. I am currently experimenting with WPF. One thing, I wanted to do was a master to detail selection over multiple comboboxes. I have a ViewModel with GroupItems that i use as ItemSource for the first combobox. These GroupItems have a Property called Childs, which includes a List of items that belong to this group. I can't find a way t...
Possible Duplicate: Get List Of USB Devices Im making a WPF app. Im looking for a way to list all plugged in USB devices (disks!) in my comboBox. I can list all drives using DriveInfo.GetDrives(), but is there a simple way to filter that to USB devices? thanx ...
I am using WPF and C# I have a button that opens a window, which also includes a button that adds an User object item to a listbox and I want the listbox index to be updated after insertion. I understood that the solution is about using observable class of INotifyCollectionChanged but actually I dont know how and where to use them. Can y...