|
Setting this solved the issue: internetClient capability in app manifest.
|
|
|
|
|
Hi guys... I'm just starting with Windows 8/Metro... I'm trying to figure out how to get a list of drives on the machine. The MSDN says Environment.GetLogicalDrives should work or System.IO.Directory.GetLogicalDrives but I can't seem to find either. I assume the framework for Metro apps is limited similar to how Silverlight is a subset of the .Net libraries... Anyone have any idea how to do this?
|
|
|
|
|
You cannot enumerate drives using the WinRT APIs. You only have access to isolated storage or you can use the open/save file dialogs to allow the user to browse for a file/folder.
|
|
|
|
|
Hi ,
I have one canvas in my application. I am drawing on this.
I need to save this canvas as image file using c#.
Can you please guide me for this ?
|
|
|
|
|
You already received an answer to this in the Quick Answers[^] forum. Please post in one forum only.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hi Rechard,
I didn't get proper answer there. So i thought may be i will get here.
Thats why posted again.
Will keep in mind next time.
|
|
|
|
|
In WinRT Metro app can I develop some background tasks as torrent or alarm clock or files manager likes same android applications? Because we don't have full futured background work and of course not in switched off mode.
|
|
|
|
|
Hi
Does anyone knows how to get the snapshot event from windows 8 native metro camera ap?
I would like to trigger some specific function when user click the webcam screen to snap a photo in metro ap.
I had try to using SPY++ and also check the Driver MFT document but found nothing
Could anyone give me a hint?
Thank you for your help.
good day.
|
|
|
|
|
Have a button in the UI, called 'btnCapture ' and an image called 'imgPhoto '
In the click event of this button, have the following code. Also, make the click event async .
private async void btnCapture_Click(object sender, RoutedEventArgs e)
{
CameraCaptureUI dialog = new CameraCaptureUI();
StorageFile file = await dialog.CaptureFileAsync(CameraCaptureUIMode.Photo);
if (file != null)
{
BitmapImage bitmapImage = new BitmapImage();
using (IRandomAccessStream fileStream = await file.OpenAsync(FileAccessMode.Read))
{
bitmapImage.SetSource(fileStream);
}
imgPhoto.Source = bitmapImage;
}
}
In case of system resource access, Metro Apps work in the same way as Silverlight. So you need to explicitly provide access for the application to access Webcam and Microphone. You can give this permission in Capabilities tab of Application Manifest.
|
|
|
|
|
Thanks, but i only want to get the snap shot message from windows "native" camera metro AP. I think it may need implement a driver for it, not develop a application. is my understand right?
ej IS ME
|
|
|
|
|
Hi.I have a ItemControl and i set ItemPanel Property to Horizontal StackPanel and I Bound it to ObservableCollection of Icons.Now I Wanna user be able to remove icons with drag drop them to out of ItemControl and also can change items positions with each other by drag and Drop.
(Look likes MacOSX DocBar).Can i do this with above controls ,if yes,please tell me how.if not,i appreciate to tell me i should use which controls and how
Thanks In Advance.
|
|
|
|
|
I have a ItemsControl in ScrollViewer and I set ItemsPanel of my ItemsControl to Horizontal StackPanel and i bound it to ObservableCollection of userControls .Now I wanna when user click on icons of open UserControls in my ItemsControl ,automatically scrollviwer 's offset change to show icon clicked UserControl .( I have a Icon for my each usercontrols )
And Also when user open new UserControl ,i wanna my ItemsControl automatically show it ( now when i open a new usercontrol i should scroll my ItemControl to reach it),
can i do this with above controls ,if yes,please tell me how.If not,i appreciate to tell me I should use which controls and how.
Regard.
modified 13-Sep-12 18:44pm.
|
|
|
|
|
I have read many articles but failed to understand that winRT is based on Win32 Platform or Managed Framework Platform or a alternate to MFC.
Regards,
Vishal
|
|
|
|
|
When I Google "what is winRT", the first link is to Wikipedia[^]. I think that page explains the basics in a nice and clear way.
Soren Madsen
|
|
|
|
|
Just learning experimenting with WinRT..
I can see you can mix and match C++ and C# WinRT component, they feel like being in the "same realm"..
But how do I mix with Javascript/HTML component?
Say I have a normal DirectX C++ WinRT app, with some AI in C# and I want to show some information text panel with lots of interactive rich text, a job for Javascript.
How do I show the Javascript/HTML in my XAML app?
Further, ideally, I'd like to use some of my 'business data' to customize the text / HTML, any sample?
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
Super Lloyd wrote: Say I have a normal DirectX C++ WinRT app, with some AI in C# and I want to show some information text panel with lots of interactive rich text, a job for Javascript.
How do I show the Javascript/HTML in my XAML app?
I have not tried this. I think you could style a WebView to resemble the rest of your application. Then arrange the html, css and javascript to present the data.
Hope this helps!
If you found a different workaround, I would love to hear about it.
Frazzle the name say's it all
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
John F. Woods
|
|
|
|
|
It was mostly a theorical question... I gave up on it (or haven't reached the stage where it is useful yet! ^^)
Using Webviews and the appx protocol I was able to serve HTML/js files from inside my app, but not use C++/Cx class in those js files.. :/
|
|
|
|
|
Hope this is useful: "How to Use Chrome as Your Metro Browser in Windows 8 Release Preview"[^]. Article dated July 23, 2012.
best, Bill
"Everything we call real is made of things that cannot be regarded as real." Niels Bohr
|
|
|
|
|
Any browser works excellent on Windows 8. Desktop Version of course.
Regards.
Christian Amado
MCITP | MCTS | MOS | MTA
Olimpia ☆ ★★★
Please mark as answer, if it helps.
|
|
|
|
|
Ashish G. of MS wrote: "As the flash is integrated with Internet Explorer 10 and does not comes as plug-in, it should work on both – Desktop and Metro version of Internet Explorer."[^].
As example of the confusion: Tim Anderson's blog writing about an interview with Scott Guthrie[^]. Do note the wild diversity, and contradictions, in the various readers' comments.
One wonders if integrating Flash is, on a primary level, an anti-iPad/Apple geo-political move; but one might ask: why not SilverLight; unless one claims, as some responders to the article above do, that WinRT + XAML is "SilverLight 6."
IE10 on Metro and WinRT supposed to be the "no plug-in" browser, so MS emphasized in various public statements, so I thought.
I remain confused about whether on ARM hardware in Win8, other browsers, other than IE10 will be usable.
All attempts at un-confusing me are appreciated
thanks, Bill
The glyphs you are reading now: are place-holders signifying the total absence of a signature.
|
|
|
|
|
IE10 for Desktop suffers no changes. You can have any plug-in on it!.
In Metro you cannot install any plugin. It's not supported. So, the IE10 for metro have silverlight & flash plugins built-in. For security or compatibility reason may be.
Good point of view from you =)
Regards.
Christian Amado
MCITP | MCTS | MOS | MTA
Olimpia ☆ ★★★
Please mark as answer, if it helps.
|
|
|
|
|
Hi everyone
I try to build a simple windows 8 Metro Style application in JS or C# , I wonder if I can select a picture from an images gallery and put it as wallpaper on my desktop . I already checked few answers but its not working on Windows 8. Any code will Help I used VS2012 with Win8 RP
Thanks
|
|
|
|
|
I won't think so as Metro applications are essentially in their own sandboxes...
Philippe Mori
|
|
|
|
|
Have a Win 8 Desktop app with buttons that are gray, when when moused-over, their color changes. Also shows tooltip.
When the user touches, not clicks or mouses over, I want to NOT change the color not show the tooltip when touched?
Anyone know if this possible? Can you point me in the right direction?
Thanks
If it's not broken, fix it until it is
|
|
|
|
|