teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

公開できない内容の割愛

2021/05/16 05:50

投稿

K.KATSU2
K.KATSU2

スコア10

title CHANGED
File without changes
body CHANGED
@@ -18,16 +18,11 @@
18
18
  ### 該当のソースコード
19
19
  [WindowのXaml]
20
20
  ```Xaml
21
- <Window x:Class="ApprovalFlow.Views.ApprovalFlowRegist"
22
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
23
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
24
- xmlns:prism="http://prismlibrary.com/"
25
- xmlns:views="clr-namespace:ApprovalFlow.Views"
21
+ < !-- 省略 --
26
- xmlns:local="clr-namespace:ApprovalFlow.ViewModels"
27
22
  Height="360" Width="500"
28
23
  prism:ViewModelLocator.AutoWireViewModel="True">
29
24
  <Window.Resources>
30
- <local:ApprovalFlowRegistViewModel x:Key="ViewModel"/>
25
+ <local:TestViewModel x:Key="ViewModel"/>
31
26
  </Window.Resources>
32
27
  <Grid DataContext="{StaticResource ViewModel}">
33
28
  <Grid.ColumnDefinitions>
@@ -63,7 +58,7 @@
63
58
 
64
59
  [windowのViewModel]
65
60
  ```C#
66
- public class ApprovalFlowRegistViewModel : BindableBase, INotifyPropertyChanged
61
+ public class TestViewModel : BindableBase, INotifyPropertyChanged
67
62
  {
68
63
  //フィールド
69
64
  private static int _xCode=5;
@@ -71,7 +66,7 @@
71
66
  private int _no;
72
67
  Stack<Item> _stack;
73
68
 
74
- public ApprovalFlowRegistViewModel()
69
+ public TestViewModel()
75
70
  {
76
71
  _no = 0;
77
72
  _yCode = 5;
@@ -140,10 +135,7 @@
140
135
 
141
136
  [UserControlのXaml]
142
137
  ```Xaml
143
- <UserControl x:Class="ApprovalFlow.Views.ActionPanel"
138
+ < !-- 省略 --
144
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
145
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
146
- xmlns:prism="http://prismlibrary.com/"
147
139
  Width="340" Height="60"
148
140
  x:Name="panel"
149
141
  prism:ViewModelLocator.AutoWireViewModel="True">