Is there a succinct but complete example project or tutorial that brings together the pieces of the Microsoft stack for a complete application?
WPF
MVVM
Business Objects
EF
Database
I find plenty for WPF and plenty for EF, but am having trouble fully understanding how the EF generated classes relate to business objects, and how thos...
So i have a listbox:
<ListBox x:Name="listbox" HorizontalAlignment="Left" Margin="8,8,0,8" Width="272" BorderBrush="{x:Null}" Background="{x:Null}" Foreground="{x:Null}" ItemsSource="{Binding MenuItems}" ItemTemplate="{DynamicResource MenuItemsTemplate}" SelectionChanged="ListBox_SelectionChanged" SelectedItem="{Binding SelectedItem}">
...
I have two xaml file one is MainWindow.xaml and other is userControl EditTaskView.xaml. In MainWindow.xaml it consists of listbox and when double clicked any item of listbox, it displays edit window (EditView userControl). Whenever edit window gets displayed, it plays an animation (sliding from right to left). The EditView userControl ha...
I have the following App.xaml file:
<Application x:Class="MiniDeviceConfig.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MiniDeviceConfig.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
...
I have a gridview were I define some columns, like this...
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding MyProp}" />
</DataTemplate>
</GridViewColumn.CellTemplate>
I bind my g...
I want to define something like this
<myCustomControl>
<myCustomControl.Images>
<Image
Source="{StaticResource LockedIcon16}" />
<Image
Source="{StaticResource UnlockedIcon16}"/>
<myCustomControl.Images>
<myCustomControl/>
what property definitions do i need to get that collection (Images) happening?
...
Argh, although I've been googling, I really would appreciate it if someone could break my problem down as all the code examples online are confusing me more than assisting (perhaps it's just late)...
I have a simple class as defined below:
public class Person
{
int _id;
string _name;
public Person()
{ }
public int...
So i have this markup:
WizardPageTpl.xaml
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Werp.MigrationHelper">
<Style TargetType="{x:Type UserControl}" x:Key="WizardPageControl" x:Name="WizardPageContro...
I cannot get backwards navigation using Shift+Tab to work in a TreeView that contains TextBoxs, forward navigation using Tab works fine and jump from TextBox to TextBox inside the TreeView. Anytime Shift+Tab is used when one of the TextBoxes inside the TreeView, then the focus is move to the previous control outside the TreeView, instead...
I have a ToolBar that is bound to an asynchronously populated ObservableCollection. For the ToolBar's ItemTemplate I use a DataTemplate to wrap my bound items in RadioButtons.
What I want to do is programmatically check the first RadioButton in the ToolBar. I have tried using the ToolBar's ItemContainerGenerator but the relevant metho...
Hi. I Have a datacontext that has a "getuserbyguid" method, i want to pass in the current logged in user.userid as a parameter, but I don't know how to bind to the current logged in user through xaml. I've tried {Binding Path=User.UserId} but without any luck. I'm using the built in riaservices authentication methods, so the userinfo sho...
Is there a way to attach a trigger (and a subsequent animation) to a control which has a property databound, and have that trigger fire when the value of that databound property changes (to ANY value). I don't care what value it is, I just want to show a notification when the value changes to something else.
Might be very obvious, but I...
Hi there,
does anyone know if its possible to restyle a window in wpf. Or even better any tutorials or samples?
Basically i would like to change the minimize and maximize buttons - oh and the close button to be slightly bigger....
I have expression blend....
Is this possible?
I saw some samples in infragistics sample apps which have...
Hi,
I'm trying to make a standard WPF listbox be dynamically filled, and for each item in the list box to launch a command when clicked.
Currently I have a working listbox, which can be filled and each item will fire the correct command, but in order to fire the command I have to click the list item twice.
i.e, Click once to select the ...
I need to mark certain dates in a WPF Calendar control, by making the date bold or changing the background color or something like that.
It would also work if I could customize how blackout dates are rendered (i.e. not crossed out as default, but with another background color etc.)
Is this possible to achieve either of those options?
...
Hi,
I have Few TextBlock inside the Data template as follow:
<DataTemplate>
<StackPanel x:Name="stackPanelItems" Orientation="Horizontal">
<TextBlock x:Name="myTextBox" HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="14" />
</StackPanel>
</DataTemplate>
Now we need to Make the myTextBox Collsapsed...
Hi there,
Just built myself a mvvmlight app and if i press f5 TO COMPILE and run all works ok, it displays the wpf window
but if i do a BUILD i get an error
Error 1 The target "RunCodeAnalysis" does not exist in the project.
I am using the visual studio 2010 professional version RTM
The only thing i see strange is the target ...
Hi,
I am having a custom canvas derived from Canvas. It contains few ApplicationCommands like New/Open/Save etc. added like this -
this.CommandBindings.Add(new CommandBinding(ApplicationCommands.New, New_Executed,
New_Enabled));
New_Enabled always returns true.
This control is used in a wpf project having a menu bar; New/Open/Save ...
I am trying to use Project White to write automated tests for my WPF application. It is all going well until I try to interact with Infragistics controls. Has anyone had any experience of this set up and would you be able to post an example of how I can (for example) interact with the XamRibbon or XamOutlookBar?
...
I am new to WPF and tring to learn a WPF composite application.
I have got user control which is a module which 1 label and 1 button on it.
Now I am trying to use the Command property on button which looks like
<Button Name="button1" Command="{Binding Path = GetCustomerNameCommand}">GetCustomer</Button>
In the presenter I have got
p...