如何使用C#中的WinRT Metro使用非对称加密对字符串进行加密,并在经典Windows中解密,让我们说在Web服务中?
我想使用RsaPkcs1算法,我可以看到CryptographicKey类和RSAParameters类甚至不兼容.
如何实现这一目标?
我想定义一个在基类中不是异步的虚方法,但它在派生类中是异步的,调用者使用委托调用它(实际上它是由屏幕上的按钮激活的ICommand)我该怎么做.
public class BaseClass
{
    BIONESSBindingCommand mLogoffCommand;
    public ICommand LogoffCommand
    {
        get
        {
            if (mLogoffCommand == null)
            {
                mLogoffCommand = new BIONESSBindingCommand(
                    Param => Logoff(), //Command DoWork
                    Param => true); //Always can execute
            }
            return mLogoffCommand;
        }
    }
    public virtual Task Logoff()
    {
        DoLogoff();
        return null; //???
    }
}
public class DerivedClass : BaseClass
{
    public override async Task Logoff()
    {
        await SomeWoAsyncWork();
        base.Logoff(); //Has warninngs
    }
}
c# asynchronous task-parallel-library async-await windows-runtime
我在场景中有两个列表视图(listview1和listview2,listview2的内容取决于listview1上的selecteditem),当我导航到场景时,我希望选择listview1中的第一个项目,并在另一个列表视图中显示细节( listview2)但我不希望默认情况下选择listView2中的任何项目.
我观察到的是listView2中的第一项也被选中,这导致listview2触发selectionchanged事件(我希望仅在用户明确选择它时触发)
当我将GridView数据绑定到ObservableCollection时,会自动选择该集合的第一项.SelectionModeGridView 的属性设置为multiple.有没有办法阻止这种自动选择?或者我应该监听什么事件,以便我可以SelectedIndex将GridView 重置为-1?
我是一名法国开发人员,我需要为Windows 8 Pro开发一款始终推出的Metro Style应用程序.我想知道如何禁用我的应用程序的关闭事件.我的应用程序需要始终在前面,用户无法退出应用程序.
我以为我可以禁用GPO的所有快捷方式,但是关闭手势(将应用程序从顶部拖到底部)也需要禁用我.
我希望我很清楚,每个人都会理解这个问题:-).随意问我更具体的问题.
亲切的雷诺.
我需要在Metro UI应用程序中获取网络接口的MAC地址.据我所知,.NET 4.5 for Metro应用程序API根本不支持这一点.我错了吗?
我有一个头文件定义了我想在我的代码中使用的一些结构.
public value struct HttpHeader
{
   Platform::String^ mName;
   Platform::String^ mValue;
};
typedef Platform::Collections::Vector<HttpHeader> HttpHeaders;
public value struct HttpRequestEvent
{
   Platform::String^ mUri;
   HttpHeaders^ mHeaders;
};
当我构建这个时,我收到此错误:
error C3986: 'mHeaders': signature of public member contains native type 'std::equal_to<_Ty>'
      with
      [
          _Ty=cpcpb::HttpHeader
      ] (SettingsServiceImpl.cpp)
我在这里错过了什么?不是我使用C++/Cx的一切吗?
我用Javascript写了一个Metro程序.问题是Windows8会自动添加一个X按钮.现在如何编辑或删除该按钮?下面是我的布局,X按钮与电子邮件输入重叠.

在Windows 8 RP中,我将XAML视图转换为更像MVVM的模型.
绑定到ProgressBar.Value属性似乎不更新该值.RaisePropertyChanged发送正确,其他参数如.Maximum和.Visibility似乎正常工作.该值通过ViewModel类中的DispatchTimer进行更新.
有没有人遇到过"Metro Style Apps"?
一些片段:
Time = 1;
MaxTime = 60;
TimerVisibility = Windows.UI.Xaml.Visibility.Visible;
timer.Start();
在设置上述值之前,ProgressBar会折叠.
我正在开发使用的是Windows 8发布预览和C#(VS 2012)metro应用,有没有什么办法让Grid宽度设置为Auto,
 简:我有StackPanel一个Grid在它n的行数和n列(行数和列数正在动态生成).我需要知道Grid实际的宽度StackPanel,我试过
 1)var Actualwidth = grid.ActualWidth;            
 2)var Minwidth = grid.MinWidth;
 3)var width = grid.Width;
 4)var Renderwidth = grid.RenderSize.Width;
结果如下
1 = 0.0
2 = 0.0
3 = NaN
4 = 0.0
有没有办法获得实际宽度,请帮助我,提前谢谢
windows-runtime ×10
c# ×5
windows-8 ×5
winrt-xaml ×3
xaml ×2
async-await ×1
asynchronous ×1
c++-cx ×1
data-binding ×1
encryption ×1
gridview ×1
networking ×1
winjs ×1