<ListView
    ScrollViewer.HorizontalScrollMode="Enabled"

小賢 發表在 痞客邦 留言(0) 人氣()

  使用非同步的方式,偵測影片是否正在播放。

 

小賢 發表在 痞客邦 留言(0) 人氣()

  Windows 市集 APP, MediaElement Stretch屬性無法使用,這時候在Google找到了一個解決方法,使用ViewBox來進行縮放,並將原本套用在MediaElement上面的Margin相關排版的屬性放在ViewBox上面,就可以達到相同位置但是又能縮放影片的效果

 

小賢 發表在 痞客邦 留言(0) 人氣()

C# WPF/WinForm Uri Decode

小賢 發表在 痞客邦 留言(0) 人氣()

            FrameworkElementFactory wrapElement = new FrameworkElementFactory(typeof(WrapPanel));
            ItemsPanelTemplate itemPanelDataTemplate = new ItemsPanelTemplate(wrapElement);
            itemPanelDataTemplate.VisualTree = wrapElement;


            myListbox = new ListBox()
            {
                Opacity = 1,
                Visibility = System.Windows.Visibility.Visible,
                Height = double.NaN,
                Width = double.NaN,
                ItemsPanel = itemPanelDataTemplate,
                Background = null,
                Foreground = null,
                BorderBrush = null,
                VerticalAlignment = VerticalAlignment.Bottom,
                HorizontalAlignment = HorizontalAlignment.Center,
                Margin = new Thickness(0, 0, 30, 0)
            };



小賢 發表在 痞客邦 留言(0) 人氣()