Ejemplo n.º 1
0
 // Token: 0x0600692A RID: 26922 RVA: 0x001DC2B8 File Offset: 0x001DA4B8
 internal static void UpdateMirroringTransform(FlowDirection parentFD, FlowDirection childFD, ContainerVisual visualChild, double width)
 {
     if (parentFD != childFD)
     {
         MatrixTransform transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, width, 0.0);
         visualChild.Transform = transform;
         visualChild.SetValue(FrameworkElement.FlowDirectionProperty, childFD);
         return;
     }
     visualChild.Transform = null;
     visualChild.ClearValue(FrameworkElement.FlowDirectionProperty);
 }
Ejemplo n.º 2
0
        // ------------------------------------------------------------------
        //
        // Visual Helpers
        //
        // ------------------------------------------------------------------

        #region Visual Helpers

        // ------------------------------------------------------------------
        // Update mirroring transform.
        // ------------------------------------------------------------------
        internal static void UpdateMirroringTransform(FlowDirection parentFD, FlowDirection childFD, ContainerVisual visualChild, double width)
        {
            // Set mirroring transform if necessary, or clear it just in case it was set in the previous
            // format process.
            if (parentFD != childFD)
            {
                MatrixTransform transform = new MatrixTransform(-1.0, 0.0, 0.0, 1.0, width, 0.0);
                visualChild.Transform = transform;
                visualChild.SetValue(FrameworkElement.FlowDirectionProperty, childFD);
            }
            else
            {
                visualChild.Transform = null;
                visualChild.ClearValue(FrameworkElement.FlowDirectionProperty);
            }
        }