Új hozzászólás Aktív témák

  • trisztan94

    őstag

    válasz Karma #5485 üzenetére

    Kicsit régi dologra reagálok, de most jutottam el oda, hogy ezt a funkcionalitást bele kellene rakni végre.

    Csináltam egy Grid-et XAML-ben, benne a három vízszintes gomb:

    <Grid
    x:Name="messageBoxButtonsGrid">
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="*"/>
    <ColumnDefinition Width="*"/>
    <ColumnDefinition Width="*"/>
    </Grid.ColumnDefinitions>
    <Button Content="hello"
    Grid.Column="0"/>
    <Button Content="szia"
    Grid.Column="1"/>
    <Button Content="Mizu?"
    Grid.Column="2"/>
    </Grid>

    Majd a MainPage konstruktorába beraktam a következőt:

    var messagebox = new CustomMessageBox()
    {
    Caption = "Caption szöveg",
    Message = "Message szöveg",
    Content = messageBoxButtonsGrid
    };
    messagebox.Show();

    Ezzel az exceptionnel száll el:

    Mit csinálok rosszul? :F

Új hozzászólás Aktív témák