|
Hi,
I want to draw too many shapes in canvas (Rectangles, ellipses, etc.). For that, i need the drawingContext.
How can i create and attach the drawingContext in Canvas control.
Is there any other simple way to do so?
|
|
|
|
|
To get the drawing context, you can simply override the OnRender on a derived canvas object.
|
|
|
|
|
hi..... to all....
i'm new to silverlight ...
my doubt is.... for ssrs reports there's an BIDS( bussiness intellegent development studio) ..
now i want to design reports in silverlight reporting services is there any development studio for
silverlight reporting services.... if yes please give me the download site... i want to download...
please help me....
|
|
|
|
|
Reporting services reportviewer is not supported in silverlight - you need to call an ASP page for the viewer.
RS development is not done in Silverlight, there is no BIDS done in SL.
There is a 3rd party SL reportviewer but it costs $500.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
ok.... but how can i design silverlight reports.. in silverlight application..
i've worked on crystal reports , ssrs, and now silverlight reports..
but i cant get were to design the silverlight reports...
|
|
|
|
|
I used this article [^]as the basis for my solution.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
sorry for that ..
but i really dont know... about it....
i got one more thing ..
whether i can download stimulsoft report designer.silverlight..
whether it can help me?
|
|
|
|
|
Sorry I have no knowledge of component source products
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
ok.... tell me that...
again sorry for my stupidity..
can we create a silverlight reports as we create ssrs reports and crystal reports..
just give me breif knowledge...
|
|
|
|
|
SSRS is not in silverlight so no you cannot create an SSRS silverlight report.
You can create an SSRS report using vs 2005/8/10 and display it via an ASP.net reportviewer that is a popup from a silverlight application. This is what the article demonstrates!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
ok.... i was giving just an example of ssrs reports...
now live the topic of ssrs reports..
coming from first
whether there's an option of creating an silverlight reports ?
if yes how to create...?
|
|
|
|
|
No. Silverlight does not support reporting services.
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.
|
|
|
|
|
How can you check if Mouse is ButtonDown from MouseMove handler...?
I have a popup, I want to close a child control when the popup is moving (i.e. [mouse down + mouse move], not just mouse move which happens all the time when mouse is inside the popup)
private void SomeUserControl_MouseMove(object sender, MouseEventArgs e)
{
if(Mouse.IsRightButtonDown)
{
// Close a child control
}
}
Thanks
dev
|
|
|
|
|
Here[^] is a work around that may help you achieve what you want.
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.
|
|
|
|
|
Short(er) and sweet version:
The application starts up and looks fine. Open a couple modal windows and they look as they should. The screen opens normally (not maximized or minimized) and fills up the screen. There is a label that stretches across the top of the screen and a gradient background that goes from a very dark gray to a very light gray. If I maximize or minimize the background of the form becomes very choppy. It is no longer a smooth gradient. It looks similar to a screen that doesn't have the color depth to show all the colors. The label at the top has thick line going through it the same color as its background color. The modal windows are completely black on the top half. Plus the application will not close properly. I have to use Task Manager to close it.
Any ideas what could be wrong?
Gory details:
There's another application of ours on the system that uses OpenGL to show 3D models and animations. When the WPF application was installed on the computer, the animations quit working. The static 3D model would still show up, but there would be a blank screen when the animations were being shown. We didn't have the problem with WPF application at this point.
It's important that the animations show because it validates what the operator is telling the machine what to do. We loaded new graphics drivers and the animations worked again. However, it created the problem mentioned above.
Is there some incompatibility between WPF and OpenGL? I don't get why it's one or the other.
[Added]
Three points that don't make sense to me are:
Point 1: This sequence
1) OpenGL static image works, OpenGL animation works.
2) Install .NET and application. WPF works, OpenGL static image works, OpenGL animation broken.
3) Install graphics driver: WPF broken (only after resizing main window), OpenGL static image works, OpenGL animation works.
Point 2: Why it will show the OpenGL static images, but not the animation. I don't think the commands to draw the image are any different between the two. Maybe it has to do with swapping the buffers?
Point 3: Why WPF will display fine until you resize the main window.
Thank you for any help.
Brad
Deja Moo - When you feel like you've heard the same bull before.
|
|
|
|
|
Somewhere in between all those gory details I would check if I have the latest drivers (video and Open GL) for the display card installed.
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.
|
|
|
|
|
That's what caused the problem with the WPF side fo things. I even tried going back a version with the driver and still the same results.
Three points that don't make sense to me are:
Point 1: This sequence
1) OpenGL static image works, OpenGL animation works.
2) Install .NET and application. WPF works, OpenGL static image works, OpenGL animation broken.
3) Install graphics driver: WPF broken (only after resizing main window), OpenGL static image works, OpenGL animation works.
Point 2: Why it will show the OpenGL static images, but not the animation. I don't think the commands to draw the image are any different between the two. Maybe it has to do with swapping the buffers?
Point 3: Why WPF will display fine until you resize the main window.
Brad
Deja Moo - When you feel like you've heard the same bull before.
|
|
|
|
|
Hello,
i have a problem to bind a UserControl to data from my main page:
I cant bind a property from my data class to my user control in my xaml code.
My User Control:
namespace WindowsPhoneTestApp
{
public partial class TestControl : UserControl
{
public static readonly DependencyProperty nameProperty = DependencyProperty.Register(
"name",
typeof(string),
typeof(TestControl),
new PropertyMetadata("99999"));
public string name
{
get { return (string)GetValue(TestControl.nameProperty); }
set { SetValue(TestControl.nameProperty, value); }
}
public TestControl()
{
InitializeComponent();
DataContext = this;
}
}
}
XAML:
<UserControl x:Class="WindowsPhoneTestApp.TestControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WindowsPhoneTestApp"
mc:Ignorable="d"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
d:DesignHeight="92" d:DesignWidth="328">
<Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}" Height="88" Width="324">
<StackPanel>
<TextBlock Name="text" Text="{Binding name, Mode=OneWay}" FontSize="48" Foreground="#ffffffff" Height="88" />
</StackPanel>
</Grid>
</UserControl>
Now i try to bind my property name with the dataclass DataSource:
public class DataSource : INotifyPropertyChanged
{
public DataSource()
{
}
private string _dataName = "default name";
public string dataName
{
get { return _dataName; }
set
{
if (_dataName == value)
{
return;
}
_dataName = value;
this.NotifyPropertyChanged("dataName");
}
}
#region INotifyPropertyChanged
public event PropertyChangedEventHandler PropertyChanged;
private void NotifyPropertyChanged(String info)
{
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs(info));
}
}
#endregion
}
Using the User control in my Main Page
<code>
public DataSource dataSource { get; set; }
public MainPage()
{
InitializeComponent();
dataSource = new DataSource();
DataContext = this;
dataSource.dataName = "new name";
}
</code>
<code>
<!--ContentPanel - place additional content here-->
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<TextBlock Text="{Binding dataSource.dataName}" Style="{StaticResource PhoneTextNormalStyle}"/>
<local:TestControl name="{Binding dataSource.dataName}"/>
</Grid>
</code>
I dont understand why i cant bind the property dataName to my user controls property name.
The binding to the textblock works.
I hope anbody can help me
Sebastian
|
|
|
|
|
DataContext = this;
Doesn't look right shouldn't it be more like
DataContext = dataSource;
|
|
|
|
|
Hi
I have a new problem.
There is a .aspx page in server-side, and i need show it in a ChildWindow.There is a button used to open the page.
For now the .aspx page is shown in a new IE window that automatically appear when the button is clicked.
I want show the content of the page is a childWindow instead, without poping up a new IE window.
How can i do this thing???
Searching with google i read about "IFrame" but I don't know what is it and how it works, and if this is useful for me.
Thanks
|
|
|
|
|
If your question is related to Silverlight, this[^] should help.
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 saw the link.
I know how to use a childWindow.But my problem is to show a webPage(like www.google.it) in that child window.
|
|
|
|
|
Does this[^] help you?
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.
|
|
|
|
|
No, it isn't what i was searching for.
I want the page remain enbedded in the childWindow instead popping up.
|
|
|
|
|
Hi
I think there is no way to show html in a ChildWindow.
So i must display that page in a new IE window.
Thanks
|
|
|
|