Silverlight 4 Tiled backgrounds - c#

So I've been looking around and I can't find a Tilebrush or similar feature in Silverlight 4. Chatter on the internet seems to indicate that there is nothing built in. I am hoping that someone is going to show me the hidden camera, or let me know that it is some kind of sick joke. Is there really no Tilebrush or similar feature?!

It's not a sick joke. There really isn't a tilebrush. From what I've heard it's not yet in the new WinRT either.
Apparently it's a bit difficult to do with the way the silverlight internals are setup.
There are third party controls that let you do a tiled background. Here's one of them: http://nokola.com/blog/post/2009/12/22/Fast-Tile-Brush-in-Silverlight-And-Easiest-Way-to-Shader-Effects.aspx

If you have this silverilght template (JetPack) installed, create a new project based on this temlate and you will see there is a TiledBackground built-in with it. Pretty handy. :)

No hidden camera... :(
A solution using a pixelshader
Discussion

Related

WPF- How to Make Menu control look native

I am currently learning WPF framework; I have some past (not much though) experience with Winforms. One problem I've had in both is that the menubar does not look native. I've found a workaround in Winforms, but I haven't been able to find anything for WPF. I've not had this problem in other frameworks I've used, particularly Qt.
In many pics I've seen, it looks native enough in Windows 7, but not Windows 10. I included some pics.
How it currently looks:
How it should look:
Thanks in advance!
Edit
While I have not seen the possible duplicate link, I am aware of setting the foreground/background on WPF controls. That link doesn't really answer my question. I don't want to come up with my own style at this point; all I want to do is make controls look native.
If custom styling is the only way, that's fine, but if there is another way, that would be preferable.
Thanks!
I don't think there's a quick fix to get what you want. WPF renders using DirectX, allowing for much more flexibility in styling applications. A WPF app should render exactly the same way on any version of Windows - it will not automatically adopt a native look and feel (that was actually one of the main selling points of the technology in its early days).
While MS made the default styling somewhat close to Windows at the time of release (Vista, I think?), if you want WPF controls to have a particular look you're going to have to style them yourself.

How i can create a GUI for SharpDX

I am work with Sharpdx/C# - i'm wondering how Unity/UnrealEngine/CryEngine create their GUI for the Editor.
After some research i find "D3Dsurface" to work with WPF. But the Performance/FPS should be bad.
I cant believe all the engines (http://xenko.com - SharpDX engine) do their own GUI from scratch.
I tried to create a second Winform, it works but not the right approach for me.
best regards alex!
Xenko use this and so do I, it looks really good
Telerik windows forms are really good as they can be themed and tweaked to how you like.
Xenko like my self use the dark Visual Studio theme.
They have a free trial so u can get you feet wet before you go and drop cash on it, they also have a forum so you can ask for help and a few times I have seen them go out of there way to help.
Once you get your hands on the Dev pack you can modify the source and all sorts of cool stuff.
I have tried a few other windows forms controls but I settled on Telerik a few years ago and haven't looked back.
All in all I give them a 10/10 and they have some really nice CPU\RAM profiling tools.

Alternative of WebBrowser for 3D Animation in WPF by C#

I am not able to apply 3D effects on WPF's built-in WebBrowser, because it is just a thin wrapper around the native ActiveX-Webbrowser, which isn't based on WPF. I saw most of the places people suggested about one Link ,but I m not able to make it work in my application and it is having so many dlls which I don't want. Can anybody suggest me any other good alternative solution present then?
Maybe you forget to copy the needed awesomium.dll & AwesomiumProcess.exe with your executing assembly (which are not .Net assemblies).
I also have some difficulties to run with awesomium but it's not impossible.
I can recommand you the Troymium/TroymiumNet which is actively maintain by its developers.
I use it on Microsoft Surface to connect people to their facebook account.
I've never used it, but you could try Berkelium with berkelium-sharp.

How can I make a product showcase in Silverlight?

I can place a couple of buttons in Silverlight, but I'm not that experienced with the Silverlight tools and capabilities.
What do you think I should use to create something like this?
The control would have to pull and ID from the database and according to that place an image asociated with the record.
I need it to be animated with some crispy movement.
How can I achieve this?
It's all possible, but you need to break the task down into smaller steps.
Once you've done that you should find that you can solve some of these with your current knowledge, others will resolve themselves with a little more research, but there will be some you need to ask questions about here.
I'd suggest you start that break down and try to solve the little problems. Then if you get stuck come back and ask more specific questions.
Well, with Silverlight and c# you can make the animations needed and such, and you can set a Silverlight Image control with a data bound source, so it loads the images dynamically, but Silverlight can't talk with databases directly, you'll need to use a webservice to interact between Silverlight and the database. Don't know how much you know but to not leave anything out, with Expression Blend you can make the graphical part of you're app fast and easy, and with Visual Studio you'll add the code-behind and functionality.
In this link you can find a example of how to make an image slide show with Silverlight, it may not be exactly what you're looking for, but it should give you a heads start.

How to program this game with basic C# and ASP .NET knowledge?

I would love to brainstorm with you guys on how to program this game (originally a flash game) in C#. I'm studying C# right now and my knowledge is pretty limited: I know the pretty much the basics of C# but I need your help with the concept.
Here's the game:
http://www.composica.com/product/samples/AstroHops/content/scaler.html
alt text http://img12.imageshack.us/img12/5735/frogim3.jpg
I thought about using imagebutton for each lilypad that would trigger a modal window with question.
I also thought about placing a picture of a frog on each lilypad, set to visible = false. When the a certain lilypad is selected the frog's visibility will be set to true.
Any thoughts, ideas, suggestion on how to this better?
Maybe links to a similar game coded with c#?
Thanks!
ASP.NET (and HTML generally) isn't directly suited to compete with flash - they simply work differently. Perhaps look at Silverlight; that is the MS offering that is closest to flash, and you can use C#.
Marc solution seems like best one, but if you really need it in C# (in ASP.NET Right?)
then you might consider AJAX but yea it is sort of bad approach.
If it is winforms you are talking about, then i would consider using some 2d graphics engine for that. otherwise your idea CAN work with the default .net forms, it just wont look very nice....
you might take a look at this, seems like a nice start point for working with directX and c#
http://www.csharp-home.com/index/tiki-print_article.php?articleId=146
Good luck with your project!

Categories

Resources