From this article http://msdn.microsoft.com/en-us/magazine/dd882520.aspx I wanted to create a list of selected days like he did. Except my list is not static and putting it in the converter seems smelly. Has anyone done something similar with the WPF toolkit calendar control? Or are we trying to use this control for something more tha...
I wanna customize the toggle state of the toggle button in wpf. I want to set a image to the toggle button when it is on and set another image when it is off. TO do so, i thought of using triggers. This is how i ended up doing,
<Window ...>
<Window.Resources>
<Image x:Key="OnImage" Source="C:\ON.jpg" />
<Image x:Key...
I have a simple WPF application with a webbrowser control. When I direct the control to load a page I'd like to have the control tell the server it's trying to load the page from that it's a mobile device and therefore load the smaller version of the page. I know a lot of sites just add mobile before the address, so google.com's mobile p...
Recently I started using WCF, and I was very impressed, so much so , that I am wondering about getting more into WPF, but my initial experiences with XAML were not that great, about 1 year ago.
Have things improved, is the delivery truly browser independent (can run on browsers other than IE).
Is development productivity increased, b...
Hi,
I have an application where I need to switch visibility of some controls using a timer. Each 5 seconds, some controls disappears while some other appears. When I used a timer, it says that cannot change the visibility because the timer thread is not the owner of the control.
How can we bypass that?
Tks
...
I would like to use a WPF ToggleButton to expand and collapse some controls in my application. How can I use XAML to accomplish this?
I'm thinking that I could somehow bind the Visibility attribute of some controls to the ToggleButton's IsChecked state, but I do not know how to do this.
Maybe I need to give my ToggleButton a Name, then...
I am hosting a WCF service inside of a WPF app. I would like the WCF to be able to communicate with its host. Specifically, I'd like to receive event notifications from the WCF when certain WCF methods are called by clients.
I've tried modifying my WCF to be a singleton like so:
[ServiceBehavior(InstanceContextMode = InstanceContextMod...
So I'm attempting to move a ScatterViewItem from 1 point to the another. I've tried using PointAnimation. However, after the animation completes I can't move the item from the To point. I can spin the item and scale it, but for some reason can not move it.
It's a simple movement from 1 point to the next in a straight line. Should I ...
Maybe this has been asked before, but I can't seem to find the answer through searching and googling it. What I need is a way to tell when a template of a control has changed. Meaning I'm looking for an event to fire when a template has changed on a control. Something along the lines of an event called TemplateChanged. I don't see a...
I have a custom MSBuild task that peeks inside an assembly to get some attribute meta-data.
Assembly assembly = Assembly.ReflectionOnlyLoadFrom(AssemblyFile)
This is used by our automated build/release process, and has been working perfectly against assemblies used by and referenced from class libraries, console apps and web projects....
For Silverlight or WPF when control is bound to Observable collection , and I am only interested in collection additions/deletions to be reflected in a control - i.e. one way binding - am I right in thinking that there is no need for INotifyPropertyChanged in a class the collection is comprised of. But changes to the existing element of ...
I cannot imagine how this is anything other than a bug, but since I do not currently have a login for the MS Connect website I will ask here first.
I have Visual Studio 2008 SP 1 with all post SP1 hotfixes I could find relating to the crash installed. Can you reproduce the following crash?
Create a new "WPF Application" project using...
We had a big project developed in WinForm. Now I'm adding a new window to the project using WPF. The WPF window is now part of the project, i.e. it is not a seperate project or dll. What happened now is any control that is supposed to accept key inputs, such as textbox, does not respond to my keyboard input. The window only responds to m...
In WPF i can make my UI using .NET 2.0 style like designer.cs, my question is what are the advantages of using XAML for UI design instead of code.
...
How to export the crystal report to .csv file format?
...
How can I format WPF Listview Colum to show 2 decimal points?
...
Hi, default date format in DatePicker is "yyyy-mm-dd" but i need "dd-mm-yyyy". This one solution doesn't work for me.
...
I have two layers. The first layer is Image control. The source of it is Bitmap Image. And this is the background layer. The second one, which is the front layer is a canvas on which I can draw geometry objects (such as line, polyline, rectangle etc.) and the background of canvas is transparent.
How can I merge these two layers and sa...
I installed the most recent WPF toolkit and used the Datagrid controll.
The list of items is showing with automaticly generated columns based on my IList as ItemsSource.
I was wondering if there is an OOTB way to have filtering/sorting in this grid?
A way to click the header to make it sort, or use a dropdown in the header that shows al...
I have a sorted tree view with a lot of item. When I am adding a new item I would like the newly added item to be selected and shown on the screen. For example: if I am seeing the first 10 items on the screen and the new item is added on 20th position then the view should change to present the new added item (it can be the first one on t...