Metro App can no longer be programmatically killed?
You’re looking for App.Current.Exit()
You’re looking for App.Current.Exit()
I tried this and it works for me. <Window x:Class=”TryResponses.MainWindow” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” xmlns:vm=”clr-namespace:TryResponses” xmlns:system=”clr-namespace:System;assembly=mscorlib” Title=”MainWindow” Height=”350″ Width=”525″> <Window.Resources> <vm:MainWindowViewModel x:Key=”MainWindowViewModel” /> </Window.Resources> <Grid Background=”LightGray” DataContext=”{StaticResource MainWindowViewModel}”> <Grid.Resources> <Style TargetType=”ListViewItem”> <Style.Triggers> <Trigger Property=”ItemsControl.AlternationIndex” Value=”0″> <Setter Property=”Background” Value=”LightBlue” /> </Trigger> <Trigger Property=”ItemsControl.AlternationIndex” Value=”1″> <Setter Property=”Background” Value=”LightGray” /> </Trigger> </Style.Triggers> </Style> <DataTemplate DataType=”system:String”> <!– put your data template … Read more
Update: We have fixed this in Visual Studio 2013. Portable libraries targeting Store (Windows 8.1) and .NET Framework 4.5.1 projects can now reference Timer. This is unfortunate case of where our implementation details are leaking to the user. When you target just .NET 4.5 and Windows Store apps, we actually cause you to build against … Read more
I see the difference as a design choice, than a personal preference of language. Preference would be more related to VB vs C#. And generally it’s the same differences you get in any application where you choose C++ or .NET. C++ will give you faster startup times. IIRC, .NET 4.5 has auto NGENing abilities (not … Read more
Unfortunately the alternative (DockPanel) isnt available for Metro. You could try a WrapGrid, but I dont know if it’ll solve your problem (Ive never used it). The only real way of doing this is using a Grid as you described: <Grid Width=”400″> <Grid.ColumnDefinitions> <ColumnDefinition Width=”Auto” /> <ColumnDefinition /> </Grid.ColumnDefinitions> <TextBlock Text=”Label” Width=”150″ /> <TextBox Text=”Value” … Read more
Many of the reflection methods can be found in the System.Reflection.TypeInfo class. You can get an instance of TypeInfo for your Type using the GetTypeInfo extension method, provided by System.Reflection.IntrospectionExtensions: using System.Reflection; // … ui.GetType().GetTypeInfo().IsSubclassOf(type)
Though its far from complete or correct and has lots of bugs, but I have started this project here https://winrtsock.codeplex.com. Have not implemented any listen/accept as of yet
What new things needed to run Metro Apps in Windows XP or Windows 7 A virtual machine of Windows 8. Metro apps currently don’t run on Windows 7, and definitely don’t on Windows XP. According to this thread, it’s difficult but might happen eventually: Keep your eyes out on future Channel 9 videos and on … Read more
It is a SAL annotation, used for code analysis. The annotations themselves are defined as macros that, in normal builds, expand to nothing. The ^ and ref class are features of C++/CX, a set of language extensions developed to make it easier to build Metro style apps for Windows 8 in C++. Neither is a … Read more
Metro-style apps aren’t meant to be run as ordinary applications. If you want to run an application you wrote, you can do one of the following: Run it from VS (with or without debugging). This will actually install unpackaged version of your app, so you will see it in the start screen. Create a package … Read more