What is the correct type argument to use of a type of Point

CostasAletrariCostasAletrari ✭✭USMember ✭✭

Hello, I'm trying to pass a type argument where the data type is of point. I keep running into an issue. here is my xmal code

 <gauge:Header x:Name="MiddleChartTxt" ForegroundColor="White">
                            <gauge:Header.Position>
                                <OnPlatform x:TypeArguments="x:Point">
                                    <On Platform="iOS" Value="0.5,0.5" />
                                    <On Platform="Android" Value="0.5,0.55" />

                                </OnPlatform>
                            </gauge:Header.Position>

                            <gauge:Header.TextSize>
                                <OnPlatform x:TypeArguments="x:Double" iOS="16" Android="16" />
                            </gauge:Header.TextSize>
                        </gauge:Header>

I've checked out this page which gives me a list of options eg. double, int etc.. but can't find any reference to point.

any suggestions?? Thank you

Tagged:

Answers

  • Eric_LiraEric_Lira ✭✭✭ USMember ✭✭✭

    Hello @CostasAletrari
    I'm not sure if would work, but looking at @CharlesPetzold.4997 e-book, I'd say is something like this:

    <OnPlatform x:TypeArguments="x:Point">
        <On Platform="iOS">
            <Point>
                <Point.X>0.5</Point.X>
                <Point.Y>0.5</Point.Y>
            </Point>
        </On>
        <On Platform="Android">
            <Point>
                <Point.X>0.5</Point.X>
                <Point.Y>0.55</Point.Y>
            </Point>
        </On>
    </OnPlatform>
    
Sign In or Register to comment.