windows-8

SemanticZoom ZoomedOutView SelectedItems Returns DependencyObject

两盒软妹~` 提交于 2019-12-06 16:03:06
In the SemanticZoom control I use the same CollectionViewSource for both the zoomed in and zoomed out view. To do this I bind the zoomed out GridView in the code behind like this: (FavoriteGroupsSemanticZoom.ZoomedOutView as ListViewBase).ItemsSource = this.FavoriteGroupsViewSource.View.CollectionGroups; Everything works as expected. However, now the zoomed out GridView is bound to a list of DependencyObjects instead of my original groups. And thus when I access the SelectedItems I get a WinRT object that contains a list of DependencyObjects instead of my groups. How can I access the selected

C# code to change the default program attached with an extension using a custom progid with hash in windows 8

不打扰是莪最后的温柔 提交于 2019-12-06 15:58:20
Purpose: Associate a new progid to an extension so that file will open with new associated program. Programming Language: C# Description: I want to create a program to associate another program with an extension from my recommended program list. My program is working in windows-xp and windows-7 but it is not working in windows-8. when i searched for the issue, i found that in Windows-8 there is an additional key called "Hash". I am not able to find the hash for my new progid. Steps Being Followed: Created a class say "MyTest.txt" in HKEY_CLASSES_ROOT eg: HKEY_CLASSES_ROOT MyTest.txt Shell Open

how to view specific setting page in **winrt** application using C#?

倾然丶 夕夏残阳落幕 提交于 2019-12-06 15:45:25
问题 how to view specific setting page in winrt application using C# from outside button click? In javascript i found like this WinJS.UI.SettingsFlyout.showSettings("About", "/Settings/About.html") But i could not able to find this in c#,I am using callisto for Setting Flyouts 回答1: I'm using Callisto and C# too, and this is how I solved the problem. void OnCommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args) { var settings = new SettingsCommand("settings", "Settings"

AccessViolationException when accessing pixel color using WriteableBitmapEx

十年热恋 提交于 2019-12-06 15:41:05
I'm using WriteableBitmapEx library to edit an image taken with tablet's cam with Windows 8 Pro. I'm getting an AccessViolationException every time I call to GetPixel() function, here's the code: Windows.Media.Capture.MediaCapture captureMgr = new MediaCapture(); await captureMgr.InitializeAsync(); IRandomAccessStream memoryStream = new InMemoryRandomAccessStream(); await captureMgr.CapturePhotoToStreamAsync(imageProperties, memoryStream); await memoryStream.FlushAsync(); memoryStream.Seek(0); WriteableBitmap tmpImage = new WriteableBitmap(1, 1); tmpImage.SetSource(memoryStream); tmpImage

Running ILMerge tool using .NET 4 on Windows 8

£可爱£侵袭症+ 提交于 2019-12-06 15:39:43
We are running ILMerge as a post build step and having problems when building on a Windows 8 machine. ILMerge.exe is a .NET 2 application so should be able to be loaded/hosted within the .NET 4 runtime. However as soon as we try to execute ILMerge on a Windows 8 build machine the Windows Features dialog appears saying it can't automatically install .NET 3.5 (inc 2.0) and the command fails. This also occurs if I simply run ILMerge.exe /? on the command line. I've tried adding an app.config file with supportedRuntime/requiredRuntime but no luck. Does anyone know how I can resolve this problem

Hide MediaPlayer Controls ( Microsoft Media Platform Player Framework )

允我心安 提交于 2019-12-06 15:39:19
I´m using the MMP:PF in a c#/xaml application and provide my own control elements to handle the player. Thats why i would like to hide/disable its own native controls that appear on the bottom. ( And in the middle of the screen on screenshot, this one´s just using a theme ) Does anybody know how to do that? I didnt manage to find a property for that. From MediaPlayer 's reference, IsTimeLineVisible , IsPlayPauseVisible , IsPositionVisible , IsStopVisible and many other visibility properties available. so you can set them to false. take a look at the MediaPlayer Properties The magic property to

Crop image with dynamic rectangle coordinate

此生再无相见时 提交于 2019-12-06 15:22:00
问题 I have a Image and I want crop it by using a rectangle, code below is the code I put a image and draw a rectangle at middle of the image: MainPage.Xaml: <Canvas x:Name="canvas" HorizontalAlignment="Center" VerticalAlignment="Center" Width="340" Height="480" Background="Blue"> <Image x:Name="photo" HorizontalAlignment="Center" VerticalAlignment="Center" ManipulationMode="All"> <Image.RenderTransform> <CompositeTransform/> </Image.RenderTransform> </Image> <Path Stroke="Black" StrokeThickness=

Windows 8 & MySQL? What are my options?

瘦欲@ 提交于 2019-12-06 14:58:37
问题 I am currently writing a Metro application and I want to integrate managed SQL handling within my app by connecting it to my web SQL DB. What are my options for .NET 4.5? Also, if you downvote, please explain why, I know there is some MySQL connector for .NET 4, but it is obviously incompatible with 4.5 回答1: I strongly advise against client programs connecting directly to a database server over the Internet, for the following reasons: Client libraries are designed and built around the

Connect Windows Phone and Windows 8 apps to SQL Server

拥有回忆 提交于 2019-12-06 14:40:41
问题 What is the best method to connect a Windows Phone app or Windows 8 app directly to an SQL Server? The apps must not use a proxy/IIS etc. and was hoping to connect directly using SQL like with normal desktop applications. Thanks. 回答1: You can't directly connect to a SQL Server, because of the Metro-Apps-Sandbox concept. They only can comunicate with a server through a service. The only way around this limitation that I know of is a SQLite integration into Windows 8 Apps. In my opinion the

Render control into image in WinRT metro

别来无恙 提交于 2019-12-06 14:00:05
I'm creating an application for windows 8 metro, I need to render a framework control into an image and save it to hard disk but do not know how. Can I use SharpDX for this? How can I do? Thanks in advance for the help If you follow through this thread the limitations of Metro and the reasons why it won't work are explained. The essence of it is: Sorry, but rendering Xaml to an element or capturing a screenshot of your own app did not make it into the release version. It is by design that an app cannot capturing a screenshot of another app. A workaround mentioned is: What I meant was - you can