All Questions
100
questions
37
votes
3
answers
27k
views
What happened to regtlibv12?
I have a clean install of Windows 8 on a partition, with Visual Studio 11/2012 Professional installed and I cannot find regtlibv12.exe inside C:\Windows\Microsoft.NET\Framework\v4.0.30319.
Below is a ...
20
votes
4
answers
24k
views
Installing Visual Studio 2012 Ultimate on Windows 8
While trying to install the Visual Studio 2012 ultimate trial on Windows 8 Release Preview I got the following error message
The .Net Framework installed on this machine does not meet the minimum
...
20
votes
1
answer
10k
views
Window style with WPF Ribbon from Microsoft doesn't match Windows 8 style
I'm using the release Version of Windows 8 and Visual Studio 2012 to create a WPF application with a Ribbon control. I choose the ribbon control that comes with WPF in .Net Framework 4.5.
My code to ...
16
votes
5
answers
12k
views
Place holder or watermark in TextBox windows 8
I want to show a placeholder text in TextBox when user hasn't typed anything and TextBox is idle.
In Andriod it can be done using android:hint="some Text"
In iPhone it can be done as textFild....
16
votes
5
answers
11k
views
Why does TextBlock trims ending spaces from the text?
Here are my TextBlocks:
<StackPanel Orientation="Horizontal" Margin="0,3,0,0">
<TextBlock Text="6 or more characters, at least one letter and a number, " ...
13
votes
5
answers
6k
views
How can I start a Windows App Background Task immediately after registering it?
I am writing a Metro App that will only run on PCs (so there is no, or at least less, worry about the battery life). I need it to register and run a background task when the user clicks a button. It ...
13
votes
1
answer
511
views
Why do WinRT framework assemblies have the same fully qualified name as their (different) non-WinRT counterparts?
This is really just more of a curiosity type question. I deal with looking up types across assemblies and raw IL. Windows 8 really puts a kink in something I'm implementing though. I've found that ...
10
votes
4
answers
14k
views
Visual Studio 2012 How to debug "Unable to add reference to project x" error?
In Visual Studio 2012 in a blank new Class Library I am trying to add reference to an existing project in the solution, also a Class Library, MonoGame.Framework.Windows8 (https://github.com/mono/...
10
votes
2
answers
7k
views
DataContractJsonSerializer parsing iso 8601 date
I have a json which has date as 2012-06-07T00:29:47.000 and has to be deserialized.
But on
DataContractJsonSerializer serializer = new DataContractJsonSerializer(type);
return (object)serializer....
10
votes
2
answers
432
views
Entering date in d/mm format in TextBox
I've got a TextBox bound to a nullable DateTime property.
I'm in Australia, so I want dates presented in the d/mm/yyyy format.
On my Windows 7 box, I can enter the date in d/mm format, and it's ...
9
votes
4
answers
21k
views
How do I convert string to Indian Money format?
I am trying to convert string to India Money format like if input is "1234567" then output should come as "12,34,567"
I have written following code but its not giving the expected output.
...
7
votes
5
answers
3k
views
Where in Windows 8 app should you code 'privacy policy'?
my app failed certification with reason : "4.1.1 Your app must have a privacy statement if it is network-capable
. . .
You must provide access to your privacy policy in the Description page of your ...
7
votes
2
answers
940
views
How can I access Windows 8 File History programatically?
I have several thousand image files that have been corrupted by some rogue process on my machine. I have some .NET code to discover broken files. I would like to enumerate and access previous ...
7
votes
2
answers
4k
views
Error : DEP0500 : The folder "...\Debug\AppX" could not be deleted. Access to the path 'resources.pri' is denied
I get this error a lot, when I try to debug my WinRT app on my local machine:
Error : DEP0500 : The folder "C:\Users\akku\VS2012Projects\ProjectName\bin\x86\Debug\AppX" could not be deleted.
Access ...
6
votes
4
answers
6k
views
WinRT: App to enumerate files outside libraries and known folders
I am working on a Metro app that shows the content of a given folder in a ListView control.
MS decided that developers don't need the System.IO.Directory class and removed it entirely from the ...
6
votes
2
answers
7k
views
Async task does not end
I'm trying to start async task (on .NET 4.5) which downloads content of web page, but somehow this task never finishes.
My PageDownloader class:
using System.Net;
using System.Text;
using System.IO;
...
6
votes
1
answer
3k
views
Capture the stream from microphone in WAV formatting
I'm migrating an metro style application from windows phone 7.5 to windows 8. My application was used to capture the microphone input stream .
I've found MediaCapture class in the win 8 api for metro ...
5
votes
1
answer
14k
views
Deserializing detail of SOAP message
I am working on a Windows Store application.
I have the following manually created Fault class:
[XmlRoot(Namespace = "http://schemas.xmlsoap.org/soap/envelope/", ElementName = "Fault")]
public ...
5
votes
0
answers
2k
views
Turn off Webcam flash light metro app C#
Apologize if I'm wrong, I'm developing metro app using C# and XAML for Windows 8,My app has capability to capture a QR Code image, Save it in picture library, decode QR image(I'm using XZing.Net ...
5
votes
3
answers
3k
views
How to change the selected text color in a TextBlock in a ListView?
I am building a Windows 8 store application and I can't manage to change the highlighted/selected color a of TextBlock in a ListView.
Here's how I create my ListView :
<ListView x:Name="...
4
votes
1
answer
12k
views
Displaying a picture stored in Storage file in a metroapp
I would like to display the content of a picture stored in a StorageFile through a binding, but whatever I'm trying to do it doesn't seem to work.
Here are the two solutions I have already tested :
...
4
votes
1
answer
6k
views
C# Metro HttpClient not receiving cookie on PostAsync
I am trying to log in to a website using .NET 4.5 HttpClient and receive a cookie. I break right before leaving the try and check the CookieContainer and it contains no cookies. The response sends ...
4
votes
1
answer
298
views
How can I define primitives in StandardStyles.xaml
I want to define double values so that I can reuse it in many UIElements
<Double x:Key="MyWidth">100</Double>
<String x:Key="MyString">This is my text</String>
It's giving me ...
4
votes
2
answers
2k
views
Parallel HTTPRequest using HttpClient in Windows 8 app
I am using HttpClient for sending HTTP requests and receiving HTTP responses in my Windows 8 app. I have few questions on the same:
1) Can I send multiple/parallel HTTP requests using a single ...
4
votes
1
answer
987
views
Commands binding troubles on Windows 8 (Release Preview)
Recently I got chance to play a little bit with Windows 8 Release Preview (Build 8400 to be specific). My aim was to investigate bugs which appeared in our product (WPF application) only under Windows ...
4
votes
1
answer
566
views
WinRT API in .Net 4.5
I am trying to use
Windows.Media.Capture.CameraCaptureUI() of Metro Style app
in WPF application in VS11. Now I know there are others library for doing camera capture, but It is possible to use a ...
3
votes
1
answer
11k
views
List<> .ForEach not found [duplicate]
I am porting a Windows Phone app to Win 8, and I have found this stumbling block, but cant find the solution.
I have a:
List<items> tempItems = new List<items>();
and
...
3
votes
1
answer
1k
views
Why json serializer is not compliant with polymorphism?
I use stock JSON serialiser in .NET 4.5 windows store app -
System.Runtime.Serialization.Json.DataContractJsonSerializer
I have a class which is supplied by the API provider say
class A { public ...
3
votes
4
answers
3k
views
await / async issues
I'm working on Windows 8 CP and discovered that in my app, I'm unable to properly get the new async/await mechanism to work.
This method I am showing you will work when run as a UnitTest (called from ...
3
votes
3
answers
363
views
Multitargetting to metro and non metro target platform in Windows 8
I am creating a simple metro app. I am also creating non metro version of the same app.
The problem I am facing is that VS is not allowing me to reference normal class libraries into the metro app, ...
3
votes
1
answer
877
views
Transparency in Windows 8 (Metro App)
I am trying to make transparent Grid but Text(or something else) on it not transparent. What i am supposed to do? And sorry for my English.
3
votes
1
answer
3k
views
Select all files with file picker metro apps windows 8
FileOpenPicker openPicker = new FileOpenPicker();
openPicker.ViewMode = PickerViewMode.Thumbnail;
openPicker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
openPicker.FileTypeFilter.Add("....
3
votes
1
answer
2k
views
Create DataTemplate in win8
How do I create DataTemplate in win8 (WinRT) App using code behind file i.e. using C# instead of xaml.
3
votes
1
answer
664
views
SimpleOrientationSensor returning Null
I'm using SimpleOrientationSensor to get the screen orientation information in my application. I'm testing this application in Windows Simulator but I always get the sensor object's value as null.
...
3
votes
1
answer
3k
views
Use Webcam as ambient light sensor in PC
Is it possible to make the webcam of a pc acting as an ambient light sensor?
I am using .Net 4.5 framework in Windows 8 pro.
2
votes
2
answers
3k
views
Writing and Reading file async
I want to write some content into a local file and then represent it in a textblock. I have two methods, CreateFile and Output, the first method uses WriteTextAsync method to write content into file, ...
2
votes
1
answer
4k
views
How to resolve a hostname to an IP address in Metro/WinRT?
I'm in the process of porting a WP7 app to Windows 8 Metro and one of the (many) conversion obstacles I've encountered is discovering an IP address based on a hostname or DNS name. The following is an ...
2
votes
1
answer
107
views
Object Initializer where property isn't assigned
I had a type-o in my windows-8 app store code. I got a strange result, so I went back to look and realized I missed a value, but it still compiled and ran without errors. Thinking this was strange, ...
2
votes
1
answer
544
views
Windows 8, .NET 4.5 DefineUninitializedData issue
I am trying to get to the bottom of an issue with our compiler and .NET 4.5 with Windows 8. I have simplified it down to a small piece of code and wondered if anyone has any insight into the issue. I ...
2
votes
2
answers
4k
views
Windows 8 Button click programmatically in C# and Xaml
I want to click button programatically in C# xaml. As I found that there is no method like PerformClick. What else is the alternative for it.
Actually I have set of 10 buttons with x:Name like btn1, ...
2
votes
3
answers
2k
views
MediaCapture Windows 8 Desktop - Photo is Dark
I am attempting to use the MediaCapture API within a Windows 8 Desktop Application (WinForms .NET 4.5). I am able to take the photo using the API, but the photo comes out very dark. Also, it does not ...
2
votes
4
answers
2k
views
Choosing between Task or void method for asynchronous code
I'm using the LoadState method as example, but this can be seen as a scenario for asynchronous programming in general.
The LoadState and SaveState method implementation typically have following ...
2
votes
1
answer
300
views
How to deploy a file from Visual Studio to an accessible folder in XAML Metro App?
I have XAML Metro app. I need to deploy a static file to be read on every app launch. I have access to certain paths only (eg LocalStorage and InstalledLocation..is that right?)
How do I make VS 2012 ...
2
votes
1
answer
1k
views
DirectoryInfo class not working in Metro App
I'm developing metro app. I need to access DirectoryInfo class. As documented Here it will work on Windows 8 too.
But I'm not able to use it!
It's giving :
The type or namespace name '...
2
votes
1
answer
3k
views
Saving a BitmapImage object as a file in local storage in windows 8?
I have a BitmapImage object, which already has its source etc set. I simply want to save it to my apps local storage folder, so that I can reference it at other points in the program. I just cannot ...
2
votes
3
answers
1k
views
Managing Autorotation in Windows 8 metro apps
How can i manage Autorotation Windows 8 Apps.
I have gone through the "Rotation" Sample from MSDN but it is hell lot confusing, what I need to do is , I need to have completely different view when in ...
2
votes
2
answers
1k
views
DateTime parse bug in WinRT Windows 8 RTM?
Having upgraded to Windows 8 RTM, some date time parsing code that I had has stopped working. I've replicated this using a standard console app:
CultureInfo provider;
provider = new CultureInfo("en-...
2
votes
1
answer
581
views
Xelement is not a valid windows runtime type
I am porting a windows phone 7 app to windows run time. In my wp7 app I have:
public sealed class Packet
{
public XElement _element;
public Packet(XElement element)
{
}
}
It says XElement ...
2
votes
0
answers
2k
views
Failed to lookup a channel to receive an incoming message. Either the endpoint or the SOAP action was not found
I am very new to WCF services. I have 1 WCF service created with NetHttpBinding and I have a Form application as a client of this service and I am trying to make a simple example of 2 way ...
2
votes
0
answers
601
views
windows 8 metro app converts text to image [duplicate]
Is there a way to convert text to an image with Windows store app API?
The analogous code in a normal windows app would be:
graphics.DrawString(txt, font, Brushes, 0, 0);