Possible Duplicates:
What is F# being used for?
What are the benefits of using C# vs F# or F# vs c#
I have recently studied C#, WPF, a little bit of WCF and now I have read that Visual Studio 2010 will also support F#.
My question is: what kind of application is likely to need F# instead of C# or Visual Basic?
Is F# necessary...
Various WPF applications of mine display FlowDocument's. I'm able to print them, using the approach described in the answer to Printing a WPF FlowDocument.
Now I'd like to add a "print preview" capability. In the normal case, I am printing the FlowDocument that is displayed in the Window, and so I wouldn't need a Print Preview then....
This is a followup to this question.
The code shown there has been very useful in obtaining a bitmap from a window and applying it as a BitmapSource on a WPF Image control. However, I'm finding that many areas of the image are showing up as transparent, particularly any areas of text. I've posted a sample of what I'm seeing here: http:/...
Lets say I have an application which comprises one window. Inside the window is a tabcontrol, with three tabitems. Inside each tabitem is a usercontrol.
In one tab I have Add color. In the next tab I have add Fruit. In the third tab I have relationships, where the user can add links between the fruit and the colors. This relationship is...
Hello!
I've been looking on the site http://wpf.codeplex.com/ and found the Ribbon control finding my needs.
I was wondering if it requires any Office licence things etc. on the machine, or this just needs the toolkit dll.
Does it require Win-7 or is compatible on XP machine as well?
...
My XAML code is like this:
<Window
xmlns ='http://schemas.microsoft.com/netfx/2007/xaml/presentation'
xmlns:x ='http://schemas.microsoft.com/winfx/2006/xaml'
Title ='Print Preview - More stuff here'
Height ='200'
Width ='300'
WindowStar...
Hello,
I am attempting to resize the contents of my listbox according to the listbox itself. This is being done in WPF.
Any ideas on how this might be possible?
I have been searching and have not come up with anything obtainable...
Any helpful ideas are appreciated,
Thanks!
...
In WPF, what, really, does it mean to be a "dependency property"?
I read Microsoft's Dependency Properties Overview, but it's not really sinking in for me. In part that article says:
Styles and templates are two of the chief motivating scenarios for using dependency properties. Styles are particularly useful for setting properties...
I'm writing a WPF application with C# as the code behind and I want to give the users the option to change certain settings in my application. Is there a standard for storing settings within an application that will be read and written to constantly?
...
Is there a way to take a chunk of XML/XAML and load it as WPF controls at runtime?
Related:
Can I use XamlReader.Load or InitializeFromXaml from a WPF Window, for the Window definition?
...
I've got user-definable columns for my data grid, which basically boils down to a
switch(column_title)
{
case "foo": binding = new Binding("Model.Fonz");
//etc.
}
and the binding gets applied to the column.
Now I need to dump to csv, with the configured columns. As it may be a different column set that being used in my ui and I def...
I´m currently learning WPF and the use of MultiTrigger and Conditions to set some properties of the styled control. I know that the Conditions of an MultiTrigger must all met (AND-Operator) to set the value specified by the Setter.
But does there exists a Condition if the value is not met (Lets name it a NotCondition). I have a small ex...
Perhaps I have been doing Flex development with Frameworks like Cairngorm too long but I still don’t get MVVM. I am aware that Cairngorm is a framework and MVVM is a design pattern, but what I am comparing here is Cairngorms implementations of design patterns, mainly the model view controller and the command pattern. Don’t get me wrong,...
Well i have a control thats placed in a usercontrol and it exposes a ICommand with a DepenceyPropety(ShowCommand),
and then i have a datagrid (wpf toolkit) with a few columns and one of them has a delete button
<Custom:DataGrid Margin="0" ItemsSource="{Binding Todos}" AutoGenerateColumns="False">
<Custom:DataGrid.Columns>
<Cu...
I am builng an M-V-VM application with Dynamic Loading of modules at runtime.
Each of these Modules has a default view which individulally they show on the selected region when I go
_regionManager.Regions["BottomMenuRegion"].Add(
Container.Resolve<AdminModuleView>(), "AdminView", true);
However, When the Next Module loads it ove...
When the user presses a tab in this textbox, the cursor jumps an equivalent of 8 spaces.
How can I change it so it jumps only 4 or 2?
<TextBox
Width="200"
Height="200"
Margin="0 0 10 0"
AcceptsReturn="True"
AcceptsTab="True"
Text="{Binding OutlineText}"/>
...
Am i missing something here? I have created a usercontrol with a property and for arguments sake it has a text box in it.
<UserControl x:Class="Isd.Utility.SystemMonitorWpf.Bar"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<TextBlock x:Name="txtExpected" G...
I'm in the process of redesigning a SQL query builder UI for a application that I use, well it's a third party app but has a plugin model so I writing my own to replace the standard one. One area I am not very good at when it comes to application design is the UI.
I would be really interested to see/hear how other people would layout t...
I have a custom ListBox whith the following ListBoxItem style. It contains a few animations to scale the ListBoxItem when the mouse hovers over it.
<Style x:Key="notesListBoxStyle" TargetType="{x:Type ListBoxItem}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">
...
This code example shows how to get the position of the scrollbar in a ScrollViewer (with ScrollToVerticalOffset) so that e.g. you can reset the scrollbar to this position if you need to recreate it.
Is there any way to do this for a TreeView control, i.e. get a collection of node indexes which the user has expanded?
...