小编sah*_*hap的帖子

Skype for Business UCWA和Web API与Office365

是否可以连接到Office365服务器并使用UCWA(ucwa.skype.com/)和Skype for Business?

我想使用这个例子https://www.matthewproctor.com/Send-An-IM-With-UCWA-Creating-the-Application/但我不知道我可以使用哪个服务器进行连接...

asp.net-web-api ucwa skype-for-business office365api skypedeveloper

6
推荐指数
1
解决办法
1825
查看次数

如何通过MediaElement播放来自图书馆的文件?

我只能从应用程序存储中播放文件,但是,我必须从库或其他来源播放文件.我试着:

        var storageFile = await StorageFile.GetFileFromApplicationUriAsync(new Uri("C:\\Users\\admin\\Music\\line.mp3"));
        var stream = await storageFile.OpenAsync(FileAccessMode.Read);

        mediaElement.SetSource(stream, storageFile.ContentType);

        mediaElement.Play();
Run Code Online (Sandbox Code Playgroud)

它给出了异常:"Polar.exe中出现类型'System.ArgumentException'的异常,但未在用户代码中处理.附加信息:值不在预期范围内."

我尝试了mediaElement.Source(),但元素没有播放声音.没有例外,没有任何东西.

我认为这是愚蠢的问题,但我找不到解决方案.我做错了什么?

c# windows-store-apps

2
推荐指数
1
解决办法
2045
查看次数

修复了Hub控件中的标头

如何在Windows Phone 8.1中的Hub控件中关闭标题移动?就像在"MixRadio"应用程序中一样.

我试图找到这样的属性设置,但我没有成功.

    <Hub x:Name="HubControl" HorizontalAlignment="Left" Margin="0,25,0,0" VerticalAlignment="Top" Height="640" Background="Black">
        <Hub.Header>
            <StackPanel>
                <TextBlock FontSize="48" FontFamily="Segoe WP Semibold">
                        <Run FontWeight="Bold" Text="An"/>
                        <Run FontWeight="Normal" Text="App"/>
                </TextBlock>
                <TextBlock FontSize="18" Margin="0,18,0,0" FontFamily="Segoe WP Semibold" Text="updating mix..."/>
            </StackPanel>
        </Hub.Header>
        <HubSection>
            <DataTemplate>
                <Grid>
                    <TextBlock FontSize="18" Margin="0,18,0,0" FontFamily="Segoe WP Semibold" Text="1 page"/>
                </Grid>
            </DataTemplate>
        </HubSection>
        <HubSection>
            <DataTemplate>
                <Grid>
                    <TextBlock FontSize="18" Margin="0,18,0,0" FontFamily="Segoe WP Semibold" Text="2 page"/>
                </Grid>
            </DataTemplate>
        </HubSection>
    </Hub>
Run Code Online (Sandbox Code Playgroud)

第二个问题:如何删除第一个和第二个标题文本之间的空格?

c# xaml windows-phone-8.1

2
推荐指数
1
解决办法
2633
查看次数