Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

Zhou Yong footballism Another Paradigm Shift!
  • Why can't MS create a new browser based on .Net?

    staceyw said:

    Being .Net/WPF based could be an interesting story.
    1) Being vector based the free scaling/sizing would be new.
    2) Browser-in-browser UX (e.g. picture-in-picture).  You could easily add other brower windows inside others for some interesting features.  Each browser could also be at a different scale or clipping region.
    3) Make client follow ASP.Net component model and pipeline on the client.  Can hook in anywhere in the pipeline.  Allows you to program and script your browser UX and sessions.  A Favorite, for example, could be a piece of script that sets up some tabs or a browser-in-browser experience.

    Many other things become possible and interesting.

    -> 3) Make client follow ASP.Net component model and pipeline on the client.  Can hook in anywhere in the pipeline.  Allows you to program and script your browser UX and sessions.

    If you use WPF for a reasonable period of time, you might think WPF's control/component model is much better.

    Zhou Yong

  • Why can't MS create a new browser based on .Net?

    staceyw said:
    ManipUni said:
    *snip*

    I disagree.  Having it vector based is a single huge feature for browsers.  Animations and graphics would become better and easier for the programmers also.  Essentially what we are talking about is Silverlight which does this and is .Net based.  This is the reason silverlight needs a runtime in the browser to pull off its magic.  However, with a .net browser, you would not require silverlight and could just use the standard .net runtime and wpf.  TMK, you can't vector scale any browser today (only thumbnail it).  A plugable .net pipeline is the future.

    -> This is the reason silverlight needs a runtime in the browser to pull off its magic.

    This is an interesting hypothesis, could you please elaborate on which basis you make this type of conclusion, you don't know that SL could be hosted out of browser?

    Zhou Yong

  • https but ​request.is​Secure​Connection returns false

    Other guy has a good solution to this issue before:

    http://www.leastprivilege.com/PartiallySSLSecuredWebAppsWithASPNET.aspx

    http://www.pluralsight.com/community/blogs/keith/archive/2009/01/17/sslhelper-get-help-running-a-partial-ssl-website-in-asp-net.aspx

    Zhou Yong

  • Why can't MS create a new browser based on .Net?

    DCMonkey said:
    AndyC said:
    *snip*

    I hear WebKit has a reasonably portable back end. I wonder if it could be ported to render to a Direct3D surface which could then better interop with WPF via D3DImage.

    The fundamental issue here is that Windows Vista even Windows 7 doesn't support GDI redirection for child HWNDs. If this is supported, there will be a much better interop story with the MIL rendering path.

    Zhou Yong

  • WPF MediaElement - No Video.

    Which version of WMP have you installed?

    WPF uses somewhat different code paths for WMP10 and WMP11 when rendering video. For WMP10, WPF will explicitly replace
    VMR in the filter graph with EVR, this might cause some codecs to fail.

    Hope this helps

  • WPF Drag and Drop

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2769836&SiteID=1

  • Keeping tooltip open WPF C#

    ToolTip is hosted inside a Popup which in turn is rendered in a separate HwndSource, you should be able to mimic the ToolTip behaviour using Poup, and set its StaysOpen property to true as the following XAML illustrates:

    <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <
    Button Width="120" Height="30" Name="btn">
    <
    Popup IsOpen="True" StaysOpen="True" PlacementTarget="{Binding ElementName=btn}" Placement="Bottom">
    <
    Button Width="120" Height="30" Content="Button In ToolTip"/>
    </
    Popup>
    </
    Button>
    </
    Page>

  • [Solved] Play wav from Resources in MediaPlayer

    Have you tried treating the wav file as content data file instead of resource data file?


  • WPF Get​VisualChild Bug with VB.NET

    I am by no means a VB.NET programmer, so I sent this thread to our internal discussion group, and I get the answer from there:

    MSFT Employee wrote:

    Protected Shadows ReadOnly Property VisualChildrenCount() As Integer

        Get

          Return visuals.Count

        End Get

      End Property

     

     

    Should be

     

      Protected Overrides ReadOnly Property VisualChildrenCount() As Integer

        Get

          Return visuals.Count

        End Get

      End Property

     

    When called on a parent class the Shadows property implementation is not called.  Rather the base class property is called, which returns 1.

     

    I should be able to figure this out myself, because In C#, I know what "Shadows" actually means:(

  • Binding a listbox in WPF

    WPF does support the change notification for ADO.NET data, the CollectionView implementation which bridges between data and View(UI) will connect to the underlying DataView of ADO.NET data, hook up to its ListChanged event, and when the ADO.NET data changed, the CollectionView implementation will receive the change notification and update the UI accordingly.

    I have a working example as belows:

    <Window x:Class="BindToAdoDataDemo.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="300" Width="300">
    <
    DockPanel>
    <
    Button Width="120" Height="30" Content="Add" Name="btn" DockPanel.Dock="Top"/>
    <
    ListBox ItemsSource="{Binding}" DisplayMemberPath="ChildItem"/>
    </
    DockPanel>
    </
    Window>

    public partial class Window1 : Window
    {
    public Window1()
    {
    InitializeComponent();
    DataTable dataTable = MakeChildTable();
    this.DataContext = dataTable.Rows;
    this.btn.Click += delegate
    {
    DataRow row = dataTable.NewRow();
    row["childID"] = 50;
    row["ChildItem"] = "ChildItem " + 50;
    dataTable.Rows.Add(row);

    };
    }

    private DataTable MakeChildTable()
    {
    DataTable table = new DataTable("childTable");
    DataColumn column;
    DataRow row;

    column = new DataColumn();
    column.DataType = System.Type.GetType("System.Int32");
    column.ColumnName = "ChildID";
    column.Caption = "ID";

    table.Columns.Add(column);

    column = new DataColumn();
    column.DataType = System.Type.GetType("System.String");
    column.ColumnName = "ChildItem";
    column.Caption = "ChildItem";
    table.Columns.Add(column);

    for (int i = 0; i <= 4; i++)
    {
    row = table.NewRow();
    row["childID"] = i;
    row["ChildItem"] = "Item " + i;
    table.Rows.Add(row);
    }

    return table;
    }
    }
    Hope this helps