|
Not familiar with Xenapp, but I'm going to guess that's some kind of remoting setup...
If the graphics were being handled on the client side, it would be nice and quick... But if you're sending the graphics down the pipe, you'll never get the performance you want. If I were you, I'd start looking into any known issues with Xenapp and WPF... Maybe there's a way to get it to properly render the graphics on the client side.
|
|
|
|
|
The problem here, isn't WPF, it's the use of virtual application environment. It's unfair to label WPF as unresponsive when the whole underlying delivery mechanism is the cause. It's like blaming some guy sitting in the stands for Alonso not winning F1 this season.
|
|
|
|
|
Web based page - then try Silverlight.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
most of these apps are client server apps done in WIN32
if WPF don't cut it, unlikely Silverlight will
Again, from different friends from big firms I know both WPF and Silverlight are choosen but some disappointment as apps not as snappy as one would expect.
dev
|
|
|
|
|
I'm tryin to define this namespace:
xmlns:my="clr-namespace:MyProject"
And while intellisense says it's there ("MyProject in assembly MyProject"), after I accept it from the intellisense box, the namespace gets underlined and I get an intellisense error stating that the namespace can't be found.
WTF?!
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Possibly a stupid suggestion, but have you built the project yet?
The XAML designer doesn't pick up on stuff like that until it's been built.
EDIT: Oh, and if that doesn't do it, try appending ";assembly=MyProject" to tell it exactly where to look... Silverlight tends to be a lot more picky than WPF.
|
|
|
|
|
I tried that, and "assembly=" with nothing specified after the = operator.
Everything is in the same assembly. I tried removing the affected files from the project, compiling, and adding them back, and still no joy.
The part that pisses me off is that under C#, all this stuff compiled and oworkled just fine.
I wonder if this crap has something to do with infer and strict project settings...
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Ah, so it's a VB thing... I didn't think it would be any different from C#, since the XAML side should be pretty much the same.
|
|
|
|
|
Well, I tried playing with the options, and nothing changed.
I don't understand why there is a namespace issue under VB, but not under C#...
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Hmm, might have something here: http://www.paulstovell.com/wpf-vbnet-xaml[^]
Is MyProject your root namespace? Looks like C# is smart enough to figure out a relative namespace, but VB.NET isn't, so you have to specify the whole thing.
|
|
|
|
|
I ended up having to re-add all the offending code by hand, and it appears to be fine so far. Keep in mind that I am not making any changes to the code - I'm creating the new objects by hand, and then copy/pasting from the original project.
I hate VB...
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
hello
I've a WPF Popup which is positioned to upper left corner of a grid cell (This is done from OnCellChanged event) - problem is, when main window moves, the popup doesn't move along automatically.
Not much idea on how to "Anchor" the popup to the cell... any suggestion?
dev
|
|
|
|
|
A nasty (but possibly only) solution would be to move (translate) the popup as the main window moves. That should give you the 'anchoring' effect.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
You could set up an appropriate dependency property that is bound to the upper/left corener of the desired cell, and then the window would (or should) move accordingly.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Thanks - I thought of routed event+dependency property. But not familiar enough to wire things up. I think following is my problem.
From my page's xaml.cs, I launched the popup everytime grid cell's content changes...
private void CntPropGrid_CellChanged(object sender, CellChangedEventArgs e)
{
...
SomePopup.IsOpen = true;
GeneralTransform transform = e.Editor.TransformToAncestor(CntPropGrid);
Point rootPoint = transform.Transform(new Point(0, 0));
SomePopup.PlacementRectangle = new Rect(rootPoint, new Size(200, 25));
SomePopup.Visibility = Visibility.Visible;
SomePopup.Width = 210;
SomePopup.Height = 30;
Result = SomeDialog.ShowHandlerDialog(e.Cell.Value.ToString());
SomePopup.IsOpen = false;
SomePopup.Visibility = Visibility.Collapsed;
SomePopup.Width = 1;
SomePopup.Height = 1;
SomeEditPlacementRect = CellEditPopup.PlacementRectangle;
...
}
I've now added dependency property, and corresponding CLR property wrapper:
public static DependencyProperty SomeEditPlacementRectProperty;
public Rect SomeEditPlacementRect
{
get
{
return (Rect)GetValue(ConstraintSettings.SomeEditPlacementRectProperty);
}
set
{
SetValue(ConstraintSettings.SomeEditPlacementRectProperty, value);
}
}
What I'm unsure of, is how to modify my xaml to wire up the separate parts ... so when grid cell location moves, popup changes accordingly.
<Popup
Name="SomeEditPopup"
Placement="Relative"
PlacementTarget="{Binding ElementName=SomeEntityGrid}"
IsOpen="False"
StaysOpen="true"
AllowsTransparency="True"
Visibility="Collapsed"
>
<StackPanel>
<myns:SomeUserControl x:Name="SomeDialog" ></myns:SomeUserControl>
</StackPanel>
</Popup>
First off, what "event" should I be using...? It's definitely not "MouseOver" on grid cell's parent data grid (as mouse over gets triggered all the time and does not equal parent window getting moved around). But in any case, final xaml should use routed event which resembles following?
<Popup
Name="SomeEditPopup"
Placement="Relative"
PlacementTarget="{Binding ElementName=SomeEntityGrid}"
IsOpen="False"
StaysOpen="true"
AllowsTransparency="True"
Visibility="Collapsed"
>
<Style.Triggers>
<Trigger Property="(QUESTION 1) $WHATEVENT$" Value="True">
<Setter Property="PlacementTarget" Value="(QUESTION 2) $WHATTOPUTHERE$" />
</Trigger>
</Style.Triggers>
<StackPanel>
<myns:SomeUserControl x:Name="SomeDialog" ></myns:SomeUserControl>
</StackPanel>
</Popup>
REF: WPF Concepts - routed events[^]
dev
|
|
|
|
|
hi... everybody sorry for my stupid question..
i've three options for creating the reports
1)crystal reports for asp.net application using crystal report viewer or silverlite application using silverlite report viewer..
2)ssrs reports for asp.net application using microsoft report viewer or silverlite application using silverlite report viewer..
3)report sharp shooter for asp.net application using report manager preview or silverlite application using report manager..
i'm really confused which one to choose..
the main requirment for me is the report should be fast accessible in server as our application is big..
the report should be fast viewed and take the print at the client side... and also load should be less at serverside..
please can anybody help me which one to prefer...
|
|
|
|
|
From you post I assume you are building a Silverlight app, AFAIK there is only 1 silverlight report viewer for SSRS and it is $500.
Crystal Reports has the worst reputation of any reporting tool that I know of, IMHO it is thoroughly justified it is a complete POS.
I have no experience with Sharpshooter.
We user SSRS in it's full server configuration, IE the reports are completely separate from the application(s) and reports are published to the SSRS server, security is handled by the SSRS interface.
I have also embedded SSRS reports into a personal app in Silverlight and the app calls an ASPX page with the embedded viewer. I cannot justify $500 for 2 reports
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Silverlight at the moment does not support crystal reports or ssrs.
So if you want intense reporting support (ssrs) you have no choice but to go for Asp.Net.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
I have a sample project with the a WPFL ListView:
<ListView ItemsSource="{Binding Source={StaticResource myIntCollection}}" />
and a Int32Collection resource myIntCollection is filled with duplicate items:
myIntCollection.Add(0);
myIntCollection.Add(1);
myIntCollection.Add(2);
myIntCollection.Add(0);
myIntCollection.Add(2);
myIntCollection.Add(3);
When testing it and clicking one of the 0's or one of the 2's the listview will actully select the other 0 or 2 than the one I really intended on selecting...
The focus logic in the listview works without a problem just the item selection is a problem. Moving the focus bounding box up and down the listview placing the focus at (zero based)item 3 can select item 0;
In my actual expanded project once this is solved, I do need to be able to display duplicate items in a list so the user can say change item 3 to value of 3 and be able to select either 3's correctly...
Anyone run up against this problem or are there a fix to this?
|
|
|
|
|
Grid Children are added to the bottom like this:
First
Second
Third
Fourth
...
BTW, Children do add upside down like this?
Fourth
Third
Second
First
|
|
|
|
|
Ok you have made 3 statements, do you have a question/problem.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Ok. First, this is my code.(TextBlock add to the Grid)
for (int i = 0; i < 10; i++)
{
TextBlock TextBlock = new TextBlock();
TextBlock.Inlines.Add(i);
Grid.SetColumn(TextBlock, 1);
Grid.SetRow(TextBlock, Grid1.RowDefinitions.Count - 1);
Grid1.Children.Add(TextBlock);
}
And the result is
1
2
3
4
5
...
But, I want TextBlock add to the reverse order.
...
5
4
3
2
1
How can do this?
|
|
|
|
|
Try this
for (int i = 10; i > 0; i--)
Reverse the order that you traverse the numbers
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Uh.. that code is just sample.
Inline content in the TextBlock, the other goes.
|
|
|
|
|
Change the way you are viewing the problem. Assume that you will bind to the data, and then use a CollectionViewSource to manipulate the way you view the data - it's very easy to sort the data in the view without having to change it's underlying order in any way.
|
|
|
|