|
Hi All,
Long time since I posted here! Hope we're all well.
I'm literally on my last day on my current contract and this topic has just been floated!!
I've built a PRISM / WPF / R based application for this contract and they have decided to investigate offering it as a web based thing as well.
Anyway, I've just been having a play with Project Linker and so far I'm seeing it as more of a hinderance than a benefit. Yes it does some fiddling for you but the fact that it will only work WITHIN a single solution (as far as I can tell) is a tad annoying.
I think I'd prefer to have two solutions and manage the linking manually. Crazy???
I've got the team here using ReSharper and it's frankly rendered that more or less useless in terms of reporting false positives on the solution wide analysis. It's annoying already on a tiny test project with two class files! Moving this into production on the app would be a nightmare!
Does anyone have any practical tips or suggestions for using Project Linker in a more useful manner. Right now I'm leaning towards careful manual management of linking files that we want to reuse in both WPF and Silverlight.
If I'm slightly annoyed by it already moving this into production will only compound that imho ...
Jammer
|
|
|
|
|
A word of caution, mate, from the dark side of having done this in the past. If you haven't designed your application for multi-targetting from the get go, there are all sorts of little incompatibility issues that crop up and bite you. The reason is simple - Silverlight is not WPF. WPF provides features that just aren't available in Silverlight, so if you've used any of those features, you have rework to do.
|
|
|
|
|
Hey Pete,
Yeah, this I've heard from a number of people and in my write up on this topic I've prepared them for building sufficient time into the project going forward for re-tooling.
Luckily we have used PRISM which should help a little and we already have a good set of 3rd party controls from a single supplier (Infragistics) for both platforms which should at least provide some look and feel consistency.
I've also suggested doing some spikes first to get a better feel for a more accurate effort commitment that may be required. Based on that the next step would be to convert to multi-targetting and only then start the next phases of development.
Project Linker is not my friend!!!
Jammer
|
|
|
|
|
Jammer wrote: I'm literally on my last day on my current contract and this topic has just been floated!!
I see a contract extension in the offing. Really on the LAST day!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have an app that has 4 buttons on a grid row. The text and image of the buttons change based off various conditions.
So all 4 buttons are coded in the XAML like this:
<Button Command="{Binding Button0Command}"
Margin="3"
IsEnabled="{Binding Button0Enabled}"
Visibility="{Binding Button0Visible, Converter={StaticResource BoolToVisConverter}}">
<StackPanel Orientation="Horizontal">
<Image Source="{Binding Button0Image}"
VerticalAlignment="Center"/>
<TextBox Text="{Binding Button0Text}"
VerticalAlignment="Center"/>
</StackPanel>
</Button>
The question is, how do you create a template so that I don't have to copy this XAML for each button? Remember that there are 2 content items - the image and the text.
Thanks
Everything makes sense in someone's mind
|
|
|
|
|
In my SL app i'm printing some Document with the PrintDocument, and when i call the Print() method it show the print dialog where i can select the printer.
In ControlPanel->Printers i have a printer with custom settings and it's not the default printer. If I print on this printer from SL it's doen't print right beacuse it doesn't take the corect printer settings.
But if i set the printer as Default Printer and try to print from SL , it take right printer settings and print right.
I tierd to describe the scenario through this post : http://dchamba.blogspot.it/2012/04/silverlight-printing-issue.html
How can i solve this problem ??
Thanks
|
|
|
|
|
Silverlight runs in a sandboxed environment and thus you cannot change the default printer via its application.
You might be able to do this if you run the application with elevated permissions (and as an out of browser one).
|
|
|
|
|
Thanks for the answer Brother.
I don't want to change the default printer.
I want that every Printer i select from the PrintDialogBox has the settings that i setted from ControlPanel.
For now only the default printer has the correct Printer Settings.
|
|
|
|
|
how can i get cell value from wpf datagrid?
this code, wich used to validate data (email adress) from datagrid
private void button2_Click(object sender, RoutedEventArgs e)
{
Validator v =new Validator();// class...
String item = dgv1.CurrentCell.Item.ToString();
if (v.validate(item))
{
MessageBox.Show("ok");
}
else
{
MessageBox.Show("no");
}
}
|
|
|
|
|
Wake UP - you need to do it right, work with the data not the control. You have a collection bound to the datagrid and you should have a selected object (an item of the collection) validate the data in the selected object not the control content.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
A similar question was asked before. See the answers given here[^].
|
|
|
|
|
Hi,
I think if u are assigning a Observable collection to a datagrid, & the binding are 2 way mode then changes done on any object will be reflected on both.
so need the cell value. its like this
ObservableCollection s = new ObservableCollectio();
datagrid1.ItemSource = s;
s[0].Columnname
0 will be the row, in this way u can access the cell value.
Regads,
Satish Pai
|
|
|
|
|
hi all,
i want to close my wpf window when i click mouse out side the wpf window.
|
|
|
|
|
Hi,
Does the Window has a MDI form or such ?
|
|
|
|
|
If this is a window contained inside another WPF window, a good way to do this is have the window you want closing actually be a Popup . Set StaysOpen = false on the Popup , and it will close when you click outside the popup area.
|
|
|
|
|
Put a Close() method in the Deactivated event of the window.
|
|
|
|
|
I have a list of items defined in a ListView. When user click or tap any item, I want to show a PopupMenu just above the selected Item. How should I position the PopupMenu?
varmenu =newPopupMenu();
menu.Commands.Add(
newUICommand("Remove", (x) =>
{...
}, 1));
var chosenCommand =awaitmenu.ShowForSelectionAsync(GetElementRect((FrameworkElement)sender));
Rect GetElementRect(FrameworkElement element)
{
GeneralTransform buttonTransform = element.TransformToVisual(null);
Pointpoint = buttonTransform.TransformPoint(newPoint());
returnnewRect(point,newSize(element.ActualWidth, element.ActualHeight));
}
|
|
|
|
|
Dear friend,
Better way is use a context menu for the list & click on the list.
Onn click event of the list
ContextMenuService.GetContextMenu(listname).IsOpen = true;
List_MouseRightButtonDown
e.Handled = true;
Hope this may help u
Regards,
Satish
|
|
|
|
|
hi guy's
I want to develop an application(control pc via wp7 ) but the WP7's screen show the PC's screen.
So how I can do it? what I need (protocol RDP, TCP/IP)???
and how can I do a connection between WP7 and PC?
|
|
|
|
|
|
what r u mean ??????????????????/
|
|
|
|
|
Ignore him. He's been reported as a spammer.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
Hi I am working on Win 8 metro app buid in silverlight.
I have two controls Control1 and Control2
Control2 is inside Control1
Control2 has a listview and Control1 has buttons. Clicking on listview has to disable buttons in Control1.
I tried to achieve this from code behind by using
public bool OverriddenFlag
{
get { return _overriddenFlag; }
set
{
_overriddenFlag= value;
NotifyPropertyChanged("OverriddenFlag");
}
}
and
in xaml
<Button x:Name="ShowDetails"
FontWeight="bold" FontSize="12"
Content="+" Click="ShowDetails_Click"
IsEnabled="{Binding OverriddenFlag, Mode=OneWay}"
/>
but it didn't have the desired effect.
How can I disable buttons. Any idea?
|
|
|
|
|
nitin_ion wrote: but it didn't have the desired effect
What does that mean? The click event for the listview did not fire? The property did not get set? Property got set but button was still enabled?
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Please stand in front of my pistol, smile and wait for the flash - JSOP 2012
|
|
|
|
|
It did not disabled the button. button was still in enabled state.
|
|
|
|