wpf - How to cast from Windows.UI.Xaml.UIElement to System.Windows.Controls.UIElement -
i'm trying create new ui app developed windows store using windows runtime api. new client going wpf desktop app. i'm trying reuse much code can i'm facing several issues.
fortunately there's way utilize winrt in wpf desktop app (see this , this)
now i'm blocked next issue: mediacapture class has method start preview of device, after i've started preview can create captureelement display preview. captureelement part of windows.ui.xaml.controls , cannot used in containers system.windows.controls in wpf ui built.
am going anywhere approach? recommend? how can display preview of device in wpf app?
thanks in advance
captureelement can't used in desktop applications - documentation says "[windows store apps only]". in general - ui controls wpf , winrt/xaml can't used outside of respective domains (desktop/immersive ui). in wpf app need utilize wpf controls - e.g. directshow photographic camera capture,
wpf xaml windows-runtime
No comments:
Post a Comment