|
|
|
how i can use flash in asp.net
|
|
|
|
|
The same way you would in HTML - you do know that ASP.NET ultimately renders out to a browser as HTML don't you? BTW - you seem to be under a misapprehension here; Flash is not Silverlight and yet here you are asking in the Silverlight forum."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
This is a Silverlight forum.Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
Dear friends
I want to pass a Form object through wcf as parameter but I can't. Is it possible to do that?
ThanksAgh
|
|
|
|
|
You can, but why would you want to do that? Surely the thing you're interested in is the data that the form contains; in which case, that is what you should be passing."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
I need it because I don't know what is my form and it dynamically changes in server and I want to get it in client and show it. but when I set my parameter as Form object and use svcutil,It shows error and cannot create client code. Agh
|
|
|
|
|
mehrdadov wrote: I don't know what is my form and it dynamically changes in server
Are you saying that the server code instructs the client which form it should display? If so you should return some data which you can use as a key to determine which form to display.Kevin
|
|
|
|
|
Hi,
I've got a ListBox bound to a collection of Uri objects on my DataModel. I've also replaced the ListBox panel with a WrapPanel from the Silverlight Toolkit.
The DataTemplate for the ListBoxItem is just an Image object bound to the Uri . This binding also specifies a converter that takes the Uri and converts it into a BitmapImage .
It's 'all good' as far as the binding syntax is concerned as I see the images, but not all the images all of the time. If I debug from VS it seems to load more images than browsing to the site through IIS (5.1).
I've already written a class that nicely wraps up the WebClient in a Prism style module service and I'm wondering if that might be a better solution, load all the thumbnails into a collection and then bind to that?
Cheers,
|
|
|
|
|
Jammer wrote: I'm wondering if that might be a better solution, load all the thumbnails into a collection and then bind to that?
Then your application would then take time as you load all the images.
So its one against the other really.Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
Hi Abhinav,
My Downloader service (I'm using prism by the way) is all Asynchonous so there shouldn't be mucn/any blocking going on.
Cheers,
|
|
|
|
|
Then I guess I would come down to how your client would be happier with.Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
I've set Hyperlinkbutton.NavigateUri to an external site and when I click it, I get a "Navigation is only supported to relative URI's" exception, even though the MSDN documentation says that the default value for the enableNavigation value is "all". As expected, explicitly setting this value to "all" in my TestPage.html file does not solve the problem.
The documentation also says, "This property can only be set during Silverlight plug-in initialization." Maybe I'm trying to set it past this point. But I want it set to the default value anyhow, so it shouldn't matter.
|
|
|
|
|
This link[^] may be of some assistance to you.Me, I'm dishonest. And a dishonest man you can always trust to be dishonest. Honestly. It's the honest ones you want to watch out for...
|
|
|
|
|
|
Abhinav S wrote: This link[^] may be of some assistance to you.
Unfortunately, no. That link is for a relative URL. I need an absolute URL that points to a completely different Website.
|
|
|
|
|
Hey fjparisIII,
Try this,it is working for google.co.in
in Hyper button click event.
HtmlPage.Window.Navigate(New Uri("http://www.google.co.in", UriKind.Absolute))
Regards,Sundeep Ganiga
When the only tool you have is a hammer, everything looks like a nail.
Come Forth Yourself to Click "Good Answer" for any expected solution.
|
|
|
|
|
Yes, that works. Thanks. Still don't understand why my original code doesn't, however.
|
|
|
|
|
Hi fjparisIII,
You can do this. You need to specify the UriKind.Absolute while constructing the Url. Have a look into the following code snippet. This is working fine for me.
HyperlinkButton hButton = new HyperlinkButton()
{
NavigateUri = new Uri("http://kunal2383.blogspot.com", UriKind.Absolute),
Content = "View My Blog"
};
LayoutRoot.Children.Add(hButton);
If you have any issue please reply & if it works please mark as answer.Regards - Kunal Chowdhury | Software Developer | Chennai | India | My Blog | My Tweets
|
|
|
|
|
I want to write declarative code in XAML, not imperative code in C#. But whether provided in XAML or C#, I get the same exception I mention in my initial post, i.e. coding the following in the click event crashes the app:
NavigationService.Source = new Uri("http://www.ParisPhotoTools.com", UriKind.Absolute);
However, the following C# code works in the HyperlinkButton click event handler:
HtmlPage.Window.Navigate(new Uri("http://www.ParisPhotoTools.com", UriKind.Absolute));
Go figure.
|
|
|
|
|
Hi,
I cant figure out how to switch my customcontrols when clicking on a menubar-button.
I have a MainWindow containing the following XAML:
<DockPanel x:Name="MainWindow">
<Menu Name="dropDownMenu"
DockPanel.Dock="Top">
<MenuItem Name="dropDownPage1" Header="File">
<MenuItem Header="Page1" Click="dropDown_Page1"/>
</MenuItem>
<MenuItem Name="dropDownPage2" Header="File">
<MenuItem Header="Page2" Click="dropDown_Page2"/>
</MenuItem>
</Menu>
<Grid Name="gridMainContent" DockPanel.Dock="Top">
<TextBlock>placeholder main content</TextBlock>
</Grid>
<Grid Name="gridStatusBar" DockPanel.Dock="Bottom">
<TextBlock>placeholder statusbar</TextBlock>
</Grid>
</DockPanel>
The task is when clicking on one menubutton i.e. "dropDown_Page1", changing the content of the grid "gridMainContent".
Is there a way to place customcontrols into a grid without code in any *.cs File ? It would be wonderfull if somebody could help me on this.
Cause I´m new to WPF, I welcome you to show me other ways of doing this!
Thx! PingOfDeath
|
|
|
|
|
Include a namespace reference to the assembly containing your custom control, then use your custom control in the XAML. Read up on custom controls and user controls if you don't know what the previous sentence means. You can initially hide it, and then display it when the menu item is selected. Might require some code to handle the command, but you might be able to just accomplish it with an event trigger.
|
|
|
|
|
I would consider using an event handler.
|
|
|
|
|
The OP wanted to avoid ".cs" code (i.e., XAML only).
|
|
|
|
|
There's no way to do it in XAML only without using a markup extension library. This seems like a basic M-V-whatever issue.
|
|
|
|