[Root] / Xceed.Wpf.DataGrid.Views3D Assembly / Xceed.Wpf.DataGrid.Views Namespace / CardflowItemsHost Class / CameraLooksAtOriginOnY Property


In This Topic
    CameraLooksAtOriginOnY Property (CardflowItemsHost)
    In This Topic
    Gets or sets a value indicating whether the camera looks at the Y origin when it moves along the Y axis (see Remarks).
    Syntax
    'Declaration
     
    Public Property CameraLooksAtOriginOnY As Boolean
    'Usage
     
    Dim instance As CardflowItemsHost
    Dim value As Boolean
     
    instance.CameraLooksAtOriginOnY = value
     
    value = instance.CameraLooksAtOriginOnY
    public bool CameraLooksAtOriginOnY {get; set;}

    Property Value

    true if the camera continuously looks at the Y origin when it moves along the Y axis; false if it looks straight ahead. By default, false.
    Remarks

    When the camera moves along the X and Y axes, it can either continuously look at the corresponding X or Y origins or straight ahead.  For example, if the camera were to move in a negative direction (left) along the X axis and in a positive direction (up) along the Y axis with both the CameraLooksAtOriginOnX and CameraLooksAtOriginOnY properties set to false, it would look straight ahead without looking at the cards, which would then be visible only on the lower right (see Figure 1). With the camera in the same position but looking at both the X and Y origins, the result would be that the center card would always remain visible and in the center of the viewport (see Figure 2).


    Figure 1: CameraLooksAtOriginOnX and CameraLooksAtOriginOnY set to false


    Figure 2: CameraLooksAtOriginOnX and CameraLooksAtOriginOnY set to true


    Figure 3: CameraLooksAtOriginOnY set to true; CameraLooksAtOriginOnX set to false


    Figure 4: CameraLooksAtOriginOnX set to true; CameraLooksAtOriginOnY set to false

    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also