hi to everyone, i have a little problem with the File.Copy method in WPF, my code is very simple and i get an exception when i run it, << Could not find a part of the path 'Images\37c31987-52ee-4804-8601-a7b9b4d439fd.png'. >>, where Images is a relative folder.
here is my code, as i said simple and the same code works fine in a console ...
With Adobe Flex I would create a custom ItemRenderer to change the display of items in a grid. This executes some code that overrides how the grid control renders items. How do I do this with WPF? What are the performance implications with the techniques available?
My initial aim is to display an icon, a title, and a description. Ideall...
There are lots of solutions on the internet attempting to fill this seemingly very-basic omission from WPF. I'm really confused as to what would be the "best" way. For example... I want there to be little up/down arrows in the column header to indicate sort direction. There are apparently like 3 different ways to do this, some using code...
I have a WPF app with a single form containing some WPF tabs. Three of the tabs are used to collect data from the user. The last tab has an OK button and when clicked performs some calculations.
How to I pass data from the text boxes on the various tabs to the function located in the buttonclick event? I have the function created. I jus...
How to determine the element type in WPF programatically?
For example my xaml is consisting of textbox, radio buttons, combo's, list boxes etc.
In the load event, say I want to do something related to the controls.(Say for all textbox,
the foreground color will be red, for all labels the background color will be green)..
something o...
Recently there have been a lot of move towards MVVM framework due to the nature of WPF development. I am making a pretty small application, which might grow a little over time. I am curious to know, what sized application should benefit from a MVVM implementation. For example .. has to have 15 user screens to be beneficial or something l...
Hi
I have a WPF window which is divided into two portions. One portion contains itemscontrol which generate textboxes depedning on observable collection binding in ViewModel.
The other portion of window has a content control which loads a usercontrol using datatemplate and viewmodel binding. Also that user control has buttons on it.
...
What i want to do is make a wpf listbox photo album for one my college project and i have come to a point when im really stuck.
i simply need to design a data template/ listbox style so it will look like a stack jumbled of photos , Ie the top one being the item under focus (selected item)
i drew a quick crude drawing in paint to help...
I've just removed a big memory issue for me, I used to merge our "Themes" resource dictionary in every xaml file instead of just in the app.cs.xaml.
However, after removing the merging in every file except the App.cs.xaml I've lost the design time styles/templates.
Please note: This only applies to the styles merged into our Themes.xam...
When I do something illegal in XAML, e.g. binding to a non-existing source all exceptions are silently handled and logged to the output console. I like to have these in a log file, in case this happens when this occurs when my application runs at the customer.
How can I do this?
...
Imagine I have two WPF FrameworkElements that need to be laid out. One element contains text, and the other shows line numbers for the text.
The widths of these two elements are not independent. For example, if the text element gets narrower, then more lines may wrap, which increases the number of lines, which may cause the line numbe...
So as a simple example, if you have an ItemsControl like the one below which dynamically creates it's contents How could i add triggers so that each item animates in and has a BeginTime based on it's index in the list.
I've tried extending the button so that it contains a delay time and then binding the BeginTime of the animation contai...
Hi,
I think I have got some grasp over basic WPF fundaes.
Now I want to go deep. However, apart from understanding how the classes work under the hood, I would like to learn practical aspects of WPF; that is, how to use it in real life projects.
I have seen a number of such books for Web Frameworks and languages such as Django, PHP et...
I'm trying to create a button that has an image in it and no border - just like the fire fox toolbar buttons before you hover over them and see the full button.
I've tried setting the borderbrush to Transparent, BorderThickness to 0, and also tried BorderBrush={x:NUll} - but you can still see the outline of the button.
Any ideas?
Than...
When executing a custom RoutedUICommand manually from code-behind, like this:
MyCommands.MyCommand.Execute(parameter, target)
do I need to call the CanExecute method first or is this already done inside the Execute method?
...
This is an age old problem of interactive elements inside interactive elements, but I want a ScatterViewItem to contain other surface interactive elements such as a SurfaceButton or SurfaceCheckBox. I've got all my elements in there and they react to taps etc. The problem is that I only get the normal ScatterView behavior once I click...
Hello.
I'm trying to bind a HashSet to a ListView item. I've documented my code here:
public class Person {
public string Name { get; set; }
public AddressList = new AddressList ();
}
public class AddressList : HashSet<Addresses>
{
//
}
public class Addresses {
public string Streetname { get; set; }
public string Ci...
I'm using a TabControl as my main workspace in an application, and I'd like to add a "Window" menu item that lists the headers of open tabs. The active (i.e. - focused) tab should be checked.
I've tried using an ItemsTemplate as follows:
<MenuItem Header="_Window" ItemsSource="{Binding ElementName=ux_workspace, Path=Items}...
I am trying to have a list of large (256x256) icons in a listview similar to vista explorer windows, but the winforms' listview control doesn't look like vista's listview.
Before I dig into WPF, can someone tell me if WPF listview can do this?
Basically I get this (solid blue selection):
instead of this (semi transparent blue select...