You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to use the existing DualResponseViewModel and attach my own XAML to it.
However, if I do this, it seems like I can't pass in my own arguments/properties via the method identified in the documentation.
If the property isn't already predefined in the DualResponseViewModel I'll get a Null Reference Error.
If the property exists, I won't get a null reference error but I might get a "No Setter available error" or I get no error but using the property won't work.
For Example: var args = new Dictionary<string, object>() { { "LeftButtonText", "TestText" } }; bool result = await DualResponseViewModel.GenerateVM().GeneratePopup<ModifiedDualMopupPopup>(args);
With the above code, I also have the following xaml within the ModifiedDualMopupPopup.xaml: <Button x:Name="CloseButton" Margin="10,5" HorizontalOptions="Fill" VerticalOptions="EndAndExpand" Text="{Binding LeftButtonText}" Command="{Binding LeftButtonCommand}"/>
However, the LeftButtonText will not actually get populated with the value I specified in the args when the popup opens, rather it will be blank.
Am I doing something wrong, or is this the expected behaviour? If so, what is the point of being able to customize the xaml for something like the DualResponseViewModel if we can't use the pre-defined properties/commands?
The text was updated successfully, but these errors were encountered:
I want to be able to use the existing DualResponseViewModel and attach my own XAML to it.
However, if I do this, it seems like I can't pass in my own arguments/properties via the method identified in the documentation.
If the property isn't already predefined in the DualResponseViewModel I'll get a Null Reference Error.
If the property exists, I won't get a null reference error but I might get a "No Setter available error" or I get no error but using the property won't work.
For Example:
var args = new Dictionary<string, object>() { { "LeftButtonText", "TestText" } }; bool result = await DualResponseViewModel.GenerateVM().GeneratePopup<ModifiedDualMopupPopup>(args);
With the above code, I also have the following xaml within the ModifiedDualMopupPopup.xaml:
<Button x:Name="CloseButton" Margin="10,5" HorizontalOptions="Fill" VerticalOptions="EndAndExpand" Text="{Binding LeftButtonText}" Command="{Binding LeftButtonCommand}"/>
However, the LeftButtonText will not actually get populated with the value I specified in the args when the popup opens, rather it will be blank.
Am I doing something wrong, or is this the expected behaviour? If so, what is the point of being able to customize the xaml for something like the DualResponseViewModel if we can't use the pre-defined properties/commands?
The text was updated successfully, but these errors were encountered: